Page MenuHomePhabricator

Prepare for Wikidata Integration on Commons
Closed, DeclinedPublic

Description

Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/309

Narrative

As Multimedia and Wikidata team members, we want to move forward with the wikidata integration before Wikidata on Commons actually gets enabled.

Acceptance Criteria

  • Create mock interfaces which behave like Wikidata interfaces but use wikitext to read/write data.
  • In terms of MediaViewer (where we only do reading, and already interact with the wikitext) that would mean looking at the bug 57259 ), and maybe some sort of "bundling" of related properties. (E. g. right now we have a bunch of independent fields for short license name, long license name, license URL etc; with Wikidata the file would have a license property, which would be a data item, and the name, URL etc. would be properties of that. Having these fields as independent when in reality they belong together causes us all sorts of problems with multiple values.)
  • For UploadWizard (where we only write information, in the form of information/license templates on a newly created page) we should hide the current code of generating template text behind an API similar to wbcreateclaim .
  • Mocking a read/write API (i.e. changing metadata by updating already existing wikitext) is something I wouldn't touch with a ten-foot pole. Fortunately, there is nothing on our roadmap AFAIK that would require it.
  • Check the wikidata.org javascript codefor getting/setting properties. Wikidata uses very specific data types for time, location etc. which can have undefined or uncertain values; we probably do not want to reinvent the UI for that. So we should see how reusablethe existing codeis, howmuch it fits into our use cases, give feedback to the Wikidata team (who plan on refactoring it anyway) on how it could be more useful for us. I think the interesting part for us is Wikibase extensions .
  • Have a look at the Item classes, see if we need anything extra for the new media-info entity subtype which will be used to store file data on Commons.

Related Documents

Wikidata for Media Info - Proposal by Daniel Kinzler

https://commons.wikimedia.org/wiki/Commons:Wikidata_for_media_info

Wikidata/Multimedia Team Meeting Notes : See Nov. 7 - Commons section

https://etherpad.wikimedia.org/p/Wikidata

Machine-readable data on Commons - Community request

https://commons.wikimedia.org/wiki/Commons:Machine-readable_data

Related Bugs

Related Stories

#307 - Plan for Structured Data on Commons

Related Changesets

Event Timeline

MingleTerminator raised the priority of this task from to High.Dec 8 2014, 4:54 PM
Lydia_Pintscher claimed this task.

Closing this as I think this is covered by a lot of other tickets we have open.

Are there any plans to have ImageAnnotator interact in some way with Wikidata? Perhaps by having the annotations as part of the image metadata itself. Is there any work in this area?