query-b216597578ae639a507fa80861ccb22c

rq turtle/ttl

TODO

Use at

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#>
#Canidae (for example, your taxon here) mapped by "genus" and "species" (i.e. one and two levels down in the taxonomic tree). TreeMap view in rectangles.
#defaultView:TreeMap
SELECT ?family ?familyLabel  ?genus ?genusLabel ?species ?speciesLabel
WHERE 
{
  BIND(wd:Q25324 AS ?family) . 
        ?species wdt:P171 ?genus.
        ?genus wdt:P171 ?family.


    SERVICE wikibase:label {  bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?family"):::projected v3("?genus"):::projected v2("?species"):::projected c3(["bd:serviceParam"]):::iri c5(["en"]):::literal bind0[/"'wd:Q25324'"/] bind0 --as--o v1 v2 --"wdt:P171"--> v3 v3 --"wdt:P171"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end