Invenio module for OAI-PMH metadata harvesting between repositories.
Project description
Invenio module for OAI-PMH metadata harvesting between repositories.
Free software: GPLv2 license
Documentation: https://invenio-oaiharvester.readthedocs.org.
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.1 (released 2015-08-25)
Adds missing invenio_upgrader dependency and amends past upgrade recipes following its separation into standalone package.
Fixes imports due to separation of invenio-workflows. (#9)
Version 0.1.0 (released 2015-08-14)
Initial public release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file invenio-oaiharvester-0.1.1.tar.gz
.
File metadata
- Download URL: invenio-oaiharvester-0.1.1.tar.gz
- Upload date:
- Size: 43.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 405d8a777c498294e83f0fc3fad43b1ca2b23ae81d64b2096b5b02cde4b5e426 |
|
MD5 | e2211df7ed8aa580de8dba41a62e2e69 |
|
BLAKE2b-256 | ebaac58f68afe8a138fd2d3da4e78f958bf4f793f5342279fa427c2ef62d8460 |