query-61ef43c7f6fd093132325a62f2aeeaaa
Missing rank
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?item ?taxonName WHERE {
?item wdt:P225 ?taxonName .
OPTIONAL {?item wdt:P105 ?taxonRank }
FILTER(!bound(?taxonRank))
MINUS {?item rdf:type wdno:P105 }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?taxonName"):::projected
v1("?taxonRank")
c4(["wdno:P105"]):::iri
f0[["not bound(?taxonRank)"]]
f0 --> v1
v2 --"wdt:P225"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P105".-> v1
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"a"--> c4
end