query-f96cbd7c2cbf2b4197f40b5f986cdd64

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?sitelink_de ?sitelink_en ?ATP_Kennung where
{  {
SELECT ?item ?ATP_Kennung where {
  OPTIONAL { ?item wdt:P536 ?ATP_Kennung. }
  ?site schema:about ?item .   
} GROUP BY ?item ?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/> .}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?ATP_Kennung"):::projected v6("?article_de") v4("?article_en") v1("?item"):::projected v3("?site") v7("?sitelink_de"):::projected v5("?sitelink_en"):::projected c6([https://de.wikipedia.org/]):::iri c5([https://en.wikipedia.org/]):::iri c8(["bd:serviceParam"]):::iri c10(["de,en,#91;AUTO_LANGUAGE#93;"]):::literal subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P536".-> v2 end v3 --"schema:about"--> v1 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:name".-> v5 v4 --"schema:about"--> v1 v4 --"schema:isPartOf"--> c5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:name".-> v7 v6 --"schema:about"--> v1 v6 --"schema:isPartOf"--> c6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end