query-5ebb19599280f0d471e1bb377303463f
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel (GROUP_CONCAT(DISTINCT ?val_en;separator="; ") as ?en) (GROUP_CONCAT(DISTINCT ?val_ru;separator="; ") as ?ru) (GROUP_CONCAT(DISTINCT ?val_sv;separator="; ") as ?sv)
WHERE
{
VALUES ?item {wd:Q145}
OPTIONAL {?item wdt:P1813 ?val_en. filter(lang(?val_en) ="en") }
OPTIONAL {?item wdt:P1813 ?val_ru. filter(lang(?val_ru) ="ru") }
OPTIONAL {?item wdt:P1813 ?val_sv. filter(lang(?val_sv) ="sv") }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?en")
v4("?item"):::projected
v6("?ru")
v7("?sv")
v3("?val_en"):::projected
v2("?val_ru"):::projected
v1("?val_sv"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v4
bind00(["wd:Q145"])
bind00 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1813".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1813".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P1813".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"?val_en"/]
v3 --o bind4
bind4 --as--o v5
bind5[/"?val_ru"/]
v2 --o bind5
bind5 --as--o v6
bind6[/"?val_sv"/]
v1 --o bind6
bind6 --as--o v7