Class: RDF::JSON::Format

Inherits:
Format
  • Object
show all
Defined in:
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



27
28
29
# File 'lib/rdf/json/format.rb', line 27

def self.to_sym
  :rj
end