summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-11-24 13:13:40 +0100
committerChristoph Helma <helma@in-silico.ch>2010-11-24 13:13:40 +0100
commit7067bd44d5c97618ec6a968bbdfe6d6bda12a1cd (patch)
tree8d10b0b82ca124c1f2a99ec97658a89218c2b9b3 /bin
parent7c743456c42ffa85e81db6d975ebd7ed260f81f0 (diff)
opentox-ruby-api-wrapper renamed to opentox-ruby
Diffstat (limited to 'bin')
-rwxr-xr-xbin/yaml2owl.rb18
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}