query-51759984e7cb0e8d22fecf3f957ee1a1
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel (group_concat(?label;separator=", ") as ?genreLabel) WHERE
{
VALUES ?item {wd:Q184843}
?item wdt:P31 wd:Q11424.
?item wdt:P136 ?genre .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?genre rdfs:label ?label .
?item rdfs:label ?itemLabel .}
} group by ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?genre")
v5("?genreLabel")
v1("?item"):::projected
v4("?itemLabel"):::projected
v3("?label"):::projected
c5(["bd:serviceParam"]):::iri
c7(["en"]):::literal
c2(["wd:Q11424"]):::iri
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q184843"])
bind00 --> bind0
v1 --"wdt:P31"--> c2
v1 --"wdt:P136"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
v2 --"rdfs:label"--> v3
v1 --"rdfs:label"--> v4
end
bind2[/"?label"/]
v3 --o bind2
bind2 --as--o v5