query-618ab5b4957b299e25fd5d59c0f2d039
ID Google MapsCiao! Ho provato a fare una query che mostri la diffusione degli ID geografici in Italia, ecco il risultato:
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#>
#Elementi in Italia con ID geografici
#defaultView:Map
SELECT ?item ?itemLabel ?coord ?gm
WHERE {
?item wdt:P17 wd:Q38 .
?item wdt:P625 ?coord .
OPTIONAL { ?item wdt:P3134 ?ta . }
?item wdt:P3749 ?gm .
OPTIONAL {?item wdt:P5601 ?tci . }
OPTIONAL { ?item wdt:P5611 ?cei . }
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;
v6("?cei")
v2("?coord"):::projected
v4("?gm"):::projected
v1("?item"):::projected
v3("?ta")
v5("?tci")
c2(["wd:Q38"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["it,en"]):::literal
v1 --"wdt:P17"--> c2
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P3134".-> v3
end
v1 --"wdt:P3749"--> v4
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5601".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P5611".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end