taxpub
Ruby 2.4.1 gem to parse TaxPub documents like those produced by Pensoft Publishers, https://pensoft.net/.
TaxPub Background: https://www.ncbi.nlm.nih.gov/books/NBK47081/
Usage
require "taxpub"
tp = TaxPub.new
tp.url = "https://zookeys.pensoft.net/article/12590/download/xml/"
tp.parse
tp.title
=> "A review of the genus Lordiphosa Basden in India, with descriptions of four new species..."
tp.doi
=> "https://doi.org/10.3897/zookeys.688.12590"
tp.references
=> [{:title=>"Developmental constraints and convergent evolution in Drosophila sex comb formation...
tp.authors
=> [{:given=>"Rajendra S.", :surname=>"Fartyal", :fullname=>"Rajendra S. Fartyal,...
tp.scientific_names({ with_ranks: true })
=> [{:genus=>"Lordiphosa"}, {:order=>"Diptera"}, {:family=>"Drosophilidae"},...
License
taxpub is released under the MIT license.
Support
Bug reports can be filed at https://github.com/dshorthouse/taxpub/issues.
Copyright
Authors: David P. Shorthouse
Copyright (c) 2017 Canadian Museum of Nature