query-cc4eec92a7ae031d5e892edf76df350a

rq turtle/ttl

title: Personen im dänischen Wikipedia mit einer LibraryThingID SELECT ?item ?article ?page_title ?instanzLabel WHERE { { ?item p:P7400 ?statement0. ?item wdt:P31 ?instanz. OPTIONAL { ?article schema:about ?item; schema:isPartOf https://da.wikipedia.org/; schema:name ?page_title. } FILTER(BOUND(?article) && ?instanz = wd:Q5) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } } order by ?page_title

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Personen im dänischen Wikipedia mit einer LibraryThingID
SELECT ?item ?article ?page_title ?instanzLabel WHERE {
  {
    ?item p:P7400 ?statement0.
    ?item wdt:P31 ?instanz.
    OPTIONAL {
      ?article schema:about ?item;
        schema:isPartOf <https://da.wikipedia.org/>;
        schema:name ?page_title.
    }
    FILTER(BOUND(?article) && ?instanz = wd:Q5)
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
}
order by ?page_title

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?article"):::projected v3("?instanz") v4("?item"):::projected v1("?page_title"):::projected v5("?statement0") c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6([https://da.wikipedia.org/]):::iri f0[["bound(?article)?instanz = 'wd:Q5'"]] f0 --> v2 f0 --> v3 v4 --"p:P7400"--> v5 v4 --"p:direct/P31"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v4 v2 --"schema:isPartOf"--> c6 v2 --"schema:name"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end