portfolio.panic.cc
Selections of Work by Robert Wolff

Fedora Commons Ingest Tool

Fedora Commons is an open source repository for digital collections. This tool automates the ingest of digitized items and metadata into a Fedora Commons 4 instance.

All object relationships conform to the Portland Common Data Model.

All PHP code uses the PSR-2 (Coding Style) and PSR-4 (Autoloading) standards. This library was released under the GPLv3 License.

The library is installed 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 Linked Data URIf
echo $col->getUri();

CSV keys are Dublin Core metadata elements, e.g., dcterms:identifier, dcterms:title, dcterms:coverage, etc.

The project was funded by the Institute of Museum and Library Services, National Leadership Grants for Libraries Program.