query-163f6748caf2ec9d1dec12c8e8e7fea3
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 ?item ?itemLabel (group_concat(distinct ?platform;separator=", ") as ?platforms) (group_concat(distinct ?genre;separator=", ") as ?genres) WHERE
{
{
SELECT ?item WHERE
{
?item wdt:P31 wd:Q7889 .
} LIMIT 10 } ?item wdt:P400 ?value . ?value rdfs:label ?platform . filter(lang(?platform)="en")
?item wdt:P136 ?value2 . ?value2 rdfs:label ?genre . filter(lang(?genre)="en")
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
} group by ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?genre"):::projected
v7("?genres")
v3("?item"):::projected
v2("?platform"):::projected
v6("?platforms")
v4("?value")
v5("?value2")
c8(["bd:serviceParam"]):::iri
c3(["wd:Q7889"]):::iri
c10(["en,en"]):::literal
f0[["?genre = 'en'"]]
f0 --> v1
f1[["?platform = 'en'"]]
f1 --> v2
v3 --"wdt:P31"--> c3
v3 --"wdt:P400"--> v4
v4 --"rdfs:label"--> v2
v3 --"wdt:P136"--> v5
v5 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind4[/"?platform"/]
v2 --o bind4
bind4 --as--o v6
bind5[/"?genre"/]
v1 --o bind5
bind5 --as--o v7