diff options
author | root <root@services.in-silico.ch> | 2012-06-28 14:47:27 +0400 |
---|---|---|
committer | root <root@services.in-silico.ch> | 2012-06-28 14:47:27 +0400 |
commit | d2daaa4981ccd1c687f9a7bd635b7c1369ecc839 (patch) | |
tree | 642a2d9daaa55657ab45b8e2a3f22faed6a0d73f | |
parent | 81b72e1469ceec8c88e3ca621706dda5ded49f89 (diff) |
return task uri for not completed tasks and text/uri-list
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 56c297f..a8333b3 100644 --- a/application.rb +++ b/application.rb @@ -25,7 +25,7 @@ module OpenTox uri = uri("/task/#{params[:id]}") code = status_code(uri) if request.env['HTTP_ACCEPT'] == "text/uri-list" # return resultURI - halt code, "" unless code == 200 + halt code, uri unless code == 200 sparql = "SELECT ?o WHERE { GRAPH <#{uri}> { <#{uri}> <#{RDF::OT.resultURI}> ?o. } }" result_uri = Backend::FourStore.query(sparql,nil).last.gsub(/"|'/,'').gsub(/\^\^.*$/,'') halt code, result_uri |