Sha256: ffea73887749d6a21bbb7e99cdec8447213d28cebdcac955ad882182829060d3

Contents?: true

Size: 291 Bytes

Versions: 87

Compression:

Stored size: 291 Bytes

Contents

require 'open-uri'

class LsidResolver
  def self.resolve(lsid)
    http_get_rdf(lsid)
  end
  
protected
  def self.http_get_rdf(lsid)
    rdf = ''
    open(LSID_RESOLVER_URL + lsid) do |f|
      f.each do |line|
        rdf += line if !line.strip.blank?
      end
    end
    rdf
  end
end

Version data entries

87 entries across 87 versions & 3 rubygems

Version Path
dimus-biodiversity-0.0.10 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.11 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.12 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.13 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.15 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.16 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.18 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.0.9 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.1 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.10 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.11 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.13 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.14 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.2 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.3 lib/biodiversity/guid/lsid.rb
dimus-biodiversity-0.5.4 lib/biodiversity/guid/lsid.rb
biodiversity19-3.1.2 lib/biodiversity/guid/lsid.rb
biodiversity-3.1.2 lib/biodiversity/guid/lsid.rb
biodiversity19-3.1.1 lib/biodiversity/guid/lsid.rb
biodiversity-3.1.1 lib/biodiversity/guid/lsid.rb