Open marcolarosa opened 2 years ago
Trying to clarify the above.
We need two new idToPath functions that can be selected with config in the repo's extensions dir (any repo needs one of these, not multiples).
id2NTuple(id)
that is mentioned above. This will take an ID - any ID - hash it, and generate an n-tuple path looking in the repo config for the n-tuple parameters as described this extension.arcpIDtopath(id)
that will:
${name}/${id2NTuple(id)}
Note that the OCFL Object's inventory.id in the manifest should reference the original ID eg an arcp:// id (complete with the protocol and all the parts) or a URL
Above the issue should say:
hash the whole arcp (including protocol) and turn it into an n-tuple path to create then rest of the path (we are not creating an ID the ARCP is the identifier)
extensions supported by the repo
library functionality to be implemented
[ ] an arcp to path function in the library
name
as the root directory[ ] n tuple hashing function - as defined by https://ocfl.github.io/extensions/0004-hashed-n-tuple-storage-layout.html
[ ] a function that takes an arcp path and returns a tupled path supporting extension defined above