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



152
153
154
# File 'lib/rdf/nquads.rb', line 152

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



140
141
142
# File 'lib/rdf/nquads.rb', line 140

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