query-bc33a5c7634d09b100e77d0f91eef365

rq turtle/ttl

TODO

Use at

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( distinct ?colorLabel; separator=", ") as ?colour) where
{
  values ?thing {wd:Q476028 wd:Q847017 wd:Q6979593}
  ?item wdt:P31 ?thing.
  ?item wdt:P6364 ?color.
  ?color rdfs:label ?colorLabel. filter(lang(?colorLabel)="en")
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?item ?itemLabel order by ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?color") v2("?colorLabel"):::projected v6("?colour") v4("?item"):::projected v1("?itemLabel"):::projected v3("?thing") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?colorLabel = 'en'"]] f0 --> v2 bind1[/VALUES ?thing/] bind1-->v3 bind10(["wd:Q476028"]) bind10 --> bind1 bind11(["wd:Q847017"]) bind11 --> bind1 bind12(["wd:Q6979593"]) bind12 --> bind1 v4 --"wdt:P31"--> v3 v4 --"wdt:P6364"--> v5 v5 --"rdfs:label"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind3[/"?colorLabel"/] v2 --o bind3 bind3 --as--o v6