query-1f4b01b6d7c6be8ae81179364790fe97
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?value ?valueLabel ?statement
WHERE
{
SERVICE bd:slice {
?item p:P1050 ?stat2 .
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 {?stat2 prov:wasDerivedFrom [] .}
bind(?stat2 as ?statement)
?stat2 ps:P1050 ?value .
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("?item"):::projected
v1("?stat2")
v3("?statement"):::projected
v4("?value"):::projected
a1((" "))
c6(["0^^xsd:integer"]):::literal
c4(["bd:serviceParam"]):::iri
c8(["100000^^xsd:integer"]):::literal
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"prov:wasDerivedFrom"--> e0a1
e0v1("?stat2"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"prov:wasDerivedFrom"--> a1
subgraph s1["http://www.bigdata.com/rdf#slice"]
style s1 stroke-width:4px;
v2 --"p:P1050"--> v1
c4 --"bd:slice.offset"--> c6
c4 --"bd:slice.limit"--> c8
end
bind1[/"?stat2"/]
v1 --o bind1
bind1 --as--o v3
v1 --"p:statement/P1050"--> v4
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c4 --"wikibase:language"--> c12
end