unhplace / fedora-ingest

自动将数字收藏导入Fedora Commons 4。

0.2 2018-10-30 15:26 UTC

This package is auto-updated.

Last update: 2024-09-29 05:28:00 UTC


README

此PHP库自动将数字收藏的元数据和二进制文件导入Fedora Commons 4实例。已知与Fedora 4.7.4兼容。

对象之间创建的关系符合波特兰通用数据模型

所有代码都符合PSR-2(编码风格)和PSR-4(自动加载)标准。

安装

通过Composer

$ composer require unhplace/fedora-ingest

用法

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());

致谢

感谢

本作品得到博物馆与图书馆服务研究所的支持。

许可证

此库采用GPLv3许可证发布。有关更多信息,请参阅许可证文件