Class: RDF::JSON::Format

Inherits:
Format
  • Object
show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/rdf-json-3ea668ef8905/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

Class Method Details

.to_symObject

Override normal symbol generation



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

def self.to_sym
  :rj
end