query-863e81b7a5e265f289be1df65972d5ed

rq turtle/ttl

Jerarquía de clases sobre BOSQUE (broad context)Recorrido de las subclases (P279) a las que pertenece el concepto Bosque (Q4421):

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#>
SELECT ?entity ?entityLabel (count(?mid) as ?depth) WHERE {
  wd:Q4421 wdt:P279* ?mid.
  ?mid wdt:P279* ?entity
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
} group by ?entity ?entityLabel
order by ?depth

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?depth") v3("?entity"):::projected v2("?mid"):::projected c4(["bd:serviceParam"]):::iri c1(["wd:Q4421"]):::iri c6(["en"]):::literal c1 --"wdt:P279"--> v2 v2 --"wdt:P279"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end bind1[/"count(?mid)"/] v2 --o bind1 bind1 --as--o v4