query-38a43cf57b592fbc88d01cbe2943533c
Subspecies
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 WHERE {
?item wdt:P225 ?taxonName .
?item wdt:P105 wd:Q68947 . #subspecies
FILTER(REGEX(?taxonName, "\\b(\\w+) subsp. (\\1)\\b")) #todo replace w+
#FILTER(REGEX(?taxonName, "\\b(\\w+) (\\1)\\b"))
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?taxonName"):::projected
c4(["wd:Q68947"]):::iri
f0[["regex(?taxonName,'\b(\w+) subsp. (\1)\b')"]]
f0 --> v1
v2 --"wdt:P225"--> v1
v2 --"wdt:P105"--> c4