query-ece1c1647635c88a4a5a92a9bce82dbd

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)has part(s) (P527)

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 DISTINCT ?item ("00FFFF" AS ?rgb) ?itemLabel ?part ?partLabel WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q167772.
  ?item wdt:P527 ?part.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?part"):::projected v3("?rgb") a1((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q167772"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P527"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind0[/"'00FFFF'"/] bind0 --as--o v3