logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Store::OAI - A Catmandu store backed by OAI-PMH

Author

       Patrick Hochstenbach, "patrick.hochstenbach at ugent.be"

Inherited Methods

       This Catmandu::Store implements:

       Catmandu::Store

       Each Catmandu::Bag in this Catmandu::Store implements:

       Catmandu::Bag

Methods

new(url=>$url,metadataPrefix=>$metadataPrefix,handler=>$handler)
       Create a new Catmandu::Store::OAI store connected to baseURL $url.

Name

       Catmandu::Store::OAI - A Catmandu store backed by OAI-PMH

See Also

       Catmandu::Store , Catmandu::Importer::OAI

Synopsis

           # From the command line

           # Export data from OAI
           $ catmandu export OAI --url http://somewhere.org/oai to JSON > data.json

           # Export only one record
           $ catmandu export OAI --url http://somewhere.org/oai --id 1234

           # Export from a set
           $ catmandu export OAI --url http://somewhere.org/oai --bag fulltext

           # From Perl

           use Catmandu;

           my $store = Catmandu->store('OAI', url => ' http://somewhere.org/oai ');

           # All bags are iterators
           $store->bag->each(sub { ... });
           $store->bag->take(10)->each(sub { ... });

           my $rec = $store->bag->get('1234');

See Also