Sha256: 95399bed00366a0db4db003e31b0e7c974b6142044283eb5b3201511f8769e87

Contents?: true

Size: 1.12 KB

Versions: 9

Compression:

Stored size: 1.12 KB

Contents

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

    reader { RDF::RDFXML::Reader }
    writer { RDF::RDFXML::Writer }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rdf-rdfxml-0.3.2 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.3.1 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.3.0 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.2.3 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.2.2.1 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.2.2 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.2.1 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.2.0 lib/rdf/rdfxml/format.rb
rdf-rdfxml-0.0.3 lib/rdf/rdfxml/format.rb