diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-05-06 11:11:32 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-05-06 11:11:32 +0200 |
commit | 563659f4a886d0a369ec4be8e2286e7bc2592df0 (patch) | |
tree | a34b4fc99e80860ad9d80f42d554a57abb2ee939 | |
parent | 9a9ff4fafda323b7ba26459e5634f711782ae07f (diff) |
adjust owl
-rwxr-xr-x | application.rb | 9 |
1 files 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! |