Class: JSON::LD::Format

Inherits:
RDF::Format
  • Object
show all
Defined in:
lib/json/ld/format.rb

Overview

RDFa format specification.

Examples:

Obtaining an Notation3 format class

RDF::Format.for(:json)            #=> JSON::LD::Format
RDF::Format.for(:ld)              #=> JSON::LD::Format
RDF::Format.for("etc/foaf.json")
RDF::Format.for("etc/foaf.ld")
RDF::Format.for(:file_name      => "etc/foaf.json")
RDF::Format.for(:file_name      => "etc/foaf.ld")
RDF::Format.for(:file_extension => "json")
RDF::Format.for(:file_extension => "ld")
RDF::Format.for(:content_type   => "application/json")

Obtaining serialization format MIME types

RDF::Format.content_types      #=> {"application/json" => [JSON::LD::Format]}

Obtaining serialization format file extension mappings

RDF::Format.file_extensions    #=> {:json => "application/json"}

See Also: