diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-11-19 16:53:21 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-11-19 16:53:21 +0100 |
commit | f8552611c2dbe25d76474f51e4e895bf9c2b5c5e (patch) | |
tree | da145cd1d69adc4cdb8d299f0cea2e0810b88eaf /lib/opentox.rb | |
parent | 91c95f8dc8f60a8f0029b970ef881eecee28401b (diff) |
lazar predictions for toxcreate working
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 3b7fa65..90683e5 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -1,7 +1,7 @@ module OpenTox attr_reader :uri - attr_accessor :metadata, :parameters + attr_accessor :metadata # Initialize OpenTox object with optional uri # @param [optional, String] URI @@ -30,11 +30,9 @@ module OpenTox @metadata end - # Load parameters from URI - #def load_parameters - #@parameters = Parser::Owl::Generic.new(@uri).parameters - #@parameters - #end + def add_metadata(metadata) + metadata.each { |k,v| @metadata[k] = v } + end # Get OWL-DL representation in RDF/XML format # @return [application/rdf+xml] RDF/XML representation |