query-69014645674262e881141ed24897457f
Parent taxa of a particular species, with their rank
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 ?item ?itemLabel ?classLabel
WHERE
{
wd:Q42196 wdt:P171* ?item .
?item wdt:P105 ?class
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?class")
v1("?item"):::projected
c5(["bd:serviceParam"]):::iri
c1(["wd:Q42196"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c1 --"wdt:P171"--> v1
v1 --"wdt:P105"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end