Page MenuHomePhabricator

label and description missing when a entering a lexeme id into wbsearchentities
Open, Needs TriagePublic

Description

When entering a quid into an Item field one gets a helpful autocomplete message that can be used to verify if the correct item was selected:

Screenshot 2024-08-07 at 18.34.46.png (186×1 px, 29 KB)

This is what the request looks like: https://www.wikidata.org/w/api.php?action=wbsearchentities&search=Q112795079&format=json&errorformat=plaintext&language=en&uselang=en&type=item (note that label and description are present)

On the other hand, when entering a lid into a Lexeme field one gets an not very helpful autocomplete message that only contains the entered id

Screenshot 2024-08-07 at 18.28.40.png (178×882 px, 18 KB)

This is what the request looks like: https://www.wikidata.org/w/api.php?action=wbsearchentities&search=L1234&format=json&errorformat=plaintext&language=en&uselang=en&type=lexeme (note that label and description are missing)

Also note that label and description are present when searching for a lemma:
https://www.wikidata.org/w/api.php?action=wbsearchentities&search=%E4%BD%95&format=json&errorformat=plaintext&language=en&uselang=en&type=lexeme

Screenshot 2024-08-07 at 18.36.08.png (292×980 px, 29 KB)

Related Objects

Event Timeline

Shisma renamed this task from label or description missing when a entering a lexeme id into wbsearchentities to label and description missing when a entering a lexeme id into wbsearchentities.Aug 7 2024, 4:40 PM

This is because L1234 does not have lemma in English or any languages in fallback chain. You can enter an item QID without English label or description (random example: Q29323432), and label and descriptions will not display either.

See also T89213: Allow fallback to any language.

Nikki subscribed.

This is because L1234 does not have lemma in English or any languages in fallback chain. You can enter an item QID without English label or description (random example: Q29323432), and label and descriptions will not display either.

That can't be the reason because it doesn't work for English lexemes either:

lexeme-search-l7.png (213×994 px, 10 KB)