Import publications from a BibTeX (.bib
) file to
Zenodo using Zenodo's REST
API
This tool attempts to make reasonable use of the BibTeX data to fill as many of the available Zenodo metadata fields as possible.
The data models of Zenodo and BibTeX are so different that fully-automatic import is not possible. The result needs to be checked, and almost always completed or corrected, and published by hand.
In addition to the formally-defined BibTeX fields, this script makes use of the following:
abstract
is used to fill Zenodo's Description field. (If it does not exist,notes
is used instead, and if that is not used, placeholder text is inserted, since the Zenodo API requires a Description to be specified.)keyword
containing a comma-separated list of keywordsdoi
url
will be recorded as a Related/alternate identifier to an identical resource.- If
-p
is given and if theurl
field is present and ends in.pdf
, then the tool attempts to upload the given PDF file. It will take it from the directory specified via-p
, or, if not found there, will attempt to download theurl
.
A configuration file can be specified
($HOME/.config/zenodo-import-bibtex/config.json
by default, if it
exists), which may hold the following information:
- author affiliations and ORCIDs
- options corresponding to long command-line argument names
See the example configuration file supplied.
- The script is already useful.
- BibTeX parsing and metadata provision to Zenodo are probably incomplete.
- The usage is not geared towards non-technical people.
- The script does not check for duplicates.