Skip to content

Releases: bio-guoda/preston

0.10.11

25 Jun 16:55

Choose a tag to compare

Features

n/a

Improvements

Example:

preston track https://www.gbif.org/dataset/e4d3fc77-1d94-495b-96ff-3fe8b8f7a3bd\
 | preston dwc-stream\
 | head -1\
 | jq .

yields

{
  "http://www.w3.org/ns/prov#wasDerivedFrom": "line:zip:hash://sha256/c2e545a14943beb12878b57e02f0718d3e784151b692ffdb51ebf08ffbb73dfe!/occurrence.txt!/L2",
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "http://rs.tdwg.org/dwc/terms/Occurrence",
  "http://rs.tdwg.org/dwc/text/id": "861c9d4e-d8e1-11e2-99a2-0026552be7ea",
  "http://rs.tdwg.org/dwc/terms/country": "MEXICO",
  "http://rs.tdwg.org/dwc/terms/minimumDepthInMeters": null,
  "http://rs.tdwg.org/dwc/terms/verbatimLongitude": "098 47 00 W",
  "http://rs.tdwg.org/dwc/terms/datasetName": "AMNH Hymenoptera",
  "http://rs.tdwg.org/dwc/terms/individualCount": "1",
  "http://rs.tdwg.org/dwc/terms/associatedOrganisms": null,
  "http://rs.tdwg.org/dwc/terms/stateProvince": "Tamaulipas",
  "http://rs.tdwg.org/dwc/terms/basisOfRecord": "PreservedSpecimen",
  "http://rs.tdwg.org/dwc/terms/infraspecificEpithet": null,
  "http://rs.tdwg.org/dwc/terms/occurrenceID": "861c9d4e-d8e1-11e2-99a2-0026552be7ea",
  "http://rs.tdwg.org/dwc/terms/municipality": null,
  "http://rs.tdwg.org/dwc/terms/locality": "Padilla",
  "http://rs.tdwg.org/dwc/terms/specificEpithet": "completa",
  "http://rs.tdwg.org/dwc/terms/island": null,
  "http://rs.tdwg.org/dwc/terms/family": "Apidae",
  "http://rs.tdwg.org/dwc/terms/verbatimEventDate": "5/17/1952",
  "http://rs.tdwg.org/dwc/terms/locationID": "0004be86-935b-4850-84fe-78ef6cbc2954",
  "http://rs.tdwg.org/dwc/terms/minimumElevationInMeters": null,
  "http://rs.tdwg.org/dwc/terms/phylum": "Arthropoda",
  "http://rs.tdwg.org/dwc/terms/typeStatus": null,
  "http://rs.tdwg.org/dwc/terms/class": "Insecta",
  "http://purl.org/dc/terms/license": "Attribution 4.0 International https://creativecommons.org/licenses/by/4.0/",
  "http://rs.tdwg.org/dwc/terms/preparations": "Pinned",
  "http://rs.tdwg.org/dwc/terms/county": null,
  "http://rs.tdwg.org/dwc/terms/associatedOccurrences": null,
  "http://rs.tdwg.org/dwc/terms/taxonID": "562d1f89-9d1b-4f4b-83a5-29f12f9e99f0",
  "http://rs.tdwg.org/dwc/terms/order": "Hymenoptera",
  "http://rs.tdwg.org/dwc/terms/genus": "Anthophorula",
  "http://rs.tdwg.org/dwc/terms/catalogNumber": "AMNH_BEE 00198554",
  "http://rs.tdwg.org/dwc/terms/institutionCode": "AMNH",
  "http://rs.tdwg.org/dwc/terms/kingdom": "Animalia",
  "http://rs.tdwg.org/dwc/terms/scientificName": "Anthophorula (Anthophorula) completa Cockerell, 1935",
  "http://rs.tdwg.org/dwc/terms/recordedBy": "M. A. Cazier, W. J. Gertsch & R. Schrammel",
  "http://rs.tdwg.org/dwc/terms/samplingProtocol": "Netting",
  "http://rs.tdwg.org/dwc/terms/verbatimLatitude": "24 01 00 N",
  "http://rs.tdwg.org/dwc/terms/subgenus": "Anthophorula",
  "http://rs.tdwg.org/dwc/terms/waterBody": null,
  "http://purl.org/dc/terms/rightsHolder": "American Museum of Natural History",
  "http://rs.tdwg.org/dwc/terms/sex": "Male",
  "http://rs.tdwg.org/dwc/terms/otherCatalogNumbers": null
}

Bugs

0.10.10

28 May 23:00

Choose a tag to compare

0.10.9

28 May 21:59

Choose a tag to compare

0.10.8

15 May 07:26

Choose a tag to compare

Features

n/a

Improvements

n/a

Bugs

  • fixes related to newly introduced rpm package #332 big thanks to @alexlancaster for review comments and suggestions

0.10.7

14 May 11:56

Choose a tag to compare

Features

n/a

Improvements

Example using explicit license and license mapping for Zenodo deposits -

export ZENODO_ENDPOINT=https://sandbox.zenodo.org
export ZENODO_TOKEN=[secret]

git clone https://github.com/jhpoelen/bhl-corpus-tracker
cd bhl-corpus-tracker

# generate test set up to 50 deposits
./sample.sh 50 

# generate the license map
cd target/[sample uuid]

cat zenodo-sample.json\
 | preston track

LICENSE_MAP_VERSION=$(../../ls-part-licenses.sh| preston track | grep hasVersion | tail -n1 | grep -oE "hash://sha256/[a-f0-9]{64}")

preston ls\
 | preston zenodo --explicit-license-only --license ${LICENSE_MAP_VERSION}

Bugs

n/a

0.10.6

17 Apr 19:22

Choose a tag to compare

0.10.5

15 Jan 23:52

Choose a tag to compare

Features

n/a

Improvements

  • implement workaround for un-escaped characters Zenodo file content url #317

instead of url offered by Zenodo API

https://zenodo.org/api/records/13505983/files/Thuiller%20et%20al.%20-%202006%20-%20INTERACTIONS%20BETWEEN%20ENVIRONMENT,%20SPECIES%20TRAITS,%20.]/content

the following url is constructed (note the escaped , and ]

https://zenodo.org/api/records/13505983/files/Thuiller%20et%20al.%20-%202006%20-%20INTERACTIONS%20BETWEEN%20ENVIRONMENT%2C%20SPECIES%20TRAITS%2C%20.%5D/content

Bugs

n/a

0.10.4

14 Jan 23:28

Choose a tag to compare

Features

n/a

Improvements

  • support verification of composite content IRIs (#316) such as cut:hash://md5/23048141cf6ca7176c98772905d2f3c3!/b55987-58463

  • support tracking of additional GBIF api endpoint patterns

preston track https://gbif.org/api/dataset/d6097f75-f99e-4c2a-b8a5-b0fc213ecbd0\
 | preston dwc-stream

is now supported in addition to

preston track https://api.gbif.org/v1/dataset/d6097f75-f99e-4c2a-b8a5-b0fc213ecbd0\
 | preston dwc-stream

Bugs

n/a

0.10.3

09 Jan 16:50

Choose a tag to compare

Features

n/a

Improvements

Bugs

n/a

0.10.2

09 Dec 17:43

Choose a tag to compare

Features

n/a

Improvements

  • introduce preston-stream module to decouple content specific streaming (e.g., pdf, tiff, text) from content addressed storage

Bugs

n/a