From 1c353553c3213138cfd98256e93363980367794f Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 13 May 2013 10:37:02 +0200 Subject: cut subjectid from uri --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index f1ae2d1..e5305fd 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -114,7 +114,7 @@ module OpenTox # 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) + 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 -- cgit v1.2.3