summaryrefslogtreecommitdiff
path: root/bin/yaml2owl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bin/yaml2owl.rb')
-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}