query-53dd874f19d0c4945b2a20e5a378292f
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#>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q3863.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
FILTER(NOT EXISTS { ?item wdt:P5736 ?viaf. })
FILTER(NOT EXISTS { ?item rdf:type wdno:P5736. })
}ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
v3("?viaf")
c7(["bd:serviceParam"]):::iri
c2(["wdno:P5736"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q3863"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"a"--> e0c2
e0v1("?item"):::projected
e0c2(["wdno:P5736"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> c2
v2 --"a"--> c2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P5736"--> e1v2
e1v1("?item"):::projected
e1v2("?viaf"):::projected
end
f1--EXISTS--> f1e1
f1 --> v2
f1 --> c3
f1 --> v3
v2 --"wdt:P5736"--> v3
v2 --"wdt:P31"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end