diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-20 19:12:40 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-20 19:12:40 +0100 |
commit | 0d91dcbdb333c89e636d2df85420c5183706036b (patch) | |
tree | 1458f3cb811a78d785fe77214d325efe719bd769 | |
parent | ca2e240e03a4e458f83281c28b529e44af81d132 (diff) |
Version bump to 0.0.0
-rw-r--r-- | VERSION | 2 | ||||
-rwxr-xr-x | bin/yaml2owl.rb | 18 |
2 files changed, 19 insertions, 1 deletions
@@ -1 +1 @@ -1.2.1 +0.0.0 diff --git a/bin/yaml2owl.rb b/bin/yaml2owl.rb new file mode 100755 index 0000000..b259ad1 --- /dev/null +++ b/bin/yaml2owl.rb @@ -0,0 +1,18 @@ +#!/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.source = 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} |