Page MenuHomePhabricator

Add site links to fetched Wikidata items
Open, In Progress, MediumPublic

Description

Description

Currently, when fetching a Wikidata Item, we ignore site links. (This was previously de-prioritized, and left for future attention.) For completeness, this information should be available to functions that may need it.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • Figure out how site links should be represented in Wikifunctions. (Possibly using a Z881/list of Z883/map.)
  • Make additions in function-schemata to support the representation (possibly just a new key in Z6001).
  • Pull-through the function-schemata changes into the orchestrator repository.
  • Add orchestrator code to ingest the site links.
  • Consider whether any UI changes are needed, in WikiLambda, to enable the presentation of qualifiers. If so, make a separate ticket for them.

Remove all the non-applicable tags from the "Tags" field, leave only the tags of the projects/repositories related to this task


Completion checklist

Event Timeline

Could we instead have a typed list of a new type for sitelinks (with keys wiki and title)? This would also allow references to articles on other wikis in other ways as well. We may also want an enum type of Wikimedia wikis.

(Happy for us to do a separate getSitelink( QID, language, project ) pre-defined Function at first.)

jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-schemata/-/merge_requests/321

Add Z6039/'Wikidata sitelink', Z6001K6/sitelinks & Z6839/'Fetch Wikidata sitelinks'

DMartin-WMF changed the task status from Open to In Progress.Wed, Feb 11, 6:58 PM
DMartin-WMF claimed this task.

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

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

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

Change #1239014 merged by jenkins-bot:

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

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

jforrester merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/546

Add language-filtered import of sitelinks to Wikidata items fetched by Z6820; Implement Z6839/Fetch with sitelinks

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

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-02-11-123504 to 2026-02-12-145008

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

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

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-02-11-121010 to 2026-02-18-140059

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

Change #1240290 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-02-11-123504 to 2026-02-12-145008

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