Page MenuHomePhabricator

Support automatically created descriptions for Wikidata items from abstract descriptions
Open, Needs TriagePublic

Description

Automatically generated descriptions for Wikidata items have been suggested at least two times before: T91981 and T303677

Now we are suggesting it another time, but differently: instead of having a single big piece of code that tries to make descriptions for everything in every language, we suggest:

  • a new datatype that can take a ZID, referencing an object (mostly a function) on Wikifunctions
  • a new property on Wikidata that takes a ZID as the value type
  • connect an item with a function that takes a QID and a natural language as an input

Then we can use that function to generate a description for the given item and requested language. An example of such a function is https://www.wikifunctions.org/view/en/Z28803 which is useful for many musical albums.

Once we can connect the function to the item, there are a number of further tasks that need to be implemented. The following list may not be complete:

  • ensure the API returns the description for relevant queries when an explicit description for the given language and item is missing
  • display the description in Wikidata when a description for the given language and item is missing
  • display the description in places outside Wikidata when a description for the given language and item is missing (e.g. in the search box on Wikipedia for participating languages)
  • cache function results as needed in order to not slow down Wikidata or other sites using the descriptions
  • decide how, if at all, the descriptions should be present in the triple store. Do we just drop all descriptions? Do we make them available only through the label service? If the latter, how do we connect the label service to actually access the resulting descriptions?

There might be other necessary tasks.

Event Timeline