Skip to content

Testing Valkyrie with Fedora 6 OCFL storage adapter

Anusha Ranganathan edited this page Aug 18, 2023 · 2 revisions

Notes on using Valkyrie to create a storage adapter for Fedora 6

We have an instance of Fedora 6 running OCFL storage.

The steps involved in using Valkyrie to interface with Fedora 6 are:

  1. Add Valkyrie in the Gemfile - code

  2. Initialise a new storage adapter in Hyrax - code example

  3. Create a class to add the metadata and files from your work to OCFL using the storage adapter - code example

  • This creates a new container and saves the metadata and the files in Fedora6 OCFL store.
  • It also has an example code to delete files from Fedora6 OCFL store.

Modifications / extensions needed in the Valkyrie storage adapter

  • The Fedora storage adapter in Valkyrie does not support adding remote files.
  • We were not able to open a transaction and do all of the operations within a transaction.

You can view all of the code in this PR