query-0e37c93918bfe03d12417fb3b83bae46
Use ProvenanceOntology SELECT ?item ?itemLabel ?ref ?refLabel WHERE {
?item ?prop ?stmt . ?stmt prov:wasDerivedFrom/pr:P248 ?ref . ?ref wdt:P361? wd:Q7926668
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Use ProvenanceOntology
SELECT ?item ?itemLabel ?ref ?refLabel
WHERE {
?item ?prop ?stmt .
?stmt prov:wasDerivedFrom/pr:P248 ?ref .
?ref wdt:P361? wd:Q7926668
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?prop")
v4("?ref"):::projected
v3("?stmt")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["en"]):::literal
c3(["wd:Q7926668"]):::iri
v1 -->v2--> v3
v3 --"prov:wasDerivedFrom"--> a1
a1 --"pr:P248"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"wdt:P361"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end