class RDF::Raptor::NTriples::Format

N-Triples format specification.

@example Obtaining an N-Triples format class

RDF::Format.for(:ntriples)       #=> RDF::Raptor::NTriples::Format
RDF::Format.for("input.nt")
RDF::Format.for(file_name:      "input.nt")
RDF::Format.for(file_extension: "nt")
RDF::Format.for(content_type:   "text/plain")

Public Class Methods

detect(sample) click to toggle source
# File lib/rdf/raptor/ntriples.rb, line 44
def self.detect(sample)
  # Raptor's format guessing isn't fully supported
  RDF::NTriples::Format.detect(sample)
end