diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-03-09 12:31:05 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-03-09 12:31:05 +0100 |
commit | c651fe10fe5e09dbfdf2b3abd420fc2fc0051937 (patch) | |
tree | 30029f9c3246de739aaf7b66a490c01b7b147f04 /bin/yaml2owl.rb | |
parent | 5233ab341757557c536ed8cc8eefd79a936b4295 (diff) | |
parent | 66f2ee967317954568562510111b0d832881547d (diff) |
Merge branch 'release/v1.0.0'v1.0.0
Conflicts:
lib/dataset.rb
Diffstat (limited to 'bin/yaml2owl.rb')
-rwxr-xr-x | bin/yaml2owl.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/yaml2owl.rb b/bin/yaml2owl.rb deleted file mode 100755 index 1002912..0000000 --- a/bin/yaml2owl.rb +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env ruby -require 'rubygems' -require 'opentox-ruby-api-wrapper' - -input = YAML.load_file(ARGV[0]) -dataset = OpenTox::Dataset.new -dataset.title = input[:title] -dataset.creator = input[:source] -input[:data].each do |c,f| - f.each do |k,v| - v.each do |value| - dataset.add c,k,value - end - end -end -outfile = File.expand_path(File.join(File.dirname(__FILE__),ARGV[0].sub(/yaml/,'owl'))) -dataset.uri = outfile -File.open(outfile,'w+'){|f| f.puts dataset.rdf} |