Sha256: e3010d8fc54239ce20f905dfcd5780c1bb142e94aa9888b49aa43507a022c51e
Contents?: true
Size: 1.01 KB
Versions: 2
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 https://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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdf-n3-3.1.1 | lib/rdf/n3/format.rb |
rdf-n3-3.1.0 | lib/rdf/n3/format.rb |