Sha256: 400b0727e283daea209493e7fb40bb599ec5ba5be87fa0b425ee4e0112339f03
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 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 into a ruby hash parser.parse("Plantago major") #to get json representation parser.parse("Plantago").to_json #or parser.parse("Plantago") parser.all_json # to clean name up parser.parse(" Plantago major ")[:normalized] # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dimus-biodiversity-0.5.11 | README.rdoc |