From 84dc8e5291b25f5f991dfb75f64a7c772444bda2 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Sun, 20 Dec 2009 19:22:39 +0100 Subject: .owl dataset file endings --- application.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'application.rb') 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." -- cgit v1.2.3