Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Note
titleNote

This documentation relates to a work in progress during three focused sprints starting on August 29, 2016 and as such, the features and procedures described here may not be finalized and released.

Exporting resources

There are two different methods available for exporting metadata and digital objects from a Fedora 4 repository, the first uses the Camel Serialization Module https://github.com/fcrepo4-exts/fcrepo-camel-toolbox/tree/master/fcrepo-serialization , . The first relies on Camel and the second uses is a stand alone command line tool
utility. Both methods can export RDF and can be configured to also export binary resources. 
Use of the

Exporting Resources Using the Camel Serialization Module


The Camel Serializer is documented here https://wiki.duraspace.org/display/FF/Export+Format .  This method is considered a Module is currently a proof of concept but has documentation and code.   It works by listening for events about newly created resources, or edits to existing resources. As such, the re-indexer Camel component must be invoked to export resources that were created before it started listening, unless they are edited while the camel serializer is turned on.

Exporting Resources Using the Export Tool

The command line tool is part of the Import Export Utility.  https://github. com/fcrepo4-labs/fcrepo-import-export . This tool can export an entire repository, or a subset, and is intended as a method of for creating a complete backup of the content of a single Fedora container and all its descendant resources in a format that . From there, it can be imported back into the same Fedora repository, a different Fedora Repository, or into an another external system.

Installing the export tool

...

  1. Download executable jar (TBD)
  2. Build from source

...

Preparing sample data

Go to Fedora in a browser, and in the 'Create New Child Resource' form on the right hand side of the page, type a name (I used 'albums') into the Identifier box and click 'add'. This will create a sample Resource.

Navigate to that new resource at http://localhost:8080/fcrepo/rest/albums and create a new child resource there.  This time, change the type to binary and upload a sample binary file. I used a jpg image for this example.  The identifier will get filled in by Fedora if you don't choose one yourself.

You now have a Container to export (http://localhost:8080/fcrepo/rest/albums).

...