Ingest
Das Package "ingest" beinhaltet Schritte für den Ingestprozess.
Ingest: convert BAR-SIP
Konvertiert ein BAR-SIP in ein SIP, welches dem Matterhorn Profil entspricht.
java ch.docuteam.feeder.ingest.BARSIPConverter \
[path/to/]BAR-SIP [targetFolder]
Parameter | Beschreibung |
---|---|
[path/to/]BAR-SIP |
name of the BAR-SIP folder or ZIP-file; if no path is given, it will be expected to be in the location defined by the feeder.workbench.inbox property |
[targetFolder] |
directory where to move the created SIP to; if omitted, the SIP will be moved to the location defined by the feeder.workbench.work property |
Ingest: create SIP from eCH-0160 SIP
Erstellt ein auf dem Matterhorn Profil basierendes SIP aus einem eCH-0160 SIP.
java ch.docuteam.feeder.ingest.CreateSIPFromECH0160SIP \
--sip=[path/to/]SIP \
--levelsFilePath=/path/to/levels.xml \
--[mappingFile=[path/to/]mappingFile] \
--[output-folder=/path/to/folder]
Parameter | Beschreibung |
---|---|
--sip=[path/to/]SIP |
location of the SIP to convert; default lookup folder is feeder.workbench.inbox |
--levelsFilePath=/path/to/levels.xml |
path to the file levels.xml |
--[mappingFile=[path/to/]mappingFile] |
file from which to read the mapping; defaults to a default mapping file (defined by the mapping module) |
--[output-folder=/path/to/folder] |
indicate the output folder; defaults to feeder.workbench.work |
Ingest: check workbench space
Prüft, ob genügend Platz für die Verarbeitung des SIPs (d.h. für Arbeitskopien) vorhanden ist.
java ch.docuteam.feeder.ingest.CheckWorkbenchSpace \
[path/to/]SIP [numberOfCopies]
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 |
[numberOfCopies] |
optional, number of copies to calculate with; defaults to 3 |
Ingest: cleanup working copies
Löscht vorhandene SIPs in feeder.workbench.work
. Optional können auch gleichnamige SIPs in feeder.workbench.preparation
gelöscht werden.
java ch.docuteam.feeder.ingest.Cleanup \
[path/to/]SIP [prep]
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 |
[prep] |
if true , SIPs of the same name in feeder.workbench.preparation will be removed as well; defaults to false |
Ingest: create EAD file
Erstellt aus einzelnen Knotenpunkten von einem gegebenen SIP EAD-Datenblöcke.
java ch.docuteam.feeder.ingest.CreateEADFile \
[path/to/]SIP [targetFilename]
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 |
[targetFilename] |
optional, name of the output file; defaults to EAD.xml within the SIP's subfolder in the location defined by the feeder.workbench.output property |
Ingest: extent calculator
Setzt die Anzahl Dateien in das Metadatenfeld "Umfang" und die Einheit auf den Default-Wert "Datei(en)".
java ch.docuteam.feeder.ingest.ExtentCalculator \
[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
Ingest: migrate files
Vergleicht die Dateien eines SIP mit den Angaben in der Konfigurationsdatei migration-config.xml
und konvertiert die Dateien gemäss den dort angegebenen Konvertierungsrichtlinien.
java ch.docuteam.feeder.ingest.SIPFileMigrator \
[path/to/]SIP keepOriginals [path/to/migration-config.xml]
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 |
keepOriginals |
{ true |
[path/to/migration-config.xml] |
optional, path to a specific migration configuration file (defaults to ./config/migration-config.xml ) |
Ingest: remove SIP from inbox
Verschiebt ein vorhandenes SIP aus feeder.workbench.inbox
in einen vorgegebenen Ordner oder löscht es, sofern kein Zielordner angegeben ist.
java ch.docuteam.feeder.ingest.SIPRemoveFromInbox \
[path/to/]SIP [targetFolder]
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.inbox property |
[targetFolder] |
directory where to move the SIP to; if omitted, the SIP will be deleted |
Ingest: replace file
Ersetzt eine Datei in einem SIP. Dabei werden die Metadaten beibehalten oder ergänzt. Zurzeit können mit diesem Schritt nur SIPs verarbeitet werden, die eine einzelne Datei enthalten.
java ch.docuteam.feeder.ingest.ReplaceFile \
[path/to/]SIP [targetFolder]
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 |
[targetFolder] |
path to the file to be used as replacement of the current SIP content |