Skip to content

Releases: bio-guoda/preston

0.7.5

19 Oct 20:37
Compare
Choose a tag to compare

Features

  • n/a

Improvements

Bugs

  • n/a

0.7.4

16 Aug 22:38
Compare
Choose a tag to compare

Features

Example 1. Tracking TaxonWorks Biological Associations records

preston track -u https://sfg.taxonworks.org 

or

preston track https://sfg.taxonworks.org/api/v1

Example 2. Streaming of TaxonWorks records into GloBI compatible json-lines

The tracked taxonworks content can be streamed into json-lines that express

preston track https://sfg.taxonworks.org/api/v1\
 | preston tw-stream

producing records such as:

{
  "http://www.w3.org/ns/prov#wasDerivedFrom": "hash://sha256/f1c123b38bdfab129d8a393b06842eddae823bf08a2c91b1100399940b582a9a",
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "application/vnd.taxonworks+json",
  "referenceId": "https://sfg.taxonworks.org/api/v1/sources/49013",
  "interactionId": "https://sfg.taxonworks.org/api/v1/biological_associations/84748",
  "taxonRootsResolved": 2,
  "referenceResolved": true,
  "referenceCitation": "@article{49013,\n  author = {Abate, T.},\n  booktitle = {Journal of Applied Entomology},\n  journal = {Journal of Applied Entomology},\n  month = {mar},\n  day = {31},\n  pages = {278-285},\n  title = {The bean fly <i>Ophiomyia phaseoli</i> Tryon (Diptera: Agromyzidae) and its parasitoids in Ethiopia.},\n  volume = {111(3)},\n  year = {1991},\n  stated_year = {1991},\n  year_suffix = {a},\n  issn = {0044-2240}\n}\n",
  "interactionTypeId": "gid://taxon-works/BiologicalRelationship/14",
  "interactionTypeName": "Primary host",
  "sourceTaxonName": "Eupelmus",
  "sourceTaxonId": "gid://taxon-works/TaxonName/456381",
  "sourceTaxonRank": "genus",
  "sourceTaxonAuthorship": "Dalman, 1820",
  "sourceTaxonPath": "Root | Animalia | Arthropoda | Insecta | Hymenoptera | Chalcidoidea | Eupelmidae | Eupelminae | Eupelmus",
  "sourceTaxonPathIds": "gid://taxon-works/TaxonName/455455 | gid://taxon-works/TaxonName/703648 | gid://taxon-works/TaxonName/703653 | gid://taxon-works/TaxonName/703658 | gid://taxon-works/TaxonName/455456 | gid://taxon-works/TaxonName/455458 | gid://taxon-works/TaxonName/455504 | gid://taxon-works/TaxonName/455506 | gid://taxon-works/TaxonName/456381",
  "sourceTaxonPathNames": "nomenclatural rank | kingdom | phylum | class | order | superfamily | family | subfamily | genus",
  "targetTaxonName": "Agromyzidae",
  "targetTaxonId": "gid://taxon-works/TaxonName/513569",
  "targetTaxonRank": "family",
  "targetTaxonAuthorship": "",
  "targetTaxonPath": "Root | Animalia | Arthropoda | Insecta | Diptera | Agromyzidae",
  "targetTaxonPathIds": "gid://taxon-works/TaxonName/455455 | gid://taxon-works/TaxonName/703648 | gid://taxon-works/TaxonName/703653 | gid://taxon-works/TaxonName/703658 | gid://taxon-works/TaxonName/513567 | gid://taxon-works/TaxonName/513569",
  "targetTaxonPathNames": "nomenclatural rank | kingdom | phylum | class | order | family"
}

Improvements

  • n/a

Bugs

  • n/a

0.7.3

26 Jul 19:57
Compare
Choose a tag to compare

Features

n/a

Improvements

  • support streaming of "enriched" github issue metadata #156

Example, tracking #156 produces, via pandoc and jq:

preston track https://github.com/bio-guoda/preston/issues/156\
 | preston gh-stream\
 | jq --raw-output '.["body"]'\
 | pandoc -s --to=plain\
 | head

resulting in a plain text representation of the example issue body text. As the github issue json contains structured markdown as "body" of issues and their comments, pandoc can transform this into many different kinds of formats, including but not limited to pdf, html, docx, markdown, etc etc.

Traditionally, academic discourse happened through journal publications,
physical books, and lectures.

Today other forums are used to exchange and develop ideas. Slack is one
of them.

Suggest to extend Preston to track slack discussions and make them
citable.

Similar to https://github.com/bio-guoda/preston/issues/137 and desire to

Bugs

  • n/a

0.7.2

25 Jul 19:43
Compare
Choose a tag to compare

Features

preston track "https://github.com/mammaldiversity/mammaldiversity.github.io/issues" 

use export GITHUB_TOKEN=[some token] in sh/bash to make preston aware of your token. Also see, https://github.com/settings/tokens?type=beta . Note that in GitHub Actions workflows, a github token is generated on the fly with 1000 request. So, you should be able to track up to about 500 issues in on workflow, assuming that not many issues are referenced in the tracked issues.

$ preston cat --remote https://ghcr.io/cboettig/content-store hash://sha256/9412325831dab22aeebdd674b6eb53ba6b7bdd04bb99a4dbb21ddff646287e37\
 | head -n5
*******************************************************************************
*** Historical CO2 Record from the Vostok Ice Core                          ***
***                                                                         ***
*** Source: J.M. Barnola                                                    ***
***         D. Raynaud                                                      ***

Improvements

  • n/a

Bugs

  • n/a

0.7.1

07 Jul 18:51
Compare
Choose a tag to compare

Features

n/a

Improvements

n/a

Bugs

0.7.0

05 Jul 21:38
Compare
Choose a tag to compare

Features

  • allow retrieval of WikiMedia Commons content via their sha1 hash (#239)

Improvements

n/a

Bugs

  • reduce logging caused by unsupported http cookies (59706a9)

0.6.5

30 Jun 02:27
Compare
Choose a tag to compare

Features

n/a

Improvements

n/a

Bugs

  • only match GenBank Flat Files with accession number 6db9464
  • take only GenBank accession numbers without white spaces, truncate otherwise 329d715
  • disable automated decompression of gzipped content by embedded httpclient #249

0.6.4

29 Jun 15:08
Compare
Choose a tag to compare

Features

preston track https://ftp.ncbi.nlm.nih.gov/genbank/gbpln1.seq.gz\
| preston gb-stream\
| head -n1\
| jq .

produces:

{
  "accession": "AB000001",
  "http://www.w3.org/2000/01/rdf-schema#seeAlso": "https://ncbi.nlm.nih.gov/nuccore/AB000001",
  "definition": "Rhizoctonia solani genes for 18S rRNA, 5.8S rRNA, 28S rRNA, partial and complete sequence, isolate: #1.",
  "organism": "Rhizoctonia solani",
  "db_xref": "taxon:456999",
  "http://www.w3.org/ns/prov#wasDerivedFrom": "line:gz:hash://sha256/510ea17a974eaf35504ca24ad57e9be708196d38189353487eb312426ed9f0b4!/L11-L58",
  "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "genbank-flatfile"
}

Improvements

Bugs

  • return expected content for alias when using preston cat [some alias] #248

0.6.3

31 May 19:24
Compare
Choose a tag to compare

0.6.2

24 Apr 16:53
Compare
Choose a tag to compare

Features

n/a

Improvements

preston cat\
 --remote https://dataone.org\
 hash://sha1/c99e906eaa98f7e7a2b19161c3340218bbb994bc\
 > photo.jpg

with photo included and attached.

photo

Bugs

n/a