Page MenuHomePhabricator

uppercase schema:inLanguage on Wikidata Query Service
Closed, DuplicatePublic

Description

Shouldn't it be "nds-nl" instead of "nds-NL" (8950 current uses)

lang() on labels gives "nds-nl" (sample).

Event Timeline

Esc3300 created this task.Sep 6 2017, 12:14 PM
Restricted Application added projects: Wikidata, Discovery. · View Herald TranscriptSep 6 2017, 12:14 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Esc3300 updated the task description. (Show Details)Sep 6 2017, 12:44 PM
Smalyshev added a subscriber: Smalyshev.EditedSep 16 2017, 12:44 AM

The language code for links works this way (see SiteLinksRdfBuilder class):

  • take the value in the database site matrix
  • if we have custom name configured for it, use that
  • otherwise, apply wfBCP47 function to it and use that

Looks like wfBCP47('nds-nl') returns nds-NL. Since this function says it returns the normalized tag, I am inclined to believe it.