query-90e51bf77bbfdb1c75ab7a2a6ca2f146

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?parenttaxon ?parenttaxonLabel ?rank WHERE {
  VALUES ?item { wd:Q7377 }
  ?item p:P171 ?p171stm .
  ?p171stm ps:P171 ?parenttaxon;
           wikibase:rank ?rank .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?rank)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v3("?p171stm") v4("?parenttaxon"):::projected v1("?rank"):::projected c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?item/] bind0-->v2 bind00(["wd:Q7377"]) bind00 --> bind0 v2 --"p:P171"--> v3 v3 --"p:statement/P171"--> v4 v3 --"wikibase:rank"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end