0.6.3 • Published 2 years ago
@larsgw/formica v0.6.3
Formica
Formica is an SDK and a collection of tools for the data in the Library of Identification Resources.
Install
Install globally:
npm install --global @larsgw/formicaRun locally:
npx --package @larsgw/formica -- ...CLI
loir-validate-catalog [./catalog.csv ./authors.csv ./places.csv ./publishers.csv]: Validate the CSV files containing metadata (schema).loir-validate-resources [./B1234.txt]: Validate the.txtfiles containing information on the taxonomic scope of keys (documentation).loir-resources-process [./resources]: Interactive tool to convert the aforementioned.txtfiles to Darwin Core archives (documentation), and link the taxa to GBIF and Catalogue of Life identifiers. Use the-uor--updateflag in a Git repo to update existing Darwin Core files while keeping the identifiers stable (in most cases).loir-resources-index [./resources]: Create indices of the Darwin Core archives.
API
const Formica = require('@larsgw/formica')
// Load catalog data
const catalog = Formica.catalog.loadData(`...`, 'catalog')