Right now, the wikibase:language function has the following pattern:
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en" . }This would use the browser language, and if not set or given, try 'mul', and then 'en'.
Someimes, e.g. in Scholia, we have items with only a label in a smaller language, related to the page in a smaller Wikipedia. One solution is to list all supported Wikipedia (or Wikidata) languages, but maybe that can be wrapped into something like [ANY_LANGUAGE], so that SPARQL queries can do instead:
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en,[ANY_LANGUAGE]" . }The expected behavior can be discussed when there are multiple languages that it can select from, but I'd be happy with the sample() solutions here, to just give some hit.
For some context, see https://github.com/WDscholia/scholia/pull/2310#discussion_r1806800969