query-f12fced62df4fad3f55eddda4c896351

rq turtle/ttl

genre

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  ?genre ?itemLabel WHERE {
 ?item wdt:P170 wd:Q381238 .    
 optional{ ?item wdt:P136 ?genre .   } 
 SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?genre"):::projected v1("?item"):::projected c2(["wd:Q381238"]):::iri c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v1 --"wdt:P170"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P136".-> v2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end