summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-06-12 19:10:50 +0200
committergebele <gebele@in-silico.ch>2013-06-12 19:10:50 +0200
commit93b90b0800f8c339eb1a495c23634921abce321f (patch)
treeb6daf1cbd2aa4855368749cd114280527b2dc565
parentc934e64879a30f640fc2b9fcaa28daacd874cd59 (diff)
changed sparql string to return subgraph subject
-rw-r--r--lib/4store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/4store.rb b/lib/4store.rb
index 24200ae..0c78580 100644
--- a/lib/4store.rb
+++ b/lib/4store.rb
@@ -8,7 +8,7 @@ module OpenTox
def self.list mime_type
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|html|sparql-results)/
- sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>} }"
+ sparql = "SELECT DISTINCT ?s WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>.} }"
else
sparql = "CONSTRUCT {?s <#{RDF.type}> <#{klass}>.} WHERE { GRAPH ?g {?s <#{RDF.type}> <#{klass}>.} }"
end