Commons:GLAMwiki Toolset Project/Technical Architecture/Maintain versioned Metadata Mappings

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Maintain versioned Metadata Mappings[edit]

Potential Solutions[edit]

  1. May_24-26,_2013_Amsterdam_Hackathon Use the MediaWiki API
    • create a json mapping based on user input.
    • save the mapping as a wiki page under the user’s namespace as a way of keeping the page unique; thus a mapping named Rijksmuseum becomes
      User:Dan-nl/Metadata_Mappings/Rijksmuseum
      with <mapping_json></mapping_json> surrounding the json to make it easier to retrieve via the API.
    • add a category to the uploaded metadata files GWToolset Metadata Mappings for reference so that Metadata Mappings can be found on the page Category:GWToolset_Metadata_Mappings.
  2. Use ContentHandler
    • create a json mapping based on user input
    • save the mapping with ContentHandler as TextContent under the namespace GWToolset using the user name as a unique identifier; thus a mapping named Rijksmuseum becomes
      GWToolset:Metadata_Mappings/Dan-nl/Rijksmuseum.json
    • Mappings can then be found on the page Special:PrefixIndex/GWToolset:Metadata_Mappings or Special:PrefixIndex/GWToolset:Metadata_Mappings/Dan-nl