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
biodiversity-1.0.2 lib/biodiversity/guid/lsid.rb
biodiversity19-1.0.1 lib/biodiversity/guid/lsid.rb
biodiversity-1.0.1 lib/biodiversity/guid/lsid.rb
biodiversity-1.0.0 lib/biodiversity/guid/lsid.rb
biodiversity19-1.0.0 lib/biodiversity/guid/lsid.rb
biodiversity-0.7.3 lib/biodiversity/guid/lsid.rb
biodiversity19-0.7.3 lib/biodiversity/guid/lsid.rb
biodiversity19-0.7.2 lib/biodiversity/guid/lsid.rb
biodiversity-0.7.2 lib/biodiversity/guid/lsid.rb
biodiversity-0.7.1 lib/biodiversity/guid/lsid.rb
biodiversity19-0.7.1 lib/biodiversity/guid/lsid.rb
biodiversity-0.7.0 lib/biodiversity/guid/lsid.rb
biodiversity19-0.7.0 lib/biodiversity/guid/lsid.rb
biodiversity19-0.6.4 lib/biodiversity/guid/lsid.rb
biodiversity-0.6.4 lib/biodiversity/guid/lsid.rb
biodiversity19-0.6.3 lib/biodiversity/guid/lsid.rb
biodiversity-0.6.3 lib/biodiversity/guid/lsid.rb
biodiversity19-0.6.2 lib/biodiversity/guid/lsid.rb
biodiversity19-0.6.1 lib/biodiversity/guid/lsid.rb
biodiversity-0.6.1 lib/biodiversity/guid/lsid.rb