query-10c3ed889d7d9e653cb24b1c023abafa

rq turtle/ttl

Propertiesinstance of (P31)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 ?item ("00FFFF" AS ?rgb) ?itemLabel ?component ?componentLabel
WHERE 
{
  ?item wdt:P31 wd:Q207170.
  ?item wdt:P527 ?component. 
  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; v2("?component"):::projected v1("?item"):::projected v3("?rgb") c5(["bd:serviceParam"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q207170"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P527"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind0[/"'00FFFF'"/] bind0 --as--o v3