lib/rdf/json/format.rb in rdf-json-1.1.0 vs lib/rdf/json/format.rb in rdf-json-1.1.1

- old
+ new

@@ -4,18 +4,18 @@ # # @example Loading RDF/JSON format support # require 'rdf/json' # # @example Obtaining an RDF/JSON format class - # RDF::Format.for(:json) #=> RDF::JSON::Format - # RDF::Format.for("etc/doap.json") - # RDF::Format.for(:file_name => "etc/doap.json") - # RDF::Format.for(:file_extension => "json") - # RDF::Format.for(:content_type => "application/json") + # 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/json', :extension => :json + content_type 'application/rdf+json', :extension => :rj content_encoding 'utf-8' reader { RDF::JSON::Reader } writer { RDF::JSON::Writer }