From 6b8e7eed61c4f8e2585062c92a57a04b02b0d00e Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 17 May 2010 12:00:32 +0200 Subject: get dataset as yaml --- lib/dataset.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/dataset.rb') diff --git a/lib/dataset.rb b/lib/dataset.rb index aea12b5..e506305 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -15,13 +15,12 @@ module OpenTox def self.find(uri, accept_header=nil) unless accept_header - if uri.match(@@config[:services]["opentox-dataset"]) || uri=~ /188.40.32.88/ + if uri.match(@@config[:services]["opentox-dataset"]) || uri=~ /188.40.32.88/ || uri =~ /in-silico.ch/ accept_header = 'text/x-yaml' else accept_header = "application/rdf+xml" end end - case accept_header when "text/x-yaml" d = YAML.load RestClientWrapper.get(uri.to_s.strip, :accept => 'text/x-yaml').to_s -- cgit v1.2.3