Class LanguageCodeStore


  • public class LanguageCodeStore
    extends Object
    A store for the allowed language code for terms and monolingual text values in Wikibase. TODO: separate the languages allowed for terms from the ones allowed for monolingual text. Currently the list is for monolingual texts (which is larger). Query to update this list: curl "https://www.wikidata.org/w/api.php?action=query&meta=wbcontentlanguages&wbclprop=code&wbclcontext=monolingualtext&format=json" | jq ".query.wbcontentlanguages[].code" | sed -e "s/$/,/"
    Author:
    Antonin Delpeuch
    • Constructor Detail

      • LanguageCodeStore

        public LanguageCodeStore()
    • Method Detail

      • getLanguageCodes

        public static Set<String> getLanguageCodes​(String mediaWikiApiEndpoint)