About everything in the title : When I use
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
I may get some results with the detected [AUTO_LANGUAGE] and others in 'en'.
Is it possible to get the used language for each of the lines of the result ?
Asked
Active
Viewed 613 times
0

Okilele
- 85
- 1
- 5
-
1https://w.wiki/ZSo or https://w.wiki/ZSr – Stanislav Kralin Aug 13 '20 at 10:21
1 Answers
2
Yes. LANG(?var)
does that:
SELECT ?item ?itemLabel (LANG(?itemLabel) as ?langLabel)
WHERE {
?item wdt:P31 wd:Q146.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "de,fr,en".
}
}

Matthias Winkelmann
- 15,870
- 7
- 64
- 76