Page MenuHomePhabricator

wikibase:language ignores language codes with a space
Closed, ResolvedPublic

Description

This query did not produce Armenian labels for many items even though they actually exist, only because of the extra space in the language code list. I think the labeling service should be more tolerant, or it should raise an error. Silent ignore is the worst.

SELECT ?item ?itemLabel
WHERE
{
  ?item wdt:P3170 ?heritageId .
  SERVICE wikibase:label { 
    bd:serviceParam wikibase:language "en, hy" .
  }
}

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 315852 had a related patch set uploaded (by Smalyshev):
Allow spaces in language list

https://gerrit.wikimedia.org/r/315852

Change 315852 merged by jenkins-bot:
Allow spaces in language list

https://gerrit.wikimedia.org/r/315852