Sha256: 1a4f1641bc259bc75a47f2aed0fa64cfc6b0674d8f3cca2e3c6d7a7268a3648e

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

= Biodiversity

Parses species scientific name and breaks it into elements.

== Installation

To install gem you need RubyGems >= 1.2.0

  $ gem sources -a http://gems.github.com (you only have to do this once)
  $ sudo gem install dimus-biodiversity

== Example usage

You can parse file with species names from command line. File should contain one scientific name per line

  nnparser file_with_names
  
You can use it as a library

  require 'biodiversity'
  
  parser = ScientificNameParser.new
  
  # to parse a scientific name 
  parser.parse("Plantago major")
  
  # to clean name up
  parser.parse("             Plantago       major    ").value
  
  # to get only cleaned up latin part of the name
  parser.parse("Pseudocercospora dendrobii (H.C. Burnett) U. Braun & Crous 2003").canonical
  
  # to get detailed information about elements of the name
  parser.parse("Pseudocercospora dendrobii (H.C. Burnett 1883) U. Braun & Crous 2003").details
  
  # to resolve lsid and get back RDF file
  LsidResolver.resolve("urn:lsid:ubio.org:classificationbank:2232671")

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dimus-biodiversity-0.0.10 README.rdoc
dimus-biodiversity-0.0.11 README.rdoc
dimus-biodiversity-0.0.12 README.rdoc
dimus-biodiversity-0.0.13 README.rdoc
dimus-biodiversity-0.0.15 README.rdoc
dimus-biodiversity-0.0.16 README.rdoc
dimus-biodiversity-0.0.18 README.rdoc
dimus-biodiversity-0.0.8 README.rdoc
dimus-biodiversity-0.0.9 README.rdoc
dimus-biodiversity-0.5.1 README.rdoc
dimus-biodiversity-0.5.10 README.rdoc
dimus-biodiversity-0.5.2 README.rdoc
dimus-biodiversity-0.5.3 README.rdoc
dimus-biodiversity-0.5.4 README.rdoc