query-6c6a075b0e1fda971428bc67ba3154e2
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?P279 ?P279Label WHERE
{
{ SELECT ?item ?P279 WHERE
{
SERVICE bd:slice {
?item wdt:P279 ?P279 .
bd:serviceParam bd:slice.offset 0 . # Start at item number (not to be confused with QID)
bd:serviceParam bd:slice.limit 100000 . # List this many items
}
filter not exists {?item wdt:P31 [] .}
} } 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;
v2("?P279"):::projected
v1("?item"):::projected
a1((" "))
c6(["0^^xsd:integer"]):::literal
c4(["bd:serviceParam"]):::iri
c8(["100000^^xsd:integer"]):::literal
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P31"--> a1
subgraph s1["http://www.bigdata.com/rdf#slice"]
style s1 stroke-width:4px;
v1 --"wdt:P279"--> v2
c4 --"bd:slice.offset"--> c6
c4 --"bd:slice.limit"--> c8
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c11
end