query-a7e58d0e3b6965d159805f5fb640b982
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 distinct ?item ?itemLabel ?property ?value ?valueLabel ?statement
WHERE
{
?item p:P1399 ?stat .
# No reference
filter not exists {?stat prov:wasDerivedFrom [] .}
bind(?stat as ?statement)
bind(wdt:P1399 as ?property)
?stat ps:P1399 ?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
v4("?property"):::projected
v1("?stat")
v3("?statement"):::projected
v5("?value"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"prov:wasDerivedFrom"--> e0a1
e0v1("?stat"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"prov:wasDerivedFrom"--> a1
v2 --"p:P1399"--> v1
bind1[/"?stat"/]
v1 --o bind1
bind1 --as--o v3
bind2[/"'p:direct/P1399'"/]
bind2 --as--o v4
v1 --"p:statement/P1399"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end