query-c15528569b394cc6f6b1a53a6cdfb9a3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select ?item where {
?item rdfs:label ?itemLabel filter (lang(?itemLabel) = "en"&& contains(?itemLabel, "eography"))
filter not exists { ?item wdt:P2633 _:blank }
filter not exists { ?item wdt:P31 ?val3 } .
?item wdt:P17 ?val2 .
} limit 30
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?itemLabel")
v4("?val2")
v2("?val3")
a1((" "))
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0v2
e0v1("?item"):::projected
e0v2("?val3"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P31"--> v2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P2633"--> e1a1
e1v1("?item"):::projected
e1a1((" ")):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> a1
v1 --"wdt:P2633"--> a1
f2[["?itemLabel = 'en'contains(?itemLabel,'eography')"]]
f2 --> v3
v1 --"rdfs:label"--> v3
v1 --"wdt:P17"--> v4