From 7a3e5d1a2fcd8fb1395b631a52e1370f25fffb4d Mon Sep 17 00:00:00 2001 From: rautenberg Date: Tue, 30 Apr 2013 18:48:31 +0200 Subject: remove params in url for 4store call --- lib/opentox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/opentox.rb b/lib/opentox.rb index c7072d3..8400b6a 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -130,7 +130,7 @@ module OpenTox # Get resource representation or perform a SPARQL query get "/#{SERVICE}/:id/?" do - params[:query] ? FourStore.query(params[:query], @accept) : FourStore.get(@uri, @accept) + params[:query] ? FourStore.query(params[:query], @accept) : FourStore.get(@uri.split('?').first, @accept) end # Modify (i.e. add rdf statments to) a resource -- cgit v1.2.3