query-588de2e67dbf5fc61f3e2509b77160cf
Query per elementi con locode e provincia (attuale)
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?val ?itemLabel ?iso ?provLabel ?coords
WHERE
{
?item wdt:P1937 ?val .
?item wdt:P17 wd:Q38.
?item wdt:P625 ?coords .
?item wdt:P131 ?prov .
?prov wdt:P300 ?iso .
FILTER NOT EXISTS { ?prov pq:P582 ?x }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coords"):::projected
v6("?iso"):::projected
v3("?item"):::projected
v1("?prov")
v4("?val"):::projected
v2("?x")
c4(["wd:Q38"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["it"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"pq:P582"--> e0v2
e0v1("?prov"):::projected
e0v2("?x"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"pq:P582"--> v2
v3 --"wdt:P1937"--> v4
v3 --"wdt:P17"--> c4
v3 --"wdt:P625"--> v5
v3 --"wdt:P131"--> v1
v1 --"wdt:P300"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end