query-398d5c9bc8ac258c7050dd107d6b0b6f
Taxa
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?taxonName ?taxonRankLabel WHERE {
?item wdt:P225 ?taxonName .
?item wdt:P105 ?taxonRank .
?item (wdt:P171)* ?higherParent .
?higherParent wdt:P944 wd:Q14920640.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?higherParent")
v2("?item"):::projected
v1("?taxonName"):::projected
v3("?taxonRank")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;"]):::literal
c5(["wd:Q14920640"]):::iri
v2 --"wdt:P225"--> v1
v2 --"wdt:P105"--> v3
v2 --"wdt:P171"--> v4
v4 --"wdt:P944"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end