Module: RDF::TriX

Defined in:
lib/rdf/trix.rb,
lib/rdf/trix/format.rb,
lib/rdf/trix/reader.rb,
lib/rdf/trix/writer.rb,
lib/rdf/trix/reader/rexml.rb,
lib/rdf/trix/writer/rexml.rb,
lib/rdf/trix/reader/libxml.rb,
lib/rdf/trix/reader/nokogiri.rb,
lib/rdf/trix/writer/nokogiri.rb

Overview

RDF::TriX is a TriX extension for RDF.rb.

Examples:

Requiring the RDF::TriX module

require 'rdf/trix'

Parsing RDF statements from a TriX file

RDF::TriX::Reader.open("etc/doap.xml") do |reader|
  reader.each_statement do |statement|
    puts statement.inspect
  end
end

Serializing RDF statements into a TriX file

RDF::TriX::Writer.open("etc/test.xml") do |writer|
  reader.each_statement do |statement|
    writer << statement
  end
end

See Also:

Author:

Defined Under Namespace

Modules: VERSION Classes: Format, Reader, Writer