diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-08-05 12:56:46 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-08-05 12:56:46 +0200 |
commit | dd409f9b87f795b2abc3617b992abad7e265d619 (patch) | |
tree | 7f6bc4813a9f1fb8f9050610a205b422c1e49007 /application.rb | |
parent | 475d7cf042569125c46f08a4fa7333ccfaad739f (diff) | |
parent | 2ab4aba8afc528ac1454b84179cebf14c50c9466 (diff) |
Merge commit 'mguetlein/test' into development
Diffstat (limited to 'application.rb')
-rwxr-xr-x | application.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/application.rb b/application.rb index e221b76..31d7e4f 100755 --- a/application.rb +++ b/application.rb @@ -15,12 +15,13 @@ class Dataset data = YAML.load(yaml) owl = OpenTox::Owl.create 'Dataset', uri owl.set "title", data.title - if data.data - data.data.each do |compound,features| - owl.add_data_entries compound,features - end - end - owl.rdf + owl.set "creator", data.creator + if data.compounds + data.compounds.each do |compound| + owl.add_data_entries compound,data.data[compound] + end + end + owl.rdf end end |