query-d55023d630792078c221835f8e19459b

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