Skip to content
/ dippi Public

Clojure library for calling the NHM Data Portal API

Notifications You must be signed in to change notification settings

seb231/dippi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dipPI

Styracosaurus

Styracosaurus albertensis Photo Copyright © 2017 seb231 Drawing Copyright © 2017 James Robbins

About

A Clojure library for calling the Natural History Museum's Data Portal API:

http://data.nhm.ac.uk/about/download

DOI: 10.5519

Usage

First download or clone the repository.

From the command line

From the dipPI root directory call the program like this:

./dippi.sh -d "specimens" -q "Archaeopteryx" -f "catalogNumber" -n "On"
-d database
-q query
-f field
-n record count

Options -f and -n are optional.

In the REPL

Start a REPL and run either query-nhm-api or filter-nhm-api with a database name and the following:

A "Query" search expects a name of a database and a query string i.e "Archaeopteryx".

A "Filter" search expects a name of a database and a filter field and search string i.e "catalogNumber" and "PV P 51007"

Databases

Available databases include: collection-specimens, artefacts, former-bp, index-lot and interactions-bank.

More information about the databases can be found here: http://data.nhm.ac.uk/dataset

TODO

Interrogate some collection results to see what further "get" functions would be beneficial.

License

Copyright © 2017 seb231

About

Clojure library for calling the NHM Data Portal API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published