Versions Compared

Key

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

...

Code Block
languagebash
id="foo/bar"; id_digest=$(echo -n "info:fedora/${id}" | sha512sumsha256sum -); echo "${id_digest:0:3}/${id_digest:3:3}/${id_digest:6:3}/${id_digest}"

While it is possible to browse the contents of the OCFL repository by hand, it typically makes more sense to use an OCFL CLI client such as rocfl or ocfl-py. These tools make it easy to inspect the contents of OCFL objects.

Info

Fedora stores the IDs of resources under its control using the placeholder "info:fedora/" in place of the schema, hostname, port and context of the server.

i.e. http://localhost:8080/rest/my/resource => info:fedora/my/resource

The format of the OCFL objects is described in detail in in Fedora OCFL Object Structure.

...