query-4da90104267a09d114d713939b0544b6
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 ?streetwithout ?streetwithoutLabel ?withoutcoordinate (COUNT(?streetwithout) as ?count) {
?street wdt:P138/wdt:P106 wd:Q1028181;
wdt:P31 wd:Q79007;
wdt:P17 wd:Q55;
wdt:P625 ?coordinate.
SERVICE wikibase:around {
?streetwithout wdt:P625 ?withoutcoordinate .
bd:serviceParam wikibase:center ?coordinate .
bd:serviceParam wikibase:radius "0.2" .
}
?streetwithout wdt:P31 wd:Q79007 .
MINUS { ?streetwithout wdt:P138 [] }
SERVICE wikibase:label {
bd:serviceParam wikibase:language "nl" .
}
} GROUP BY ?streetwithout ?streetwithoutLabel ?withoutcoordinate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coordinate")
v5("?count")
v1("?street")
v3("?streetwithout"):::projected
v4("?withoutcoordinate"):::projected
a2((" "))
a1((" "))
c5(["wd:Q79007"]):::iri
c7(["wd:Q55"]):::iri
c3(["wd:Q1028181"]):::iri
c10(["bd:serviceParam"]):::iri
c13(["0.2"]):::literal
c16(["nl"]):::literal
v1 --"wdt:P138"--> a1
a1 --"wdt:P106"--> c3
v1 --"wdt:P31"--> c5
v1 --"wdt:P17"--> c7
v1 --"wdt:P625"--> v2
subgraph s1["http://wikiba.se/ontology#around"]
style s1 stroke-width:4px;
v3 --"wdt:P625"--> v4
c10 --"wikibase:center"--> v2
c10 --"wikibase:radius"--> c13
end
v3 --"wdt:P31"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P138"--> a2
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c10 --"wikibase:language"--> c16
end
bind2[/"count(?streetwithout)"/]
v3 --o bind2
bind2 --as--o v5