query-685e38616e3716359999c38a774ac20f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?dss ?de ?fr ?it ?en WHERE {
?item p:P902 ?stat.
?stat ps:P902 ?dss;
prov:wasDerivedFrom ?stat2.
OPTIONAL { ?stat2 pr:P1476 ?de. filter(lang(?de)="de") }
OPTIONAL { ?stat2 pr:P1476 ?fr. filter(lang(?fr)="fr") }
OPTIONAL { ?stat2 pr:P1476 ?it. filter(lang(?it)="it") }
OPTIONAL { ?stat2 pr:P1476 ?en. filter(lang(?en)="en") }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?de"):::projected
v7("?dss"):::projected
v1("?en"):::projected
v3("?fr"):::projected
v2("?it"):::projected
v5("?item"):::projected
v6("?stat")
v8("?stat2")
v5 --"p:P902"--> v6
v6 --"p:statement/P902"--> v7
v6 --"prov:wasDerivedFrom"--> v8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:reference/P1476".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:reference/P1476".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:reference/P1476".-> v2
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:reference/P1476".-> v1
end