Class: RDF::NTriples::Format

Inherits:
Format
  • Object
show all
Defined in:
lib/rdf/ntriples/format.rb

Overview

N-Triples format specification.

Note: Latest standards activities treat N-Triples as a subset of Turtle. This includes text/ntriples+turtle mime type and a new default encoding of utf-8.

Examples:

Obtaining an NTriples format class

RDF::Format.for(:ntriples)     #=> RDF::NTriples::Format
RDF::Format.for("etc/doap.nt")
RDF::Format.for(:file_name      => "etc/doap.nt")
RDF::Format.for(:file_extension => "nt")
RDF::Format.for(:content_type   => "text/plain")
RDF::Format.for(:content_type   => "text/ntriples+turtle")

See Also:

Method Summary

Methods inherited from Format

content_encoding, content_type, content_types, detect, each, file_extensions, for, reader, require, to_sym, writer