Class: RDF::JSON::Format

Inherits:
Format show all
Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-json-7d579de01769/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, uri, uris, writer, writer_symbols, writer_types

Class Method Details

.to_symObject

Override normal symbol generation



27
28
29
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/rdf-json-7d579de01769/lib/rdf/json/format.rb', line 27

def self.to_sym
  :rj
end