Sha256: b760ed1eaa1104397136f869115bdb0028896bd9ca12448bf9288d07714f9aac

Contents?: true

Size: 1.04 KB

Versions: 6

Compression:

Stored size: 1.04 KB

Contents

module RDF::RDFa
  ##
  # RDFa format specification.
  #
  # @example Obtaining an RDFa format class
  #   RDF::Format.for(:rdfa)     #=> RDF::RDFa::Format
  #   RDF::Format.for("etc/foaf.html")
  #   RDF::Format.for(:file_name      => "etc/foaf.html")
  #   RDF::Format.for(:file_extension => "html")
  #   RDF::Format.for(:content_type   => "text/html")
  #   RDF::Format.for(:content_type   => "application/xhtml+xml")
  #
  # @example Obtaining serialization format MIME types
  #   RDF::Format.content_types      #=> {"text/html" => [RDF::RDFa::Format]}
  #
  # @example Obtaining serialization format file extension mappings
  #   RDF::Format.file_extensions    #=> {:xhtml => "application/xhtml+xml"}
  #
  # @see http://www.w3.org/TR/rdf-testcases/#ntriples
  class Format < RDF::Format
    content_type     'text/html', :extension => :html
    content_type     'application/xhtml+xml', :extension => :xhtml
    content_encoding 'utf-8'

    reader { RDF::RDFa::Reader }
    XMLNS = 'http://www.w3.org/1999/xhtml'  # FIXME: This or XHV or none at all?
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rdf-rdfa-0.3.1.1 lib/rdf/rdfa/format.rb
rdf-rdfa-0.3.0 lib/rdf/rdfa/format.rb
rdf-rdfa-0.2.2 lib/rdf/rdfa/format.rb
rdf-rdfa-0.2.1 lib/rdf/rdfa/format.rb
rdf-rdfa-0.0.3 lib/rdf/rdfa/format.rb
rdf-rdfa-0.0.2 lib/rdf/rdfa/format.rb