query-b775bcca467022e0697a9e96b0e871be
TODO
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel ?species {
?item wdt:P31 wd:Q5 ; wdt:P570 ?dod. FILTER(YEAR(?dod) < 1949) # people who died before 1949
?species schema:about ?item; schema:isPartOf <https://species.wikimedia.org/> . # with a page in Wikispecies
MINUS { ?source schema:about ?item . filter(contains(str(?source),"wikisource.org")) } # but no page in any Wikisource
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?dod")
v2("?item"):::projected
v4("?source")
v3("?species"):::projected
c7([https://species.wikimedia.org/]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?dod) < '1949^^xsd:integer'"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"wdt:P570"--> v1
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c7
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
f2[["contains(str(?source),'wikisource.org')"]]
f2 --> v4
v4 --"schema:about"--> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end