Class: RDF::Raptor::NTriples::Format

Inherits:
Format
  • Object
show all
Extended by:
Format
Defined in:
lib/rdf/raptor/ntriples.rb

Overview

N-Triples format specification.

Examples:

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")

Class Method Summary collapse

Methods included from Format

detect, rapper_format

Class Method Details

.detect(sample) ⇒ Object



44
45
46
47
# 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