Class: RDF::N3::Format

Inherits:
Format show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-n3-3a340a80c182/lib/rdf/n3/format.rb

Overview

RDFa format specification.

Examples:

Obtaining an Notation3 format class

RDF::Format.for(:n3)            #=> RDF::N3::Format
RDF::Format.for("etc/foaf.n3")
RDF::Format.for(file_name:      "etc/foaf.n3")
RDF::Format.for(file_extension: "n3")
RDF::Format.for(content_type:   "text/n3")

Obtaining serialization format MIME types

RDF::Format.content_types      #=> {"text/n3")" => [RDF::N3::Format]}

Obtaining serialization format file extension mappings

RDF::Format.file_extensions    #=> {n3: "text/n3"}

See Also:

Class Method Summary collapse

Methods inherited from Format

accept_type, accept_types, cli_commands, content_encoding, content_type, content_types, detect, each, file_extension, file_extensions, for, name, reader, reader_symbols, reader_types, require, to_sym, writer, writer_symbols, writer_types

Class Method Details

.symbolsObject

Symbols which may be used to lookup this format



27
28
29
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-n3-3a340a80c182/lib/rdf/n3/format.rb', line 27

def self.symbols
  [:n3, :notation3]
end