A command-line application and Python library for accessing DOI metadata from a CrossRef public data export via a Lightning key:value (DOI:metadata) database.
The public data export from CrossRef is a very useful way to access large amounts of DOI metadata because it avoids the need to acquire data over the web API. However, the metadata is represented in the public data export as a large number of compressed JSON files - which makes it difficult and time-consuming to access the metadata for a given DOI. This project imports the metadata into a Lighting Memory-Mapped Database (LMDB), in which the DOIs are the database keys and the associated metadata are the database values.
Warning
This database is mostly only useful for projects requiring a relatively small portion of the total metadata - creating and updating the database is likely to be prohibitively slow otherwise.
- Create a Lightning database from the CrossRef public data export, with optional filtering of DOI items based on custom Python code.
- Update the database with items from the CrossRef web API that have been added or modified since a given date.
- Read from the database in Python via a dict-like data structure.
- The Lightning database format is not very efficient with disk space for this data (see the LMDB documentation for more details).
- The creation of the database is very slow, with database creation from the full 2024 public data export taking multiple days.
- Updating the database is even slower.
Note
This project is not affiliated with, supported by, or endorsed by CrossRef.
The package can be installed using pip
:
pip install crossref-lmdb
Using the package requires the CrossRef public data export files (2024 release) to have been downloaded. See the instructions from CrossRef for obtaining these files.
See https://unimelbmdap.github.io/crossref-lmdb/ for documentation.
Issues can be raised via the issue tracker.
Please feel free to email if you find this package to be useful or have any suggestions or feedback.
- Damien Mannion:
- Email: [email protected]
- Organisation: Melbourne Data Analytics Platform, The University of Melbourne
- Title: Senior Research Data Specialist
- Website: https://www.djmannion.net
- Github profile: djmannion