query-d0efbc909a504bdb5cb7fcaea14ef7ae
Per anche i comuni confinanti
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#>
#defaultView:Map
SELECT ?item ?itemLabel ?coord
WHERE {
{ ?item wdt:P131 wd:Q2028 . } UNION {
?item wdt:P131 ?subconf .
wd:Q2028 wdt:P47 ?subconf . }
?item wdt:P625 ?coord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v1("?item"):::projected
v2("?subconf")
c6(["bd:serviceParam"]):::iri
c8(["it,en"]):::literal
c2(["wd:Q2028"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> v2
c2 --"wdt:P47"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P131"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P625"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end