summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/4store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb
index 11c8f27..658211c 100644
--- a/lib/4store.rb
+++ b/lib/4store.rb
@@ -82,8 +82,8 @@ module OpenTox
if sparql =~ /SELECT/i
return RestClient.get(sparql_uri, :params => { :query => sparql }, :accept => mime_type).body.gsub(/<|>/,'').split("\n") if mime_type == 'application/sparql-results+xml'
list = RestClient.get(sparql_uri, :params => { :query => sparql }, :accept => "text/plain").body.gsub(/<|>/,'').split("\n")
- h = `hostname -f`.strip
- list.keep_if{|v| v =~ /#{h}\/#{SERVICE}/}
+ h = `hostname`.strip
+ list.keep_if{|v| v =~ /#{h}\./}
return list unless mime_type
case mime_type
when /json/