module RDF::NQuads

**‘RDF::NQuads`** provides support for the N-Quads serialization format.

This has not yet been implemented as of RDF.rb 0.3.x.

Public Class Methods

serialize(value) click to toggle source

Returns the serialized N-Triples representation of the given RDF value.

@param [RDF::Value] value @return [String] @see RDF::NTriples::Writer.serialize @since 0.1.5

# File lib/rdf/nquads.rb, line 151
def self.serialize(value)
  Writer.serialize(value)
end
unserialize(data) click to toggle source

Reconstructs an RDF value from its serialized N-Triples representation.

@param [String] data @return [RDF::Value] @see RDF::NTriples::Reader.unserialize @since 0.1.5

# File lib/rdf/nquads.rb, line 139
def self.unserialize(data)
  Reader.unserialize(data)
end