Sha256: 52424aa0e5201898bb3af3ec0e7e9ee5384c037e86c778c3bc5db7cd555f99ee

Contents?: true

Size: 698 Bytes

Versions: 2

Compression:

Stored size: 698 Bytes

Contents

module RDF::JSON
  ##
  # RDF/JSON format specification.
  #
  # @example Obtaining an RDF/JSON format class
  #   RDF::Format.for(:json)         #=> RDF::JSON::Format
  #   RDF::Format.for("spec/data/test.json")
  #   RDF::Format.for(:file_name      => "spec/data/test.json")
  #   RDF::Format.for(:file_extension => "json")
  #   RDF::Format.for(:content_type   => "application/json")
  #
  # @see http://n2.talis.com/wiki/RDF_JSON_Specification
  class Format < RDF::Format
    content_type     'application/json', :extension => :json
    content_encoding 'utf-8'

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdf-json-0.0.2 lib/rdf/json/format.rb
rdf-json-0.0.1 lib/rdf/json/format.rb