summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2013-02-04 14:07:49 +0100
committermguetlein <martin.guetlein@gmail.com>2013-02-04 14:07:49 +0100
commitfcc5fbca80bfd9fa67e4b83d1e8548457c4c3d10 (patch)
tree2d5c73b90ae6af4051b83b05273179d1ffa36db4 /lib
parent54b833546cea44e03eca3183ad4a37b9f30651a1 (diff)
parent2d094d61663c36004915b5e124ba2001364392ac (diff)
Merge branch 'development' of github.com:opentox/opentox-client into development
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