## Description
Write JavaScript functions which, given a Wikidata entity ID, retrieve that entity from Wikidata as a JSON string and use the content to instantiate an instance of the corresponding Wikifunctions type. At this time we are primarily concerned with Wikidata `Lexeme `and `Lexeme form`. We need to retrieve and instantiate the following Wikidata types to the extent they are needed to instantiate lexemes and lexeme forms for initial NLG use cases: `Item`, `Statement`, `Property`, `Lexeme sense`.
The corresponding Wikifunctions types have been merged by this [[ https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/147 | merge request ]].
Details should be coordinated with T282917 (if that work proceeds in the same timeframe). Some Wikidata API details and recommendations are given in T368654.
**Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)**
* Performance should be reasonably optimized.
* Errors should be handled and returned appropriately.
---
## 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