Sha256: 90c2870a5ea8a5ad616f995f5dee77f77de6a0d8157b221608642d7ad98c9422
Contents?: true
Size: 1.22 KB
Versions: 8
Compression:
Stored size: 1.22 KB
Contents
module RDF::N3 ## # RDFa format specification. # # @example Obtaining an RDFa format class # RDF::Format.for(:n3) #=> RDF::N3::Format # RDF::Format.for("etc/foaf.ttl") # RDF::Format.for("etc/foaf.n3") # RDF::Format.for(:file_name => "etc/foaf.ttl") # RDF::Format.for(:file_name => "etc/foaf.n3") # RDF::Format.for(:file_extension => "ttl") # RDF::Format.for(:file_extension => "n3") # RDF::Format.for(:content_type => "text/turtle") # RDF::Format.for(:content_type => "text/n3") # # @example Obtaining serialization format MIME types # RDF::Format.content_types #=> {"text/turtle" => [RDF::N3::Format]} # RDF::Format.content_types #=> {"text/n3")" => [RDF::N3::Format]} # # @example Obtaining serialization format file extension mappings # RDF::Format.file_extensions #=> {:ttl => "text/turtle"} # RDF::Format.file_extensions #=> {:n3 => "text/n3"} # # @see http://www.w3.org/TR/rdf-testcases/#ntriples class Format < RDF::Format content_type 'text/turtle', :extension => :ttl content_type 'text/n3', :extension => :n3 content_encoding 'utf-8' reader { RDF::N3::Reader } writer { RDF::N3::Writer } end end
Version data entries
8 entries across 8 versions & 1 rubygems