Clojure wrapper for the GBIF dwca-reader library.
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dev
src/clj/dwca
test/dwca
.gitignore
README.md
pom.xml.asc
project.clj

README.md

About

This project provides a Clojure wrapper around the GBIF Darwin Core Archive Reader library. It's hosted on Clojars here, so it's easy to use with Leinigen and Maven.

Usage

In your project.clj file:

:dependencies [dwca-reader-clj "0.8.0-SNAPSHOT"]

Or in your POM file:

<dependency>
  <groupId>dwca-reader-clj</groupId>
  <artifactId>dwca-reader-clj</artifactId>
  <version>0.8.0-SNAPSHOT</version>
</dependency>

Now fire up your REPL!

$ cd ~/Dropbox/github/vertnet/dwca-reader-clj
$ lein repl

Download, unzip, and iterate through Darwin Core records in an archive:

(use `dwca.core)
(let [url "http://vertnet.nhm.ku.edu:8080/ipt/archive.do?r=ttrs_mammals"]
  (for [record (open url)]
    (field-vals record)))