Description
The way we are going to represent Wikidata lexemes internally is with a function call to a builtin function that takes a Z6695/Wikidata lexeme reference with the L-id and returns a Wikidata lexeme/Z6005 object
derreferenceWikidataLexeme( Wikidata lexeme reference ) --> Wikidata lexeme
And similarly for Wikidata lexeme forms, with Z6694/Wikidata lexeme form reference and Wikidata lexeme form/Z6004.
- Agree on naming and Zids
- Schemata:
- Create function definitions
- Create implementation definitions
Also,
- Write built-in function implementations (Tracking this on T370072)
Naming
What should we call this function?
- derreferenceWikidataLexeme
- getLexemeFromLid
- retrieveLexeme
- resolveWikidataLexemeReference
- resolveLexemeReference
- retrieveWikidataLexeme
- fetchWikidataLexeme
- more?
Zid
We will probably need other functions for other types of Wikidata object. We can follow the same model as with the equality function zids
- Z6005/Wikidata Lexeme
- Z6805/same Wikidata Lexeme
- Z6xx5/get Wikidata Lexeme
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