query-6ce2e14af572ac7ed5ec17ce5d5f78bc

rq turtle/ttl

Feature proposal: highlight source entity14:26, 22 April 2023 (UTC) pagetalk / TomT0m author This section was archived on a request by: When an entity has many entities in its supercass tree it can become hard to find the starting entity inside the tree. It would be useful to have the source entity highlighted. as example entity, this could be achieved by transforming the tree query from this... (Q208511)global city Using

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#>
#defaultView:Graph
select ?bottomSuperclass ?parent ?bottomSuperclassLabel ?parentLabel{
   bind ( wd:Q208511 as ?bottom) .
  ?bottom wdt:P279* ?bottomSuperclass. 
  ?bottomSuperclass wdt:P279 ?parent .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?bottom") v2("?bottomSuperclass"):::projected v3("?parent"):::projected c3(["bd:serviceParam"]):::iri c5(["it,en,#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/"'wd:Q208511'"/] bind0 --as--o v1 v1 --"wdt:P279"--> v2 v2 --"wdt:P279"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end