query-26f9c9b20cc0d2f1716a16d7acc3622f
SPARQLWikidata objects not referenced in OSM:
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX osmt: <https://wiki.openstreetmap.org/wiki/Key:>
SELECT ?wd ?wdLabel ?article WHERE {
?wd wdt:P31/wdt:P279* wd:Q12280.
?wd wdt:P17 wd:Q30.
?article schema:about ?wd .
?article schema:isPartOf <https://en.wikipedia.org/> .
FILTER(NOT EXISTS { ?wd wdt:P576 ?x1. })
FILTER(NOT EXISTS { SERVICE <https://sophox.org/sparql> { ?osmid osmt:wikidata ?wd. } })
#SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
LIMIT 30
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?article"):::projected
v1("?osmid")
v2("?wd"):::projected
v3("?x1")
a1((" "))
c11([https://en.wikipedia.org/]):::iri
c6(["wd:Q12280"]):::iri
c8(["wd:Q30"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
subgraph e0s1["https://sophox.org/sparql"]
style e0s1 stroke-width:4px;
e0v1 --https://wiki.openstreetmap.org/wiki/Key:wikidata--> e0v2
end
e0v1("?osmid"):::projected
e0v2("?wd"):::projected
end
f0--EXISTS--> f0e0
f0 --> c1
f0 --> v1
f0 --> c2
f0 --> v2
subgraph s1["https://sophox.org/sparql"]
style s1 stroke-width:4px;
v1 --https://wiki.openstreetmap.org/wiki/Key:wikidata--> v2
end
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P576"--> e1v2
e1v1("?wd"):::projected
e1v2("?x1"):::projected
end
f1--EXISTS--> f1e1
f1 --> v2
f1 --> c3
f1 --> v3
v2 --"wdt:P576"--> v3
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
v2 --"wdt:P17"--> c8
v4 --"schema:about"--> v2
v4 --"schema:isPartOf"--> c11