Datahub::Factory::Importer - Namespace for importer packages
use Datahub::Factory; use Data::Dumper qw(Dumper); my $importer_options = { endpoint => 'https://my.oai.org/oai' }; my $importer = Datahub::Factory->importer('OAI')->new($importer_options); $importer->importer->each({ my $item = shift; print Dumper($item); });
A Datahub::Factory::Importer is a package that is used as a role for packages that import records. It enforces a generic reusable interface so different packages can be loaded and executed programmatically.
Pieter De Praetere <pieter@packed.be>
Matthias Vandermaesen <matthias.vandermaesen@vlaamsekunstcollectie.be>
Copyright 2017 - PACKED vzw, Vlaamse Kunstcollectie vzw
This library is free software; you can redistribute it and/or modify it under the terms of the GPLv3.
To install Datahub::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Datahub::Factory
CPAN shell
perl -MCPAN -e shell install Datahub::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.