From 537aea2020a7b75d5b669642c7c3d9a715316a31 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 16 Mar 2010 17:35:34 +0100 Subject: OWL-DL export added --- lib/dataset.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'lib/dataset.rb') 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 -- cgit v1.2.3