Class: RDF::JSON::Format

Inherits:
Format show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-json-1af65b89b732/lib/rdf/json/format.rb

Overview

RDF/JSON format specification.

Examples:

Loading RDF/JSON format support

require 'rdf/json'

Obtaining an RDF/JSON format class

RDF::Format.for(:rj)         #=> RDF::JSON::Format
RDF::Format.for("etc/doap.rj")
RDF::Format.for(:file_name      => "etc/doap.rj")
RDF::Format.for(:file_extension => "rj")
RDF::Format.for(:content_type   => "application/rdf+json")

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, symbols, writer, writer_symbols, writer_types

Class Method Details

.to_symObject

Override normal symbol generation



25
26
27
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/rdf-json-1af65b89b732/lib/rdf/json/format.rb', line 25

def self.to_sym
  :rj
end