Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-1512

Write a proof-of-concept MigrationIDMapper implementation in migration-utils to support custom hierarchy.


    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None


      Implementations of org.fcrepo.migration.MigrationIDMapper may be chosen in the spring configuration to control how identifiers (PIDs) in fedora 3 are mapped to URIs in fedora 4. Currently there's only a single implementation that chops up the pid to create a path in fedora 4.

      We'd like to create a method by which people can take advantage of hierarchy in the content they migrate to fedora 4.

      The basic interface for MigrationIDMapper is only provided with pid and datastream id when mapping objects or datastream identifiers to fedora 4. This requirement comes from the fact that the mapping has to be done when processing references to other objects in the RELS-EXT datastreams. It also is advantageous to avoid computationally expensive operations (like querying a running fedora 3 resource index, or loading and processing information from a fedora 3 object) each time one of these ids must be resolved. Instead, if the mapping is complex, an approach where the mapping for all the pids in the repository is done first (perhaps by a completely unrelated process) may prove best.

      One possibility would be to create a MigrationIDMapper implementation that simply takes a simple text file (property, csv, or something like it) that contains mappings from pids to fedora 4 paths. Then, for complex collections, one need only write a script in whatever language they favor to produce such a list.


          Issue Links



              • Assignee:
                daniel-dgi Daniel Lamb [X] (Inactive)
                mdurbin Michael Durbin
                Michael Durbin
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: