diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-05-07 15:36:40 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-05-07 15:36:40 +0200 |
commit | 514914973963270a9e040f159e20406a7cb3f123 (patch) | |
tree | 3bfd71d9449592438578c4fb1bf8e4412e847289 | |
parent | e479490de8ea8eb5e6ce220a03863545a44eaf44 (diff) |
Initial changes from Martin merged
-rw-r--r-- | application.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 32601f2..5114f23 100644 --- a/application.rb +++ b/application.rb @@ -19,9 +19,14 @@ class Dataset def to_owl data = YAML.load(yaml) owl = OpenTox::Owl.create 'Dataset', uri + owl.set "title", data.title + #owl.set "source", data.source +=begin ['title', 'source'].each do |method| - eval "owl.#{method} = data.#{method}" + #eval "owl.#{method} = data.#{method}" + owl.set(method, "data.#{method}" end +=end if data.data data.data.each do |compound,features| owl.add_data_entries compound,features |