Module: RDF::NQuads

Includes:
NTriples
Defined in:
lib/rdf/nquads.rb

Overview

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

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

Defined Under Namespace

Classes: Format, Reader, Writer

Class Method Summary collapse

Methods included from NTriples

escape, unescape

Class Method Details

.serialize(value) ⇒ String

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

Parameters:

Returns:

  • (String)

See Also:

Since:

  • 0.1.5



149
150
151
# File 'lib/rdf/nquads.rb', line 149

def self.serialize(value)
  Writer.serialize(value)
end

.unserialize(data) ⇒ RDF::Value

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

Parameters:

  • data (String)

Returns:

See Also:

Since:

  • 0.1.5



137
138
139
# File 'lib/rdf/nquads.rb', line 137

def self.unserialize(data)
  Reader.unserialize(data)
end