diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:18:07 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-07-02 19:18:07 +0200 |
commit | 8ea6bb8b5bc1cac17c3bc300583727794fb156a9 (patch) | |
tree | 17bbb9daa979c4d551e2160573649192451fd945 | |
parent | 79aa333837ff508ef67b445c7e3323bbfd3b2d6b (diff) |
algorithm service call fixed
-rw-r--r-- | application.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/application.rb b/application.rb index 235cc42..c15b585 100644 --- a/application.rb +++ b/application.rb @@ -1,5 +1,3 @@ -include RDF - module OpenTox class Application < Service @@ -35,8 +33,7 @@ module OpenTox end # pass parameters instead of model_uri, because model service is blocked by incoming call - # TODO: check if this can be done with redirects (unlikely) - OpenTox::Algorithm.new(File.join($algorithm[:uri],"lazar","predict"), @subjectid).run parameters + RestClientWrapper.post(File.join($algorithm[:uri],"lazar","predict"), parameters, { :content_type => "text/uri-list", :subjectid => @subjectid}) end end end |