From 563659f4a886d0a369ec4be8e2286e7bc2592df0 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Thu, 6 May 2010 11:11:32 +0200 Subject: adjust owl --- application.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/application.rb b/application.rb index a65c881..5bcfc5c 100755 --- a/application.rb +++ b/application.rb @@ -19,20 +19,17 @@ class Dataset def to_owl data = YAML.load(yaml) owl = OpenTox::Owl.create 'Dataset', uri - ['title', 'source'].each do |method| - eval "owl.#{method} = data.#{method}" + ['title', 'creator'].each do |method| + owl.set(method, data.send(method)) end if data.data data.data.each do |compound,features| owl.add_data_entries compound,features end - end + end owl.rdf end - #def from_owl - #end - end DataMapper.auto_upgrade! -- cgit v1.2.3