Sha256: 550208645709dadbcfe63ff2bd044783fbd8b22960c8ed3864d06171cbd933c3
Contents?: true
Size: 1.38 KB
Versions: 6
Compression:
Stored size: 1.38 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 application/rdf+n3) content_encoding 'utf-8' reader { RDF::N3::Reader } writer { RDF::N3::Writer } end # Alias for N3 format # # This allows the following: # # @example Obtaining an Notation3 format class # RDF::Format.for(:ttl) #=> RDF::N3::Notation3 # RDF::Format.for(:ttl).reader #=> RDF::N3::Reader # RDF::Format.for(:ttl).writer #=> RDF::N3::Writer class Notation3 < RDF::Format content_type 'text/n3', :extension => :n3 content_encoding 'utf-8' reader { RDF::N3::Reader } writer { RDF::N3::Writer } end end
Version data entries
6 entries across 6 versions & 1 rubygems