query-cc1a48318682b29d23f62610c2953612
title: Belgisch Luxemburg SELECT DISTINCT ?page_title ?article (GROUP_CONCAT(DISTINCT ?klasse; SEPARATOR = ", ") AS ?ist_ein) (GROUP_CONCAT(DISTINCT ?wo; SEPARATOR = ", ") AS ?liegt_in) ?image ?location ?item WHERE { ?item (wdt:P131*) wd:Q1126; wdt:P31 ?instance. OPTIONAL { ?item wdt:P131 ?where. } OPTIONAL { ?item wdt:P625 ?location. } OPTIONAL { ?frwiki schema:about ?item; schema:isPartOf https://fr.wikipedia.org/; schema:name ?fr_title. } OPTIONAL { ?lbwiki schema:about ?item; schema:isPartOf https://lb.wikipedia.org/; schema:name ?lb_title. } OPTIONAL { ?dewiki schema:about ?item; schema:isPartOf https://de.wikipedia.org/; schema:name ?de_title. } OPTIONAL { ?item wdt:P18 ?image. } OPTIONAL { ?page schema:about ?item; schema:inLanguage ?lang. } FILTER(?lang IN("fr", "de", "lb", "nl", "da")) BIND(IF(BOUND(?dewiki), ?dewiki, IF(BOUND(?lbwiki), ?lbwiki, ?frwiki)) AS ?article) BIND(IF(BOUND(?de_title), ?de_title, IF(BOUND(?lb_title), ?lb_title, IF(BOUND(?fr_title), ?fr_title, ?item_title))) AS ?page_title) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,lb,nl,en". ?item rdfs:label ?item_title. ?where rdfs:label ?wo. ?instance rdfs:label ?klasse. } } GROUP BY ?item ?page_title ?article ?image ?location ORDER BY (?ist_ein) (?page_title)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Belgisch Luxemburg
SELECT DISTINCT ?page_title ?article (GROUP_CONCAT(DISTINCT ?klasse; SEPARATOR = ", ") AS ?ist_ein) (GROUP_CONCAT(DISTINCT ?wo; SEPARATOR = ", ") AS ?liegt_in) ?image ?location ?item WHERE {
?item (wdt:P131*) wd:Q1126;
wdt:P31 ?instance.
OPTIONAL { ?item wdt:P131 ?where. }
OPTIONAL { ?item wdt:P625 ?location. }
OPTIONAL {
?frwiki schema:about ?item;
schema:isPartOf <https://fr.wikipedia.org/>;
schema:name ?fr_title.
}
OPTIONAL {
?lbwiki schema:about ?item;
schema:isPartOf <https://lb.wikipedia.org/>;
schema:name ?lb_title.
}
OPTIONAL {
?dewiki schema:about ?item;
schema:isPartOf <https://de.wikipedia.org/>;
schema:name ?de_title.
}
OPTIONAL { ?item wdt:P18 ?image. }
OPTIONAL {
?page schema:about ?item;
schema:inLanguage ?lang.
}
FILTER(?lang IN("fr", "de", "lb", "nl", "da"))
BIND(IF(BOUND(?dewiki), ?dewiki, IF(BOUND(?lbwiki), ?lbwiki, ?frwiki)) AS ?article)
BIND(IF(BOUND(?de_title), ?de_title, IF(BOUND(?lb_title), ?lb_title, IF(BOUND(?fr_title), ?fr_title, ?item_title))) AS ?page_title)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,lb,nl,en".
?item rdfs:label ?item_title.
?where rdfs:label ?wo.
?instance rdfs:label ?klasse.
}
}
GROUP BY ?item ?page_title ?article ?image ?location
ORDER BY (?ist_ein) (?page_title)