query-6fa598875a6227d4a0aa9f23ddfb2fa4

rq turtle/ttl

Redundant direct subclasses of “entity” item and noticed that it has several direct subclasses which are also a subclass of something else: (Q35120)entity Hi all! I was looking into the “neighborhood” of the

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 ?class ?classLabel ?otherClassLabel WHERE {
  ?class wdt:P279 wd:Q35120, ?otherClass.
  FILTER(?otherClass != wd:Q35120)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?classLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?class"):::projected v1("?classLabel"):::projected v2("?otherClass") c4(["bd:serviceParam"]):::iri c1(["wd:Q35120"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?otherClass != 'wd:Q35120'"]] f0 --> v2 v3 --"wdt:P279"--> c1 v3 --"wdt:P279"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end