diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-11-24 13:13:40 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-11-24 13:13:40 +0100 |
commit | 7067bd44d5c97618ec6a968bbdfe6d6bda12a1cd (patch) | |
tree | 8d10b0b82ca124c1f2a99ec97658a89218c2b9b3 /bin | |
parent | 7c743456c42ffa85e81db6d975ebd7ed260f81f0 (diff) |
opentox-ruby-api-wrapper renamed to opentox-ruby
Diffstat (limited to 'bin')
-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} |