diff options
author | gebele <gebele@in-silico.ch> | 2013-06-07 16:36:33 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-07 16:36:33 +0200 |
commit | 69e0385b1a80721cbbeb948ede341da647dd7f2d (patch) | |
tree | c665d2360dad65e3f36f8f6675ed62175aacf96c /lib | |
parent | b93927f080644954479590b65d097c62e49b63b8 (diff) |
use subclass to get all predicates in turtle output
Diffstat (limited to 'lib')
-rw-r--r-- | lib/opentox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb index 9d908bc..09e5e41 100644 --- a/lib/opentox.rb +++ b/lib/opentox.rb @@ -170,7 +170,7 @@ module OpenTox prefixes = {:rdf => "http://www.w3.org/1999/02/22-rdf-syntax-ns#"} ['OT', 'DC', 'XSD', 'OLO'].each{|p| prefixes[p.downcase.to_sym] = eval("RDF::#{p}.to_s") } create_rdf - RDF::Writer.for(:turtle).buffer(:prefixes => prefixes) do |writer| + RDF::Turtle::Writer.for(:turtle).buffer(:prefixes => prefixes) do |writer| writer << @rdf end end |