diff options
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |