Sha256: 2e61c8df5af06e14d82200bfa57dca741a00eb66f124c46cf348867c4629b479
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
module RDF::N3 ## # RDFa format specification. # # @example Obtaining an Notation3 format class # RDF::Format.for(:n3) #=> RDF::N3::Format # RDF::Format.for("etc/foaf.n3") # RDF::Format.for(file_name: "etc/foaf.n3") # RDF::Format.for(file_extension: "n3") # RDF::Format.for(content_type: "text/n3") # # @example Obtaining serialization format MIME types # RDF::Format.content_types #=> {"text/n3")" => [RDF::N3::Format]} # # @example Obtaining serialization format file extension mappings # RDF::Format.file_extensions #=> {n3: "text/n3"} # # @see http://www.w3.org/TR/rdf-testcases/#ntriples class Format < RDF::Format content_type 'text/n3', extension: :n3, aliases: %w(text/rdf+n3;q=0.2 application/rdf+n3;q=0.2) content_encoding 'utf-8' reader { RDF::N3::Reader } writer { RDF::N3::Writer } # Symbols which may be used to lookup this format def self.symbols [:n3, :notation3] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rdf-n3-3.0.1 | lib/rdf/n3/format.rb |
rdf-n3-3.0.0 | lib/rdf/n3/format.rb |
rdf-n3-2.2.0 | lib/rdf/n3/format.rb |
rdf-n3-2.1.0 | lib/rdf/n3/format.rb |