From 514914973963270a9e040f159e20406a7cb3f123 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 7 May 2010 15:36:40 +0200 Subject: Initial changes from Martin merged --- application.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3