query-afef74914d392eb152e9aeeffb3721eb
000
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 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 ?guid ?ref ?refProp ?refValue {
?item wdt:P31 wd:Q171947.
?item p:P31 ?guid.
?guid ps:P31 wd:Q171947.
OPTIONAL {
?guid prov:wasDerivedFrom ?ref .
?ref ?refProp ?refValue.
}
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("?guid"):::projected
v1("?item"):::projected
v3("?ref"):::projected
v4("?refProp"):::projected
v5("?refValue"):::projected
c2(["wd:Q171947"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> c2
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."prov:wasDerivedFrom".-> v3
v3 -->v4--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end