summaryrefslogtreecommitdiff
path: root/lib/dataset.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-16 17:35:34 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-16 17:35:34 +0100
commit537aea2020a7b75d5b669642c7c3d9a715316a31 (patch)
tree49ca384c98616a62ded932c70a9231c825a3c190 /lib/dataset.rb
parent1c9b874b8db1a2ae27fd97137d7a014188531bc1 (diff)
OWL-DL export added
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