summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index 3ec3bba..4222f3d 100644
--- a/application.rb
+++ b/application.rb
@@ -83,7 +83,7 @@ post '/?' do
LOGGER.debug "Saving dataset #{uri}."
begin
dataset.owl = d.rdf
- dataset.uri = uri
+ dataset.uri = uri
dataset.save
task.completed(uri)
rescue => e
@@ -97,6 +97,10 @@ post '/?' do
#status 303 # rest client tries to redirect
response['Content-Type'] = 'text/uri-list'
task.uri
+
+
+
+
end
delete '/:id/?' do
@@ -112,6 +116,7 @@ delete '/:id/?' do
end
delete '/?' do
+
Dataset.all.each do |d|
begin
File.delete d.file