Tim Brody > HTTP-OAI-4.03 > oai_pmh.pl

Download:
HTTP-OAI-4.03.tar.gz

Annotate this POD

CPAN RT

New  7
Open  1
View/Report Bugs
Source  

NAME ^

oai_pmh.pl - pipe OAI-PMH to the command-line

SYNOPSIS ^

        oai_pmh.pl <options> [baseURL]

OPTIONS ^

--help
--man
--verbose

Be more verbose (repeatable).

--force

Force a non-conformant OAI request.

--from <ISO datetime>
--identifier <identifier>

OAI identifier to GetRecord or ListMetadataFormats.

--metadataPrefix <mdp>

Specify format of metadata to retrieve.

-X/--request <command>

Verb to request, defaults to ListRecords.

--set <oai set>

Request only those records in a set.

--until <ISO datetime>

DESCRIPTION ^

Retrieve data from OAI-PMH endpoints. The output format is:

        <headers>

        <content>
        <FORMFEED>

Where <headers> are in HTTP header format. Content will be the raw XML as exposed by the repository. Each record is separated by a FORMFEED character.

For example:

        oai_pmh.pl -X GetRecord --metadataPrefix oai_dc \
                --identifier oai:eprints.soton.ac.uk:20 http://eprints.soton.ac.uk/cgi/oai2
syntax highlighting: