query-dc244fc4a86b890f95bfe2eb9a20a04a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?propertyLabel ?value ?statement_ID ?statement_ref_ID ?ref_propertyLabel ?ref_value WHERE
{
{ SELECT ?statement_ID ?statement_ref_ID
WHERE
{
wd:Q79160 p:P1435 ?statement_ID.
} } ?statement_ID ?predicate ?value.
?property wikibase:qualifier|wikibase:statementProperty ?predicate .
?statement_ID prov:wasDerivedFrom ?statement_ref_ID.
?statement_ref_ID ?ref_predicate ?ref_value .
?ref_property wikibase:reference ?ref_predicate .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?statement_ID ?statement_ref_ID
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?predicate")
v5("?property")
v6("?ref_predicate")
v8("?ref_property")
v7("?ref_value"):::projected
v1("?statement_ID"):::projected
v2("?statement_ref_ID"):::projected
v4("?value"):::projected
c1(["wd:Q79160"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1 --"p:P1435"--> v1
v1 -->v3--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v5 --"wikibase:statementProperty"--> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v5 --"wikibase:qualifier"--> v3
end
union0r <== or ==> union0l
end
v1 --"prov:wasDerivedFrom"--> v2
v2 -->v6--> v7
v8 --"wikibase:reference"--> v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end