summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2012-09-26 13:33:37 +0200
committergebele <gebele@in-silico.ch>2012-09-26 13:33:37 +0200
commit87783e5f2842c32e5c7ee5d3dbdc6d86e4f19900 (patch)
tree98cfd4c0057c3c5988fc001aedfe1a496dcf8df7
parentd4e5755ec93e58cb0eede5a5d443a65f3b1c094a (diff)
removed service_uri argument for uri-list from backend
-rw-r--r--lib/4store.rb2
-rw-r--r--lib/opentox.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb
index 8715ea7..6143bbe 100644
--- a/lib/4store.rb
+++ b/lib/4store.rb
@@ -5,7 +5,7 @@ module OpenTox
@@accept_formats = [ "application/rdf+xml", "text/turtle", "text/plain", "text/uri-list", "text/html", 'application/sparql-results+xml' ]
@@content_type_formats = [ "application/rdf+xml", "text/turtle", "text/plain" ]
- def self.list service_uri, mime_type
+ def self.list mime_type
mime_type = "text/html" if mime_type.match(%r{\*/\*})
bad_request_error "'#{mime_type}' is not a supported mime type. Please specify one of #{@@accept_formats.join(", ")} in the Accept Header." unless @@accept_formats.include? mime_type
if mime_type =~ /uri-list/
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 3fb0088..3ce815b 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -70,7 +70,7 @@ module OpenTox
# Get a list of objects at the server
get "/#{SERVICE}/?" do
- FourStore.list uri("/#{SERVICE}"), @accept
+ FourStore.list @accept
end
# Create a new resource