diff options
-rw-r--r-- | application.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application.rb b/application.rb index bd0cea6..c83ba7f 100644 --- a/application.rb +++ b/application.rb @@ -108,6 +108,8 @@ post '/?' do halt 404, "MIME type \"#{request.content_type}\" not supported." end begin + #dataset.owl = d.rdf + #dataset.uri = uri dataset.save rescue => e LOGGER.error e.message @@ -131,6 +133,7 @@ delete '/:id/?' do end delete '/?' do + Dataset.all.each do |d| begin File.delete d.file |