Module: RDF::NQuads

Includes:
NTriples
Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/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:

See Also:

Since:

  • 0.1.5



152
153
154
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/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:

Returns:

See Also:

Since:

  • 0.1.5



140
141
142
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-884e3ef78084/lib/rdf/nquads.rb', line 140

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