Page MenuHomePhabricator

Self-service mapping of custom Wikibase properties to Wikidata properties
Open, Needs TriagePublic

Description

As a Wikibase Editor, I want to dynamically map properties in my Wikibase to the corresponding Wikidata properties (for example, via the entity page interface) so that I can use new tools that interact with properties without the SysAdmin needing to edit the manifest file manually for me

Options we considered

  1. Adding a statement using a "Same as Wikibase" property to each entity that includes as the value either the entity ID (e.g. Q1) or URI (e.g. http://wikidata.org/entity/Q1) AND then adding this SameAs property to the config file OR instead of adding this SameAs property to the config file, we could detect what this property is automatically using some method or other
  2. Some other setup in which the mapping is stored elsewhere (not within statements) such as on a Special Page that is potentially only accessible to certain users
  3. Store config data as a JSON blob on a wiki page (in combination with JsonConfig?)

Things to keep in mind / downsides

  • For option 1, while its more appealing in terms of user task flow vs the alternative of the SysAdmin setting these values in the manifest file, there is a vandalism risk/error risk posed by allowing editors to make statements that would ultimately change the output of the manifest (in a way that could break tools or result in faulty edits via a tool like OpenRefine)
  • Option 2 has less vandalism risk but requires an additional table / coordination with DBAs. If we wanted to track edits to this special page and make this visible to editors, that would add overhead
  • Option 3: additional dependency (would need to use JsonConfig extension)