query-77a5e19d538c6da6e468698388819b23

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
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 ?sl ?st ?labelDE ?labelNDS ?labelEN WHERE {
  ?item p:P972 ?statement .
  ?statement ps:P972 ?catalog.
  ?statement prov:wasDerivedFrom ?refnode.
  ?refnode pr:P143 wd:Q1063116 .

  OPTIONAL { ?item wikibase:sitelinks ?sl }
  OPTIONAL { ?item wikibase:statements ?st }
  OPTIONAL { ?item rdfs:label ?labelEN filter (lang(?labelEN) = "en") }
  OPTIONAL { ?item rdfs:label ?labelDE filter (lang(?labelDE) = "de") }
  OPTIONAL { ?item rdfs:label ?labelNDS filter (lang(?labelNDS) = "nds") }
}
ORDER BY ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?catalog") v1("?item"):::projected v3("?labelDE"):::projected v4("?labelEN"):::projected v2("?labelNDS"):::projected v7("?refnode") v8("?sl"):::projected v9("?st"):::projected v5("?statement") c8(["wd:Q1063116"]):::iri v1 --"p:P972"--> v5 v5 --"p:statement/P972"--> v6 v5 --"prov:wasDerivedFrom"--> v7 v7 --"p:reference/P143"--> c8 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wikibase:sitelinks".-> v8 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wikibase:statements".-> v9 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."rdfs:label".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."rdfs:label".-> v3 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v1 -."rdfs:label".-> v2 end