Page MenuHomePhabricator

New built-in function to identify lexemes related to a given Wikidata item
Closed, ResolvedPublic

Description

Description

Provide a new pre-defined & built-in function that returns (if available) a list of Lexeme IDs based on 3 inputs: Wikidata Item ID, Wikidata Property ID, and Language. The function can employ the search API augmented and discussed in T378097, to retrieve entities related to the given Wikidata Item ID and Wikidata Property ID. Then it needs to filter down to the lexemes, and filter the lexemes by the given Language. It's possible that filtering by Language might soon be supported by the search step; see T271776.

  • 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

Event Timeline

DSantamaria changed the task status from Open to In Progress.Jan 31 2025, 11:09 AM

Change #1118815 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (39b22ad)

https://gerrit.wikimedia.org/r/1118815

Change #1118815 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Update function-schemata sub-module to HEAD (39b22ad)

https://gerrit.wikimedia.org/r/1118815

Change #1119094 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-02-03-215824 to 2025-02-11-155417.

https://gerrit.wikimedia.org/r/1119094

Change #1119109 had a related patch set uploaded (by Cory Massaro; author: Cory Massaro):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-01-30-011236 to 2025-02-11-155338.

https://gerrit.wikimedia.org/r/1119109

Change #1119094 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-02-03-215824 to 2025-02-11-155417.

https://gerrit.wikimedia.org/r/1119094

Change #1119109 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2025-01-30-011236 to 2025-02-11-155338.

https://gerrit.wikimedia.org/r/1119109

Change #1119191 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-02-03-215824 to 2025-02-12-171406

https://gerrit.wikimedia.org/r/1119191

Change #1119191 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2025-02-03-215824 to 2025-02-12-171406

https://gerrit.wikimedia.org/r/1119191

Change #1120991 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-02-12-171406 to 2025-02-19-134350

https://gerrit.wikimedia.org/r/1120991

Change #1120991 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Update orchestrator from 2025-02-12-171406 to 2025-02-19-134350

https://gerrit.wikimedia.org/r/1120991

Everything looks great to me. @DMartin-WMF, over to you to sign-off.