diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-16 17:35:34 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-16 17:35:34 +0100 |
commit | cdd37344f4e8c5280aa10a72a9a281c7ccf172cd (patch) | |
tree | 82b40e5db7bf4d3030666a78b98524396a02f3e0 /lazar.rb | |
parent | 2d9cbbca43fce85771207220165ec905e2b7ff2b (diff) |
OWL-DL export added
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -1,6 +1,17 @@ get '/lazar/?' do + owl = OpenTox::Owl.new 'Algorithm', url_for('/lazar',:full) + owl.title = "lazar" + owl.source = "http://github.com/helma/opentox-algorithm" + owl.parameters = { + "Dataset URI" => + { :scope => "mandatory", :value => "dataset_uri" }, + "Feature URI for dependent variable" => + { :scope => "mandatory", :value => "feature_uri" }, + "Feature generation URI" => + { :scope => "mandatory", :value => "feature_generation_uri" } + } response['Content-Type'] = 'application/rdf+xml' - OpenTox::Algorithm::Lazar.new.rdf + owl.rdf end post '/lazar/?' do # create a model @@ -37,7 +48,7 @@ post '/lazar/?' do # create a model break end LOGGER.debug "Fminer finished #{Time.now}" - feature_dataset_uri = fminer_task.resource + feature_dataset_uri = fminer_task.resource.to_s 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 |