There is a newer version of the record available.

Published February 28, 2024 | Version 0.8.2

bio-guoda/preston: 0.8.2

Description

Features

  • added support for streaming metadata into Zenodo records, creating or updating when needed. Note that provided json Zenodo metadata should be presented in line-json: one json object per line.

Example Usage

cat metadata.json\
 | jq -c .\
 | preston track\
 | grep hasVersion\
|  preston zenodo\
 --endpoint https://sandbox.zenodo.org\
 --access-token [your access token]

Where `jq -c .` ensures that json is in line-json, `preston track` versions the piped json, `grep hasVersion` only grabs the tracked content, not their previous version, and `preston zenodo` attempts to update Zenodo records extracted from versioned content.

Note that if metadata.json has an alternate identifier in it that is a content id, then that content will be included as a file.

Example of "pretty printed" of line-json file, note ```hash://md5/639988a4074ded5208a575b760a5dc5e``` and ```"filename": "Abd El-Halim et al., 2005.pdf"``` .

{ "metadata": { "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "taxodros-dros5", "referenceId": "abd el-halim et al., 2005", "related_identifiers": [ { "relation": "isAlternateIdentifier", "identifier": "urn:lsid:taxodros.uzh.ch:id:abd%20el-halim%20et%20al.%2C%202005" }, { "relation": "isDerivedFrom", "identifier": "https://linker.bio/line:hash://md5/ff86b940567d278e50fa00672cf96629!/L1-L10" }, { "relation": "isDerivedFrom", "identifier": "10.5281/zenodo.10593902" }, { "relation": "isPartOf", "identifier": "https://www.taxodros.uzh.ch" }, { "relation": "isAlternateIdentifier", "identifier": "hash://md5/639988a4074ded5208a575b760a5dc5e" } ], "creators": [ { "name": "Abd El-Halim, A.S." }, { "name": "Mostafa, A.A." }, { "name": "Allam, K.A.M.a." } ], "access_right": "restricted", "publication_date": "2005", "title": "Dipterous flies species and their densities in fourteen Egyptian governorates.", "publication_type": "article", "journal_title": "Journal of the Egyptian Society of Parasitology", "journal_volume": "35", "journal_pages": "351-362", "taxodros:method": "ocr", "http://www.w3.org/ns/prov#wasDerivedFrom": "line:hash://md5/ff86b940567d278e50fa00672cf96629!/L1-L10", "references": [ "Bächli, G. (2024). TaxoDros - The Database on Taxonomy of Drosophilidae hash://md5/4fa9eeed1c8cff2490483a48c718df02 hash://sha256/e05466f33c755f11bd1c2fa30eef2388bf24ff7989931bae1426daff0200af19 [Data set]. Zenodo. https://doi.org/10.5281/zenodo.10593902" ], "filename": "Abd El-Halim et al., 2005.pdf", "upload_type": "publication", "communities": [ { "identifier": "taxodros" }, { "identifier": "biosyslit" } ], "description": "Uploaded by Plazi for TaxoDros. We do not have abstracts." } }


## Improvements
 * improved support for streaming TaxoDros records in jsonl #275 fyi @myrmoteras @slint @lnielsen

## Bugs
 n/a


## References 

Bächli, G. (2024). TaxoDros - The Database on Taxonomy of Drosophilidae hash://md5/4fa9eeed1c8cff2490483a48c718df02 hash://sha256/e05466f33c755f11bd1c2fa30eef2388bf24ff7989931bae1426daff0200af19 [Data set]. Zenodo. https://doi.org/10.5281/zenodo.10593902

Files

bio-guoda/preston-0.8.2.zip

Files (15.8 MB)

Name Size Download all
md5:da0454e0a12ea9c7a57b6e16429ee5b8
15.8 MB Preview Download

Additional details

Related works

Is supplement to
Software: https://github.com/bio-guoda/preston/tree/0.8.2 (URL)