summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-06-19 16:16:22 +0200
committerChristoph Helma <helma@in-silico.ch>2013-06-19 16:16:22 +0200
commitb67ab3c220253ffb3146ad66d7ce9ccee422d0cf (patch)
treeeb00ea7a8c578947f6905737c7892e1d21a05a05
parentec62c3de8d49f2b80d22fd0e6edfffecebaf0d2d (diff)
uri list fixed
-rw-r--r--lib/4store.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/4store.rb b/lib/4store.rb
index bb8abc8..314ee65 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 = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?g ?p ?o} }"
+ sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?g <#{RDF.type}> <#{klass}>} }"
=begin
sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>; <#{RDF::DC.date}> ?o.} } ORDER BY ?o"
#sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>; <#{RDF::DC.modified}> ?o.} } ORDER BY ?o"