Description
Provide a new pre-defined & built-in function that returns (if available) a list of Wikidata lexeme references based on 3 inputs, having these types: Wikidata lexeme sense reference, Wikidata property reference, and Natural language. The function can employ the search API augmented and discussed in T378097, to retrieve entities related to the given entity references. Then it needs to filter down to the lexemes, and filter the lexemes by the given Natural language. It's possible that filtering by Language might soon be supported by the search step; see T271776.
This is motivated by querying over the property pertainym of. This can be modeled after, and reuse code for, T383631.
Example call to the search API.
- Declare the function in function-schemata
- Declare the implementation in function-schemata
- Write the implementation code in the orchestrator
- Provide CI tests
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- The new function should return quickly without timeouts, noticeable delays, or other performance problems.
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist