...
Repository URL | Filesystem Path |
---|---|
http://localhost:8080/rest/pub/ | /pub/ |
http://localhost:8080/rest/project1/ | /pub/project1/ |
http://localhost:8080/rest/project2/ | /pub/project2/ |
Anchor external-datastreams external-datastreams
External Datastreams
external-datastreams | |
external-datastreams |
One use case for filesystem federation is for external datastreams – storing objects in the repository, but linking to large files on disk instead of ingesting them as datastream content. To do this, copy the file to the federated filesystem directory, create the object in Fedora using the REST API, and then link from the object to the federated filesystem content using the fedorarelsext:hasExternalContent property (see PATCH):
Code Block |
---|
insert data { <> <http://fedora.info/definitions/v4/rels-ext#hasExternalContent> <http://localhost:8080/rest/federated/file/fcr:content> . } |
Transactions
Basic testing has been completed with transactions over a read/write filesystem federation. Content will not be written to the filesystem federation until a transaction is complete. For transactions that are never completed (due to rollback or timeout) content is never written to the filesystem.
...