module RDF::Raptor::NTriples
N-Triples support.
@example Requiring the ‘RDF::Raptor` module
require 'rdf/raptor'
@example 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
@example Serializing RDF
statements into an N-Triples file
RDF::Writer.open("output.nt") do |writer| graph.each_statement do |statement| writer << statement end end