Sha256: 18cb250e62e0c16d3568f1edd3a1c9181254e8cc2bd4406162634b348f390bb6
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
module RDF::RDFXML ## # RDFa format specification. # # @example Obtaining an RDFa format class # 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::RDFa::RDFXML } writer { RDF::RDFa::RDFXML } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdf-rdfxml-0.0.1 | lib/rdf/rdfxml/format.rb |