diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-09-08 15:52:15 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-09-08 15:52:15 +0200 |
commit | 5bb39ea69d1875306c640ad17f515f21edc1cda4 (patch) | |
tree | 9f77db087b1d88528124fdcbea006b50ec5169ec /lib | |
parent | ea33651026aeb6868e7c675304a08eccd7b5e695 (diff) |
initial attempts to switch to rdfxml
Diffstat (limited to 'lib')
-rw-r--r-- | lib/owl.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,3 @@ -require 'open3' require 'rdf' require 'rdf/raptor' include RDF @@ -268,10 +267,11 @@ module OpenTox #File.open("/tmp/d","w+") {|f| f.puts @triples} #`rapper -i ntriples -o rdfxml /tmp/d` #@triples - output = RDF::Writer.for(:rdfxml).buffer do |writer| - #@triples.each do |statement| - #writer << statement - #end + #output = RDF::Writer.for(:rdfxml).buffer do |writer| + RDF::Writer.for(:ntriples).buffer do |writer| + @triples.each do |statement| + writer << statement + end end #output end |