summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2012-12-17 16:49:28 +0100
committergebele <gebele@in-silico.ch>2012-12-17 16:49:28 +0100
commit55e88016d29aa40e427a904d6e9f3bb8dc39d921 (patch)
tree5e729d70a2db9cd34e9d0a6945e44400af02409d /lib
parent7dadfce0978e6e4fd7286db4f4f9ac2da392eca0 (diff)
get uri-list sorted by 4store
Diffstat (limited to 'lib')
-rw-r--r--lib/4store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb
index 5a5cd66..c9947a7 100644
--- a/lib/4store.rb
+++ b/lib/4store.rb
@@ -7,8 +7,8 @@ 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 {?s <#{RDF.type}> <#{klass}>; ?p ?o. } }"
+ if mime_type =~ /(uri-list|html)/
+ sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>; <#{RDF::DC.modified}> ?o.} } ORDER BY ?o"
else
sparql = "CONSTRUCT {?s ?p ?o.} WHERE {?s <#{RDF.type}> <#{klass}>; ?p ?o. }"
end