diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-06-14 11:28:01 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-06-14 11:28:01 +0000 |
commit | 5e8461b65787ac2f4dbb321dd258cee90b4a91ab (patch) | |
tree | 1206a0d7164e5cfd9e80d8b2f26247028ca95ffa /application.rb | |
parent | 4f82f43d02b40809f6bff5763c694a9816f546d4 (diff) |
Initial version of 4store based dataset service
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/application.rb b/application.rb index bda0ff9..b3e3843 100644 --- a/application.rb +++ b/application.rb @@ -1,3 +1,31 @@ +module OpenTox + class Application < Service + + # Get metadata of the dataset + # @return [application/rdf+xml] Metadata OWL-DL + get '/:id/metadata' do + end + + # Get a dataset feature + # @param [Header] Accept one of `application/rdf+xml or application-x-yaml` (default application/rdf+xml) + # @return [application/rdf+xml,application/x-yaml] Feature metadata + get %r{/(\d+)/feature/(.*)$} do |id,feature| + end + + # Get a list of all features + # @param [Header] Accept one of `application/rdf+xml, application-x-yaml, text/uri-list` (default application/rdf+xml) + # @return [application/rdf+xml, application-x-yaml, text/uri-list] Feature list + get '/:id/features' do + end + + # Get a list of all compounds + # @return [text/uri-list] Feature list + get '/:id/compounds' do + end + end +end + +=begin require 'rubygems' gem "opentox-ruby", "~> 3" require 'opentox-ruby' @@ -410,3 +438,4 @@ delete '/?' do response['Content-Type'] = 'text/plain' "All datasets deleted." end +=end |