query-af9c38a3092a3b480d3285d888111a32
Finding items without "instance of", per property, accepting some substitutes SELECT DISTINCT ?item ?itemLabel WHERE {?item wdt:P1343 wd:Q2657718 . FILTER NOT EXISTS {?item wdt:P31 [ ]} FILTER NOT EXISTS {?item wdt:P279 [ ]} FILTER NOT EXISTS {?item wdt:P361 [ ]} FILTER NOT EXISTS {?item wdt:P2445 [ ]} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#Finding items without "instance of", per property, accepting some substitutes
SELECT DISTINCT ?item ?itemLabel
WHERE
{?item wdt:P1343 wd:Q2657718 .
FILTER NOT EXISTS {?item wdt:P31 [ ]}
FILTER NOT EXISTS {?item wdt:P279 [ ]}
FILTER NOT EXISTS {?item wdt:P361 [ ]}
FILTER NOT EXISTS {?item wdt:P2445 [ ]}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a4((" "))
a3((" "))
a2((" "))
a1((" "))
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q2657718"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P2445"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P2445"--> a1
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P361"--> e1a1
e1v1("?item"):::projected
e1a1((" ")):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> a2
v1 --"wdt:P361"--> a2
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"wdt:P279"--> e2a1
e2v1("?item"):::projected
e2a1((" ")):::projected
end
f2--EXISTS--> f2e2
f2 --> v1
f2 --> c3
f2 --> a3
v1 --"wdt:P279"--> a3
f3[["not "]]
subgraph f3e3["Exists Clause"]
e3v1 --"wdt:P31"--> e3a1
e3v1("?item"):::projected
e3a1((" ")):::projected
end
f3--EXISTS--> f3e3
f3 --> v1
f3 --> c4
f3 --> a4
v1 --"wdt:P31"--> a4
v1 --"wdt:P1343"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end