Storage

Interaktion mit Fedora

Das Package "storage" beinhaltet Schritte, die insbesondere mit Fedora Repository interagieren.

Storage: check checksums in Fedora

Vergleicht die Objekte aus dem ORIGINAL-Datastream in Fedora mit der generierten Checksumme.

java ch.docuteam.feeder.storage.ChecksumChecker \
     -e "[mailto:]<recipient>" \
     [-s subjectOk|subjectError|subjectNoConnection] \
     [-n namespace..]
Parameter Beschreibung
-e (or --email) <recipient> URL of type mailto:recipient@example.com. If protocol is omitted it is automatically prepended to the email address
-s (or --subject) subjectOk|
subjectError|subjectNoConnection
(optional): mail subjects to use for the given outcomes, separated by '
-n (or --namespace) [namespace]
[namespace] ...
(optional): Fedora namespaces separated by space; if no namespace is given, all namespaces are checked.

Storage: create Fedora objects

Konvertiert ein zugewiesenes METS-Packet in eine FOXML-Datei (Fedora Object).

java ch.docuteam.feeder.storage.FOXMLCreator \
     [path/to/]SIP
Parameter Beschreibung
[path/to/]SIP name of the SIP. If no path is given, it will be expected to be in the location defined by the feeder.workbench.work property

Storage: deliver DIP

Holt die Objekte anhand einer PID (fedora persistent unique identifier) oder einer PUID (pronom persistent unique identifier) aus dem Repository, generiert ein DIP mit Hilfe von docuteam rservices und liefert dieses aus.

java ch.docuteam.feeder.storage.DIPDeliverer \
     ['pid'|'puid'] [PID|PUID] [targetLocation]
Parameter Beschreibung
['pid' | 'puid'] if pid then provide a fedora PID, if puid then provide a pronom PUID
[PID|PUID] PID = fedora persistent unique identifier, PUID = pronom persistent unique identifier
[targetLocation] (optional): Location where to save the DIP

Storage: transfer Fedora objects to repository

Überführt Fedora-Objekte in ein Fedora Repository.

java ch.docuteam.feeder.storage.FOXMLIngester \
     [path/to/]SIP [keepFOXML]
Parameter Beschreibung
[path/to/]SIP name of the SIP. If no path is given, it will be expected to be in the location defined by the feeder.workbench.storage property
keepFOXML (optional): One of { true|false }, indicating whether to keep the FOXML files after a successful ingest; defaults to true

Storage: update Fedora object

Lädt neue Objektversionen auf das Fedora Repository.

java ch.docuteam.feeder.storage.FedoraObjectUpdater \
     [path/to/]SIP
Parameter Beschreibung
[path/to/]SIP name of the SIP. If no path is given, it will be expected to be in the location defined by the feeder.workbench.work property

Storage: validate METS

Validiert die mets.xml-Datei mit dem verbundenen Schema und ergänzt die Elemente mit dem Namenraum des Root-Elements. Dies ist eine notwendige Vorbereitung, falls das mets.xml in unterschiedliche Teile aufgesplittet werden muss. Dies ist zum Beispiel er Fall, wenn unterschiedliche Fedora-Objektdateien aus einem SIP erstellt werden sollen.

java ch.docuteam.feeder.storage.METSValidator \
     [path/to/]SIP [withEAD]
Parameter Beschreibung
[path/to/]SIP path of the SIP; if no path is given, it will be expected to be in the location defined by the feeder.workbench.work property
[withEAD] whether to include EAD as descriptive metadata and create a datastream in the fedora objects; defaults to false

Storage: assign PIDs

Weist allen Knoten eines SIPs eine von Fedora generierte PID zu.

java ch.docuteam.feeder.storage.PIDAssigner \
     [path/to/]SIP
Parameter Beschreibung
[path/to/]SIP name of the SIP. If no path is given, it will be expected to be in the location defined by the feeder.workbench.work property

Storage: save or send PID list

Speichert die Datei PIDs.txt oder sendet diese an eine URL. Diese Datei ist ein Resultat des Schritts 'Storage: transfer Fedora objects to repository'.

java ch.docuteam.feeder.storage.PIDListPublisher \
     [path/to/]SIP receiverURL
Parameter Beschreibung
[path/to/]SIP path of the SIP; if no path is given, it will be expected to be in the location defined by the feeder.workbench.storage property
receiverURL An URL in the style of { file:

Storage: rename SIP

Benennt ein SIP um, indem es die PID des Wurzelelements in der Datei mets.xml als Präfix benutzt. Der Schritt setzt PID als accessorName in der Datei levels.xml voraus.

java ch.docuteam.feeder.storage.RenameSIPasAIPforIaaS \
     [path/to/]SIP [targetFolder]
Parameter Beschreibung
[path/to/]SIP path of the SIP; if only the name is given, it will be expected to be in the location defined by the feeder.workbench.inbox property
[targetFolder] directory where to put the AIP to; if omitted, the AIP will be copied to the location defined by the feeder.workbench.output property

Storage: update excel with PID

Schreibt PIDs eines SIPs in eine Excel-Tabelle. Die Tabelle muss eine Spalte besitzen, die mit identifier oder id in der ersten Zeile bezeichnet ist. Die PIDs werden in die Spalte geschrieben, die mit PID bezeichnet ist, oder - falls eine solche Spalte fehlt - in die nächste freie Spalte.

java ch.docuteam.feeder.storage.UpdateExcelWithPID \
     [path/to/]SIP path/to/folder/with/excel
Parameter Beschreibung
[path/to/]SIP path to the SIP; if relative path is given, try to find it in feeder.workbench.work
path/to/folder/with/excel path to the excel files to be updated