Skip to content

VertNet/dwca-reader-clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)))

About

Clojure wrapper for the GBIF dwca-reader library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published