diff options
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index b7b363c..762c1f7 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -165,6 +165,14 @@ module OpenTox end end + # internal route not in API + get "/#{SERVICE}/last/ordered/?" do + FourStore.query("SELECT DISTINCT ?s WHERE + {GRAPH ?g + {?s <#{RDF.type}> <#{RDF::OT}#{SERVICE.capitalize}>; <#{RDF::DC.date}> ?o. } + } ORDER BY ?o ", @accept) + end + # Create a new resource post "/#{SERVICE}/?" do @uri = uri("/#{SERVICE}/#{SecureRandom.uuid}") |