nichtich added a comment.

I found an example where even `uselang` and `language` does not help but part 
of the response is always English:

https://www.wikidata.org/w/api.php?action=wbsearchentities&search=%C3%84rzte%20ohne&language=de&format=json&uselang=de

contains the result

  {
      "id":"Q49330",
      "concepturi":"http://www.wikidata.org/entity/Q49330";,
      "url":"//www.wikidata.org/wiki/Q49330",
      "title":"Q49330",
      "pageid":51315,
      "label":"\u00c4rzte ohne Grenzen",
      "description":"organization"
      ,"match":{"type":"label","language":"de","text":"\u00c4rzte ohne Grenzen"}
  },

The current entity Q49330 has no German "description" field so the English 
description is returned instead.

The API is definitely broken. Either the full result should be one language or 
all strings should be marked with a language, e.g.

  "label": { "de": "...", "en": "..." },
  "alias": { "de": ["..."] },
  "description": { "en": "..." },

I'd like to specify multiple languages to search in and multiple langauges to 
get result in. For instance search in Greek and Turkish (when looking for a 
name that could be in any of these two languages) and get results also in 
English (beause I don't read first two languages).


TASK DETAIL
  https://phabricator.wikimedia.org/T109584

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: nichtich
Cc: nichtich, Lydia_Pintscher, Jonas, Addshore, thiemowmde, Aklapper, 
Wikidata-bugs, aude



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to