query-b9732aabe892e0c41613f99f411da506

rq turtle/ttl

TODO

Use at

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 ?P1476 ?lang 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") }
 ?stat2 pr:P1476 ?P1476. BIND( LANG(?P1476) AS ?lang) 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?P1476"):::projected v4("?de"):::projected v7("?dss"):::projected v1("?en"):::projected v3("?fr"):::projected v2("?it"):::projected v5("?item"):::projected v10("?lang"):::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 v8 --"p:reference/P1476"--> v9 bind0[/"?P1476"/] v9 --o bind0 bind0 --as--o v10