N-Triples support.
Examples:
Requiring the RDF::Raptor module
RDF::Raptor
require 'rdf/raptor'
Parsing RDF statements from an N-Triples file
RDF::Reader.open("input.nt") do |reader| reader.each_statement do |statement| puts statement.inspect end end
Serializing RDF statements into an N-Triples file
RDF::Writer.open("output.nt") do |writer| graph.each_statement do |statement| writer << statement end end
See Also:
Classes: Format, Reader, Writer