query-bbfe74041e2bab4b3d79cb0d97dd8706
Au moins pour les anciennes cantons, la coïncidence de les coordonnées du canton avec celles de son chef-lieu n'est pas l'habitude:
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 ?canto ?capital ?cantoCoor ?capitalCoor ?cantoLabel ?capitalLabel ?layer
WHERE {
?canto wdt:P31 wd:Q184188.
?canto wdt:P625 ?cantoCoor.
?canto wdt:P36 ?capital.
?capital wdt:P625 ?capitalCoor.
BIND(?cantoCoor=?capitalCoor as ?layer)
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,oc,eu,br,fr,en".}
}
#defaultView:Map
Query found at
- https://www.wikidata.org/w/index.php?title=Topic:W3fro3tzcn0itcb9&topic_showPostId=w3fzqlz0mdbuw97x#flow-post-w3fzqlz0mdbuw97x
- https://www.wikidata.org/w/index.php?title=Topic:W3fro3tzcn0itcb9&topic_showPostId=w3i7ercqspw6otyu#flow-post-w3i7ercqspw6otyu
- https://www.wikidata.org/wiki/Topic:W3fro3tzcn0itcb9
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?canto"):::projected
v2("?cantoCoor"):::projected
v3("?capital"):::projected
v4("?capitalCoor"):::projected
v5("?layer"):::projected
c2(["wd:Q184188"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,ca,oc,eu,br,fr,en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P625"--> v2
v1 --"wdt:P36"--> v3
v3 --"wdt:P625"--> v4
bind0[/"?cantoCoor = ?capitalCoor"/]
v2 --o bind0
v4 --o bind0
bind0 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end