query-ed848e2e6717883453ab97e9dcd8d983

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item ?ATP_Kennung ?itemLabel_en ?sitelink_en ?itemLabel_de ?sitelink_de where {
  ?item wdt:P536 ?ATP_Kennung. 
  optional {?sitelink_en ^schema:name ?article_en .
            ?article_en schema:about ?item ;
                     schema:isPartOf <https://en.wikipedia.org/> .}
  optional {?sitelink_de ^schema:name ?article_de .
            ?article_de schema:about ?item ;
                     schema:isPartOf <https://de.wikipedia.org/> .}
  optional {?item rdfs:label ?itemLabel_en. filter(lang(?itemLabel_en)="en")}
  optional {?item rdfs:label ?itemLabel_de. filter(lang(?itemLabel_de)="de")}
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?ATP_Kennung"):::projected v7("?article_de") v5("?article_en") v3("?item"):::projected v1("?itemLabel_de"):::projected v2("?itemLabel_en"):::projected v8("?sitelink_de"):::projected v6("?sitelink_en"):::projected c8([https://de.wikipedia.org/]):::iri c7([https://en.wikipedia.org/]):::iri v3 --"wdt:P536"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:name".-> v6 v5 --"schema:about"--> v3 v5 --"schema:isPartOf"--> c7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:name".-> v8 v7 --"schema:about"--> v3 v7 --"schema:isPartOf"--> c8 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v1 end