Skip to main content

Invenio module for OAI-PMH metadata harvesting between repositories.

Project description

https://img.shields.io/travis/inveniosoftware/invenio-oaiharvester.svg https://img.shields.io/coveralls/inveniosoftware/invenio-oaiharvester.svg https://img.shields.io/github/tag/inveniosoftware/invenio-oaiharvester.svg https://img.shields.io/pypi/dm/invenio-oaiharvester.svg https://img.shields.io/github/license/inveniosoftware/invenio-oaiharvester.svg

Invenio module for OAI-PMH metadata harvesting between repositories.

This is an experimental development preview release.

Features

This module allows you to easily harvest OAI-PMH repositories, thanks to the Sickle module, and feed the output into your ingestion workflows, or simply to files. You can configure your OAI-PMH sources via a web-interface and run or schedule immediate harvesting jobs via command-line or regularly via Celery beat.

Harvesting is simple

inveniomanage oaiharvester get -u http://export.arxiv.org/oai2 -i oai:arXiv.org:1507.07286 > my_record.xml

This will harvest the repository for a specific record and print the records to stdout - which in this case will save it to a file called my_record.xml.

If you want to have your harvested records saved in a directory automatically, its easy:

inveniomanage oaiharvester get -u http://export.arxiv.org/oai2 -i oai:arXiv.org:1507.07286 -o dir

Note the output -o parameter that specifies how to output the harvested records. The three options are:

  • Sent to a workflow (E.g. -o workflow)

  • Saved files in a folder (E.g. -o dir)

  • Printed to stdout (default)

Harvesting with workflows

inveniomanage oaiharvester get -u http://export.arxiv.org/oai2 -i oai:arXiv.org:1507.07286 -o workflow

When you send an harvested record to a workflow you can process the harvested files however you’d like and then even upload it automatically into your own repository.

This module already provides some

Managing OAI-PMH sources

If you want to store configuration for an OAI repository, you can use the administration interface available via the admin panel. This is useful if you regularly need to query a server.

Here you can add information about the server URL, metadataPrefix to use etc. This information is also available when scheduling and running tasks:

inveniomanage oaiharvester get -n somerepo -i oai:example.org:1234

Here we are using the -n, –name parameter to specify which stored OAI-PMH source to query, by name.

API

If you need to schedule or run harvests via Python, you can use our API:

from invenio_oaiharvester.api import get_records
for rec in get_records(identifiers=["oai:arXiv.org:1207.7214"],
                       url="http://export.arxiv.org/oai2"):
    print rec.raw

Changes

Version 0.1.0 (release 2015-08-14)

  • Initial public release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

invenio-oaiharvester-0.1.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

invenio_oaiharvester-0.1.0-py2.py3-none-any.whl (38.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file invenio-oaiharvester-0.1.0.tar.gz.

File metadata

File hashes

Hashes for invenio-oaiharvester-0.1.0.tar.gz
Algorithm Hash digest
SHA256 402a4657eb011f30d1105549f123f3af1a99c73467d74657d56ece2442cfeda7
MD5 2255af5ad24f63d4de54e6169011995b
BLAKE2b-256 11ff610ff4056790c8546a35c9709fb2944557fed322d60d9a1458d975fddf0c

See more details on using hashes here.

Provenance

File details

Details for the file invenio_oaiharvester-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for invenio_oaiharvester-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2337c87ba197ecdfe93353dd53df6b76988e54b97e416e872f0a39d0e6ccf2ad
MD5 65bf34875e6f9c567e48b057e23c7f49
BLAKE2b-256 ef8b9a6058acf06e99871137d054cd57a8b4d448e47ad64fc22701532a7d8ae0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page