summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-08-11 08:48:02 +0200
committermguetlein <martin.guetlein@gmail.com>2010-08-11 08:48:02 +0200
commit26369d68b9edcf053789e2d024e0286fd517a29d (patch)
tree1da11b9beef0df56a291f836e6a6cf46bfacaa01 /lib/model.rb
parent2806bfff8a01f75351f31c5bd676b25b2fb36017 (diff)
parent44d05cec5a612f50f8a61ccd762c8176a0b8fd68 (diff)
Merge remote branch 'helma/master' into test
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 25266e3..e8f6048 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -103,6 +103,11 @@ module OpenTox
def self.find_all
RestClientWrapper.get(@@config[:services]["opentox-model"]).chomp.split("\n")
end
+
+ def self.predict(compound_uri,model_uri)
+ #RestClientWrapper.post(model_uri,{:compound_uri => compound_uri, :accept => 'application/x-yaml'})
+ `curl -X POST -d 'compound_uri=#{compound_uri}' -H 'Accept:application/x-yaml' #{model_uri}`
+ end
end
end
end