query-84d7ea261393099d1aa2ffccfe64fddf
All statements with item as a reference value
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q263367>
SELECT ?subject ?subjectLabel ?property ?propertyLabel ?object ?objectLabel WHERE {
?reference wikibase:reference ?pr.
?ref ?pr target:.
?statement prov:wasDerivedFrom ?ref.
?subject ?p ?statement.
?property wikibase:claim ?p;
wikibase:statementProperty ?ps.
?statement ?ps ?object.
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;
v9("?object"):::projected
v6("?p")
v2("?pr")
v7("?property"):::projected
v8("?ps")
v3("?ref")
v1("?reference")
v4("?statement")
v5("?subject"):::projected
c7(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q263367]):::iri
c9(["#91;AUTO_LANGUAGE#93;, en"]):::literal
v1 --"wikibase:reference"--> v2
v3 -->v2--> c2
v4 --"prov:wasDerivedFrom"--> v3
v5 -->v6--> v4
v7 --"wikibase:claim"--> v6
v7 --"wikibase:statementProperty"--> v8
v4 -->v8--> v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end