query-eb0f3c5ddb69326680757613f00bd7e3

rq turtle/ttl

Propertiessubclass of (P279)

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 ?item ?itemLabel ?sousclasse ?sousclasseLabel (count(?mid) as ?distance) { 
  BIND(wd:Q28070878 as ?item)
  ?mid wdt:P279* ?item .
  ?sousclasse wdt:P279+ ?mid .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?item ?itemLabel ?sousclasse ?sousclasseLabel 
ORDER BY ?itemLabel ?distance ?sousclasseLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?distance") v4("?item"):::projected v1("?itemLabel"):::projected v5("?mid"):::projected v6("?sousclasse"):::projected v3("?sousclasseLabel"):::projected c3(["bd:serviceParam"]):::iri c5(["fr"]):::literal bind0[/"'wd:Q28070878'"/] bind0 --as--o v4 v5 --"wdt:P279"--> v4 v6 --"wdt:P279"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end bind2[/"count(?mid)"/] v5 --o bind2 bind2 --as--o v7