query-dd820136ff88993cdb908052c002c5c4
Genera without child taxa
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?taxonName {
?item wdt:P105 wd:Q34740 .
MINUS { ?item ^wdt:P171 [] } .
#?item (wdt:P171)* wd:Q14560 . #parent taxon
OPTIONAL { ?item wdt:P225 ?taxonName } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?taxonName"):::projected
a1((" "))
c2(["wd:Q34740"]):::iri
v1 --"wdt:P105"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
a1 --"wdt:P171"--> v1
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P225".-> v2
end