summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-05-29 15:08:37 +0200
committerChristoph Helma <helma@in-silico.ch>2013-05-29 15:08:37 +0200
commitb3f82247d347429a30881ac7f35677f87f503976 (patch)
tree9e70fddc7c4090b18cff1b6be1e4dda8301d2ba1 /lib/opentox.rb
parent2ae4341e7e35f9ce4a059712cbb559a7544ee98e (diff)
parente904ce55da3d59744a5345f9c0b56f9c35971844 (diff)
Merge branch 'development' of github.com:opentox/opentox-server into development
Conflicts: lib/4store.rb
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 06026be..0869262 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -144,7 +144,12 @@ module OpenTox
# HEAD route for service check
# algorithm, compound and validation overwrite this
head "/#{SERVICE}/?" do
- #$logger.debug "#{SERVICE.capitalize} service is running."
+ end
+
+ # HEAD request for object in backend
+ # algorithm, dataset, compound and validation overwrite this
+ head "/#{SERVICE}/:id/?" do
+ resource_not_found_error "#{uri} not found." unless FourStore.head(@uri.split('?').first)
end
# Get a list of objects at the server or perform a SPARQL query