An open API service indexing awesome lists of open source software.

https://github.com/sckott/gbif-backbone-sql

GBIF Darwin Core taxonomic backbone to SQLite
https://github.com/sckott/gbif-backbone-sql

Last synced: about 1 year ago
JSON representation

GBIF Darwin Core taxonomic backbone to SQLite

Awesome Lists containing this project

README

          

GBIF taxonomy as SQLite
=======================

![build-sqlite](https://github.com/ropenscilabs/gbif-backbone-sql/workflows/build-sqlite/badge.svg)

GBIF backbone taxonomy as SQLite DB

__Note:__ The backbone as sqlite is up at -
You can continue reading if you want to know the details of how it got there, and/or if you want to
run this darwin-core to sql conversion yourself.

## how we do

* download GBIF backbone taxonomy from as Darwin Core Archive
* unzip
* create sqlite DB `gbif.sqlite`
* import `taxon.txt` into sqlite DB
* zip up sqlite file
* upload `gbif.zip` to Amazon S3

All above is run once per day on [Github Actions](https://github.com/ropenscilabs/gbif-backbone-sql/actions?query=workflow%3Abuild-sqlite)

## Usage

download

```
git clone https://github.com/ropensci/gbif-backbone-sql.git
cd gbif-backbone-sql
```

bundle it

```
bundle install
```

```
rake --tasks
```

```
rake clean # clean files
rake fetch # get and unzip backbone
rake hello # say hello
rake s3 # upload database to s3
rake spine # get backbone, convert to sql, upload to amazon s3
rake sql # create sql database
rake zip # create zip file
```

`rake spine` does all the things

Or, you can do each separately with `rake fetch` then `rake sql`, then `rake zip`, then `rake s3`

### Env vars

`rake s3` requires AWS keys. If you want to upload to AWS, make sure you have env vars
with the names `AWS_S3_WRITE_ACCESS_KEY` and `AWS_S3_WRITE_SECRET_KEY`

## Backbone as sqlite

## info

* GBIF backbone taxonomy citation:

> GBIF Secretariat: GBIF Backbone Taxonomy. doi:10.15468/39omei
Accessed via http://www.gbif.org/dataset/d7dddbf4-2cf0-4f39-9b2a-bb099caae36c on 2016-08-16

* GBIF backbone taxonomy license: `CC BY 3.0`