Catmandu::Store::OAI(3pm)

Catmandu::Store::OAI3pm

A catmandu store backed by oai-pmh

Usage

    # 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');

Methods

new(url => $url , metadataPrefix => $metadataPrefix , handler => $handler)

Create a new Catmandu::Store::OAI store connected to baseURL $url.

Inherited methods

This Catmandu::Store implements:

Catmandu::Store

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

Catmandu::Bag

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

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

From libcatmandu-oai-perl 0.21-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.