query-d1a798cdb5398e79c72c05e17fa6349c

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?person ?name ?language ?death (URI(CONCAT("https://www.gutenberg.org/ebooks/author/", ?gutenberg)) AS ?gberglink) WHERE {
  ?person wdt:P1938 ?gutenberg.
  ?person wdt:P570 ?death. # Dead people only
  MINUS {
    ?enws schema:about ?person.
    ?enws schema:isPartOf <https://en.wikisource.org/>
  }
  OPTIONAL {?person wdt:P1412 ?lang}.
  FILTER (!BOUND(?lang) || ?lang = wd:Q1860) # Language: English or absent
  BIND(IF(BOUND(?lang),"English","Not specified") AS ?language
)  ?person rdfs:label ?name.
  FILTER((LANG(?name)) = "en")
}
ORDER BY ?death

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?death"):::projected v6("?enws") v8("?gberglink") v5("?gutenberg"):::projected v3("?lang") v7("?language"):::projected v2("?name"):::projected v4("?person"):::projected c7([https://en.wikisource.org/]):::iri f0[["?name = 'en'"]] f0 --> v2 f1[["(not bound(?lang) || ?lang = 'wd:Q1860')"]] f1 --> v3 v4 --"wdt:P1938"--> v5 v4 --"wdt:P570"--> v1 subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v6 --"schema:about"--> v4 v6 --"schema:isPartOf"--> c7 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P1412".-> v3 end bind3[/"if(bound(?lang),'English','Not specified')"/] v3 --o bind3 bind3 --as--o v7 v4 --"rdfs:label"--> v2 bind4[/"concat('https://www.gutenberg.org/ebooks/author/',?gutenberg)"/] v5 --o bind4 bind4 --as--o v8