summaryrefslogtreecommitdiff
path: root/lazar.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-02-26 09:43:22 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-02-26 09:43:22 +0100
commit6e756ca5ec2fe363fd5e835cc907f161bf4a947a (patch)
tree6fd38e3d4e056d18652600a4ea26e75308c83500 /lazar.rb
parent5aed9020c096b615975f22113130272acf8371eb (diff)
parent987b7ccd630ce527d472808b1cbeccb96b7917d4 (diff)
Merge remote branch 'helma/test' into test
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 b649d3c..056aa4f 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -1,4 +1,5 @@
get '/lazar/?' do
+ response['Content-Type'] = 'application/rdf+xml'
OpenTox::Algorithm::Lazar.new.rdf
end
@@ -77,7 +78,6 @@ post '/lazar/?' do # create a model
end
end
- # TODO: add tsk to yaml
yaml = {
:activity_dataset => params[:dataset_uri],
:feature_dataset => feature_dataset_uri.to_s,
@@ -91,7 +91,6 @@ post '/lazar/?' do # create a model
LOGGER.debug yaml
model_uri = OpenTox::Model::Lazar.create(yaml)
- #model.yaml = yaml
LOGGER.info model_uri + " created #{Time.now}"
task.completed(model_uri)
@@ -99,6 +98,7 @@ post '/lazar/?' do # create a model
LOGGER.debug "Lazar task PID: " + pid.to_s
task.pid = pid
#status 303
+ response['Content-Type'] = 'text/uri-list'
task.uri
#model.uri