query-6b662be30a869bae4d878ef172c9be6a
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#>
#defaultView:Map
SELECT ?item ?itemLabel ?wlm ?coord
WHERE { ?item wdt:P2186 ?wlm .
wd:Q91350 wdt:P625 ?loc .
SERVICE wikibase:around { ?item wdt:P625 ?coord .
bd:serviceParam wikibase:center ?loc .
bd:serviceParam wikibase:radius "100" .
bd:serviceParam wikibase:distance ?dist . }
FILTER NOT EXISTS { ?item wdt:P373 ?commonscat . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it", "en", "fr", "de" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?commonscat")
v5("?coord"):::projected
v6("?dist")
v1("?item"):::projected
v4("?loc")
v3("?wlm"):::projected
c16(["de"]):::literal
c14(["en"]):::literal
c13(["it"]):::literal
c3(["wd:Q91350"]):::iri
c15(["fr"]):::literal
c9(["100"]):::literal
c6(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P373"--> e0v2
e0v2("?commonscat"):::projected
e0v1("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P373"--> v2
v1 --"wdt:P2186"--> v3
c3 --"wdt:P625"--> v4
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v1 --"wdt:P625"--> v5
c6 --"wikibase:center"--> v4
c6 --"wikibase:radius"--> c9
c6 --"wikibase:distance"--> v6
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c6 --"wikibase:language"--> c13
c6 --"wikibase:language"--> c14
c6 --"wikibase:language"--> c15
c6 --"wikibase:language"--> c16
end