query-dfb6b16e74530d2c07a76b99e21c6a7e
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?commune ?communeLabel ?dep ?depLabel
WHERE {
?item wdt:P131+ wd:Q12130.
?item (wdt:P31/wdt:P279*) wd:Q16970.
?item wdt:P131 ?commune.
?item wdt:P131* ?dep . ?dep wdt:P31 wd:Q6465
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?commune"):::projected
v3("?dep"):::projected
v1("?item"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c2(["wd:Q12130"]):::iri
c5(["wd:Q16970"]):::iri
c6(["wd:Q6465"]):::iri
c10(["fr"]):::literal
v1 --"wdt:P131"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5
v1 --"wdt:P131"--> v2
v1 --"wdt:P131"--> v3
v3 --"wdt:P31"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end