query-41cd038a072d582e807bd51c2228f6ea
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
?item wdt:P19 ?place.
?place wdt:P17 wd:Q408.
?item wdt:P31 wd:Q5.
?article schema:about ?item ;
schema:isPartOf <https://en.wikipedia.org/> .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
FILTER(NOT EXISTS { ?item wdt:P21 _:b1. })
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article")
v1("?item"):::projected
v2("?place")
a1((" "))
c4(["wd:Q408"]):::iri
c9([https://en.wikipedia.org/]):::iri
c11(["bd:serviceParam"]):::iri
c6(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P21"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P21"--> a1
v1 --"wdt:P19"--> v2
v2 --"wdt:P17"--> c4
v1 --"wdt:P31"--> c6
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end