diff options
author | gebele <gebele@in-silico.ch> | 2012-06-22 16:13:37 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2012-06-22 16:13:37 +0200 |
commit | 77b7630c44a1d04fc1bd410ec1dba3d65d1e66eb (patch) | |
tree | 301b469abbfe86a65b6e41f33099ade88bf75045 | |
parent | ce101444ba0f4608ee3c2eb87e1447717a5f4096 (diff) |
removed uri-list filter
-rw-r--r-- | lib/4store.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb index 658211c..5e9cc31 100644 --- a/lib/4store.rb +++ b/lib/4store.rb @@ -82,8 +82,7 @@ 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`.strip - list.keep_if{|v| v =~ /#{h}\./} + list.shift return list unless mime_type case mime_type when /json/ |