query-1c4bf12d412d3b9dbdf45d4bc43fac47

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?s ?desc
WHERE
{
  ?s wdt:P31/wdt:P279* wd:Q47461344 .
  OPTIONAL {
     ?s rdfs:label ?desc filter (lang(?desc) = "en").
   }
 }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?desc"):::projected v2("?s"):::projected a1((" ")) c4(["wd:Q47461344"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."rdfs:label".-> v1 end