query-2e04df6bdbc0fd694b7baadee9d39440

rq turtle/ttl

GroupingI'm trying to get this (experimental) code to work:

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 ?game (group_concat(distinct ?gameLabel ; separator = ",") AS ?propset) WHERE {
    ?game wdt:P31 wd:Q7889;
    wdt:P136 wd:Q744038.
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
} group by $game

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?game"):::projected v2("?gameLabel"):::projected v3("?propset") c6(["bd:serviceParam"]):::iri c4(["wd:Q744038"]):::iri c2(["wd:Q7889"]):::iri c8(["en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P136"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"?gameLabel"/] v2 --o bind1 bind1 --as--o v3