summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r--lib/dataset.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb
index 468af04..ab363a9 100644
--- a/lib/dataset.rb
+++ b/lib/dataset.rb
@@ -3,7 +3,6 @@ LOGGER.progname = File.expand_path(__FILE__)
module OpenTox
class Dataset
- #include Owl
attr_accessor :uri, :title, :source, :identifier, :data, :features, :compounds
@@ -14,7 +13,6 @@ module OpenTox
end
def self.find(uri)
- #LOGGER.debug "Getting data from #{uri}"
YAML.load RestClient.get(uri, :accept => 'application/x-yaml').to_s
end
@@ -23,19 +21,7 @@ module OpenTox
LOGGER.debug "Saving dataset"
@features.uniq!
@compounds.uniq!
- #task_uri = RestClient::Resource.new(@@config[:services]["opentox-dataset"], :user => @@users[:users].keys[0], :password => @@users[:users].values[0]).post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s
- uri = RestClient::Resource.new(@@config[:services]["opentox-dataset"], :user => @@users[:users].keys[0], :password => @@users[:users].values[0]).post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s
- #task = OpenTox::Task.find(task_uri)
- #LOGGER.debug "Waiting for task #{task_uri}"
- #task.wait_for_completion
- #LOGGER.debug "Dataset task #{task_uri} completed"
- #if task.failed?
- #LOGGER.error "Saving dataset failed"
- #task.failed
- #exit
- #end
- #task.resource
- uri
+ RestClient::Resource.new(@@config[:services]["opentox-dataset"], :user => @@users[:users].keys[0], :password => @@users[:users].values[0]).post(self.to_yaml, :content_type => "application/x-yaml").chomp.to_s
end
=begin