query-11a810e73c661344521633bbdc82dbfc

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>

SELECT ?item ?DWBID ?arkbnf ?ppn WHERE {
  ?item wdt:P1648 ?DWBID ; wdt:P31 wd:Q5.
  OPTIONAL {?item wdt:P268 ?arkbnf}
  OPTIONAL {?item wdt:P269 ?ppn}
  FILTER(bound(?arkbnf)|| bound(?ppn))
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?DWBID"):::projected v1("?arkbnf"):::projected v3("?item"):::projected v2("?ppn"):::projected c3(["wd:Q5"]):::iri f0[["(bound(?arkbnf) || bound(?ppn))"]] f0 --> v1 f0 --> v2 v3 --"wdt:P1648"--> v4 v3 --"wdt:P31"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P268".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P269".-> v2 end