query-cd63c4a252ad5042d13ed729062e0667
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?taxonName WHERE {
?item wdt:P225 ?taxonName .
?item p:P225/pq:P574 ?publicationdate.
FILTER(year(?publicationdate) = 1758)
OPTIONAL{ ?item wdt:P566 ?basionym } .
OPTIONAL{ ?item wdt:P1403 ?firstcombination } .
OPTIONAL{ ?item wdt:P694 ?replacedsynonym } .
FILTER(!bound(?basionym) && !bound(?firstcombination) && !bound(?replacedsynonym))
OPTIONAL {
?article schema:about ?item .
?article schema:inLanguage "eu" .
FILTER (SUBSTR(str(?article), 1, 25) = "https://eu.wikipedia.org/")
}
FILTER(bound(?article))
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?article")
v3("?basionym")
v4("?firstcombination")
v7("?item"):::projected
v6("?publicationdate")
v5("?replacedsynonym")
v1("?taxonName"):::projected
a1((" "))
c13(["eu"]):::literal
f0[["bound(?article)"]]
f0 --> v2
f1[["not bound(?basionym)not bound(?firstcombination)not bound(?replacedsynonym)"]]
f1 --> v3
f1 --> v4
f1 --> v5
f2[["year-from-dateTime(?publicationdate) = '1758^^xsd:integer'"]]
f2 --> v6
v7 --"p:direct/P225"--> v1
v7 --"p:P225"--> a1
a1 --"p:qualifier/P574"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v7 -."p:direct/P566".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v7 -."p:direct/P1403".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v7 -."p:direct/P694".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:about".-> v7
v2 --"schema:inLanguage"--> c13
end