Sha256: bbf50cdaf23735c3087d013752a5f9eedfafde6dea2a10e9c015155d20b094b6
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 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(: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") # # @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 # Format end # RDF::JSON
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rdf-json-1.1.0 | lib/rdf/json/format.rb |
rdf-json-1.0.0 | lib/rdf/json/format.rb |
rdf-json-0.3.0 | lib/rdf/json/format.rb |
rdf-json-0.3.0.pre | lib/rdf/json/format.rb |