lib/rdf/json/format.rb in rdf-json-3.2.0 vs lib/rdf/json/format.rb in rdf-json-3.3.0
- old
+ new
@@ -12,10 +12,12 @@
# 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_type 'application/rdf+json',
+ extension: :rj,
+ uri: 'http://www.w3.org/ns/formats/RDF_JSON'
content_encoding 'utf-8'
reader { RDF::JSON::Reader }
writer { RDF::JSON::Writer }