summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-03-19 16:24:42 +0100
committerChristoph Helma <helma@in-silico.de>2010-03-19 16:24:42 +0100
commit46ab0ef6fd96abe208906a6552d9324bcb88bcf1 (patch)
tree696883b6e4f1106aa5104965ba9827e42f346ec6 /lazar.rb
parent432270589d8e6b7b71b3d0f767fe07a7de33d1fc (diff)
owl parsing implemented
Diffstat (limited to 'lazar.rb')
-rw-r--r--lazar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lazar.rb b/lazar.rb
index 8d3db34..60d0b5a 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -2,7 +2,7 @@ get '/lazar/?' do
if File.exists?('public/lazar.owl')
rdf = File.read('public/lazar.owl')
else
- owl = OpenTox::Owl.new 'Algorithm', url_for('/lazar',:full)
+ owl = OpenTox::Owl.create 'Algorithm', url_for('/lazar',:full)
owl.title = "lazar"
owl.source = "http://github.com/helma/opentox-algorithm"
owl.parameters = {
@@ -59,7 +59,7 @@ post '/lazar/?' do # create a model
training_features = OpenTox::Dataset.find(feature_dataset_uri)
halt 404, "Dataset #{feature_dataset_uri} not found." if training_features.nil?
lazar = OpenTox::Model::Lazar.new
- lazar.dependent_variable = params[:feature_uri]
+ lazar.dependent_variables = params[:feature_uri]
lazar.activity_dataset_uri = dataset_uri
lazar.feature_dataset_uri = feature_dataset_uri
halt 404, "More than one descriptor type" unless training_features.features.size == 1