unhplace/fedora-ingest

Automates ingest of digital collections into Fedora Commons 4.

0.2 2018-10-30 15:26 UTC

This package is auto-updated.

Last update: 2024-04-29 04:06:16 UTC


README

This PHP library automates the ingest of digital collections metadata and binaries into a Fedora Commons 4 instance. It is known to work with Fedora 4.7.4.

The relationships created between objects conform to the Portland Common Data Model.

All code conforms to the PSR-2 (Coding Style) and PSR-4 (Autoloading) standards.

Install

Via Composer

$ composer require unhplace/fedora-ingest

Usage

use UNHPlace\FedoraIngest\FedoraCollection;

// Create a new collection with a named slug
$col = FedoraCollection('col-1');

// Set the local path for binaries
$col->setBinaryPath('data');

// CSV source
$col->ingestCsv('csv/metadata.csv');

// FGDC XML source
$col->ingestFgdcXml('xml/*.xml');

// Print the URI of the created collection
echo $col->getUri();

// Print the number of child objects
echo count( $col->getChildren());

Credits

Acknowledgements

This work was supported by the Institute of Museum and Library Services.

License

This library is released under the GPLv3 License. Please see the License File for more information.