From 8ea6bb8b5bc1cac17c3bc300583727794fb156a9 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 2 Jul 2013 19:18:07 +0200 Subject: algorithm service call fixed --- application.rb | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3