Module: RDF::Raptor::RDFXML

Defined in:
lib/rdf/raptor/rdfxml.rb

Overview

RDF/XML support.

Examples:

Requiring the RDF::Raptor module

require 'rdf/raptor'

Parsing RDF statements from an RDF/XML file

RDF::Reader.open("input.rdf") do |reader|
  reader.each_statement do |statement|
    puts statement.inspect
  end
end

Serializing RDF statements into an RDF/XML file

RDF::Writer.open("output.rdf") do |writer|
  graph.each_statement do |statement|
    writer << statement
  end
end

See Also:

Defined Under Namespace

Classes: Format, Reader, Writer