RDF/XML support.
Examples:
Requiring the RDF::Raptor module
RDF::Raptor
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:
Classes: Format, Reader, Writer