Page MenuHomePhabricator

Extend support for Wikidata items to cover unitful values and other types, so that function creators can take advantage of more of the content features of Wikidata
Closed, ResolvedPublic

Description

Description

An enormous amount of fundamental content in Wikidata is captured using Wikidata's datatypes for Point-in-time, Quantity, and Geographic coordinate, but we do not yet import them into Wikifunctions. This task will create corresponding types in Wikifunctions and arrange for the import of this content from Wikidata.

General notes:

  • These 3 new types are for values that will appear inside of Z6003/Wikidata statement (each instance of one of these new types will be the value of Z6003K3/value).
  • Those statements appear inside instances of our existing Wikidata entity types (item, lexeme, etc.).
  • The existing Wikidata entity types will not change at all, but their instances will have more nested statements as a result of this work.
  • This work will not include support for persistent instances of these new types.
  • Geographic coordinate is regarded as a stretch goal for Q4 work.
  • For viewing and constructing instances of these types in the UI, we will rely on the fallback interface (i.e., no ad hoc component).

Overview of Subtasks

  • Develop & declare the types, with community involvement
  • Declare and implement Parser/renderer functions for each of the types
  • Update orchestrator code (of Wikidata Fetch functions) to create (nested) instances of these types

Acceptance criteria

  1. Community discussion for agreement on the types to add
  2. Point-in-time types exist, are correctly instantiated by existing built-in Fetch functions, and are usable by the community.
  3. Quantity types exist, are correctly instantiated by existing built-in Fetch functions, and are usable by the community.
  4. (stretch goal) Same for Geographic coordinate, OR we have an actionable plan for completing it in Q1.

Related Objects

Event Timeline

DMartin-WMF changed the task status from Open to In Progress.Apr 6 2025, 4:36 PM
DSantamaria changed the task status from In Progress to Open.Apr 7 2025, 3:48 PM
DSantamaria triaged this task as Medium priority.Apr 9 2025, 4:53 PM