diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-20 19:22:39 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-20 19:22:39 +0100 |
commit | 84dc8e5291b25f5f991dfb75f64a7c772444bda2 (patch) | |
tree | 5aa135502c9553289801d5e66605d46682c11812 | |
parent | fbdb435a1375513c9bfee4f208d7a175a524c8fe (diff) |
.owl dataset file endings
-rw-r--r-- | application.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/application.rb b/application.rb index 176d965..8e82817 100644 --- a/application.rb +++ b/application.rb @@ -39,11 +39,6 @@ post '/?' do content_type = request.content_type content_type = "application/rdf+xml" if content_type.nil? case request.content_type -=begin - when /yaml/ - File.open(File.join("datasets",id.to_s + ".owl"),"w+") { |f| f.write model.to_string } - url_for("/#{id}", :full) -=end when "application/rdf+xml" rdf = request.env["rack.input"].read dataset = OpenTox::Dataset.new @@ -92,7 +87,7 @@ delete '/:id/?' do end delete '/?' do - Dir["datasets/*rdf"].each do |f| + Dir["datasets/*owl"].each do |f| File.delete f end "All datasets deleted." |