diff options
author | gebele <gebele@in-silico.ch> | 2013-06-10 16:59:26 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-10 16:59:26 +0200 |
commit | 0d8bc5916106cea30433aad18573cf68cd977059 (patch) | |
tree | 670ada06bdd779b031d0c909455196466c892ecc | |
parent | d8359c77fffda757f7c7fce525ad576ea97f5695 (diff) |
return unordered uri-list
-rw-r--r-- | lib/4store.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/4store.rb b/lib/4store.rb index 1377643..00414c0 100644 --- a/lib/4store.rb +++ b/lib/4store.rb @@ -8,8 +8,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}>; <#{RDF::DC.date}> ?o.} } ORDER BY ?o" - else + sparql = "SELECT DISTINCT ?g WHERE {GRAPH ?g {?s <#{RDF.type}> <#{klass}>} }" + else sparql = "CONSTRUCT {?s ?p ?o.} WHERE {?s <#{RDF.type}> <#{klass}>; ?p ?o. }" end query sparql, mime_type |