query-3f77a10e41aaff00c6fc31cef59ed299
Dead people with a Project Gutenberg ID but no English Wikisource profile, whose main language is English
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?person ?personLabel ?personDescription ?language ?death (URI(CONCAT("https://www.gutenberg.org/ebooks/author/", ?gutenberg)) AS ?gberglink) WHERE {
?person wdt:P1938 ?gutenberg;
wdt:P570 ?death. # Dead people only
FILTER (?death <= "1946-01-01T00:00:00Z"^^xsd:dateTime)
MINUS {
?enws schema:about ?person;
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
)
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en"
}
}
ORDER BY ?death
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?death"):::projected
v5("?enws")
v7("?gberglink")
v4("?gutenberg"):::projected
v2("?lang")
v6("?language"):::projected
v3("?person"):::projected
c10(["bd:serviceParam"]):::iri
c7([https://en.wikisource.org/]):::iri
c12(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
f0[["(not bound(?lang) || ?lang = 'wd:Q1860')"]]
f0 --> v2
f1[["?death <= '1946-01-01T00:00:00Z^^xsd:dateTime'"]]
f1 --> v1
v3 --"wdt:P1938"--> v4
v3 --"wdt:P570"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> c7
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P1412".-> v2
end
bind3[/"if(bound(?lang),'English','Not specified')"/]
v2 --o bind3
bind3 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind4[/"concat('https://www.gutenberg.org/ebooks/author/',?gutenberg)"/]
v4 --o bind4
bind4 --as--o v7