Sha256: 4351a118c0a4d730a0e8d0e08e0e1659494f3259011510b48069e2248f891bd1

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 Bytes

Contents

module RDF::JSON
  ##
  # RDF/JSON format specification.
  #
  # @example Loading RDF/JSON format support
  #   require 'rdf/json'
  #
  # @example 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 http://n2.talis.com/wiki/RDF_JSON_Specification
  class Format < RDF::Format
    content_type     'application/rdf+json', :extension => :rj
    content_encoding 'utf-8'

    reader { RDF::JSON::Reader }
    writer { RDF::JSON::Writer }

    require 'json'
  end # Format
end # RDF::JSON

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rdf-json-1.1.1 lib/rdf/json/format.rb