query-2a1d1faa5d7d587c1fd4d4d274212d38

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?en_label ?it_label (group_concat(?en_a; separator="; ") as ?en_alias) (group_concat(?it_a; separator="; ") as ?it_alias)
WHERE
{
  ?item wdt:P31 wd:Q47461344 .
  ?item rdfs:label ?en_label . filter (lang(?en_label)="en") 
  ?item rdfs:label ?it_label . filter (lang(?it_label)="it")
  optional { ?item skos:altLabel ?en_a . filter (lang(?en_a)="en") }
  optional { ?item skos:altLabel ?it_a . filter (lang(?it_a)="it") }
} group by ?item ?en_label ?it_label

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?en_a"):::projected v6("?en_alias") v3("?en_label"):::projected v1("?it_a"):::projected v7("?it_alias") v2("?it_label"):::projected v5("?item"):::projected c4(["wd:Q47461344"]):::iri f0[["?it_label = 'it'"]] f0 --> v2 f1[["?en_label = 'en'"]] f1 --> v3 v5 --"wdt:P31"--> c4 v5 --"rdfs:label"--> v3 v5 --"rdfs:label"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."skos:altLabel".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."skos:altLabel".-> v1 end bind4[/"?en_a"/] v4 --o bind4 bind4 --as--o v6 bind5[/"?it_a"/] v1 --o bind5 bind5 --as--o v7