query-20784a7aebed642d9420d631bd2eec43
Achim Raschka
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?article ?title ?image
WHERE
{
?item wdt:P31 wd:Q16521 . # instance of taxon
?item p:P225 ?taxon_name_stm .
?taxon_name_stm pq:P574 "2021-01-01"^^xsd:date .
?article schema:about ?item .
?article schema:isPartOf <https://de.wikipedia.org/> .
?article schema:name ?title .
OPTIONAL { ?item wdt:P18 ?image . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v5("?image"):::projected
v1("?item"):::projected
v2("?taxon_name_stm")
v4("?title"):::projected
c8([https://de.wikipedia.org/]):::iri
c5(["2021-01-01^^xsd:date"]):::literal
c2(["wd:Q16521"]):::iri
v1 --"p:direct/P31"--> c2
v1 --"p:P225"--> v2
v2 --"p:qualifier/P574"--> c5
v3 --"schema:about"--> v1
v3 --"schema:isPartOf"--> c8
v3 --"schema:name"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P18".-> v5
end