summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-08-06 13:34:56 +0200
committerChristoph Helma <helma@in-silico.ch>2010-08-06 13:34:56 +0200
commit031901f20b8aab63d0126121efa40cc08ddcb62c (patch)
tree8541c3db99a7b549b59aba48a57989b8ac463338
parentdd409f9b87f795b2abc3617b992abad7e265d619 (diff)
owl and csv parsing disabled
-rwxr-xr-xapplication.rb19
1 files changed, 4 insertions, 15 deletions
diff --git a/application.rb b/application.rb
index 31d7e4f..42552f1 100755
--- a/application.rb
+++ b/application.rb
@@ -125,10 +125,10 @@ post '/?' do
case request.content_type
when /yaml/
dataset.yaml = request.env["rack.input"].read
- when /csv/
- dataset.yaml = csv2yaml request.env["rack.input"].read
- when "application/rdf+xml"
- dataset.yaml = owl2yaml request.env["rack.input"].read
+ #when /csv/
+ #dataset.yaml = csv2yaml request.env["rack.input"].read
+ #when "application/rdf+xml"
+ #dataset.yaml = owl2yaml request.env["rack.input"].read
else
halt 404, "MIME type \"#{request.content_type}\" not supported."
end
@@ -158,17 +158,6 @@ delete '/:id/?' do
end
delete '/?' do
-
-=begin
- Dataset.all.each do |d|
- begin
- File.delete d.file
- rescue
- LOGGER.error "Cannot delete dataset file '#{d.file}'"
- end
- #d.destroy!
- end
-=end
Dataset.auto_migrate!
response['Content-Type'] = 'text/plain'
"All datasets deleted."