Skip to content

Instantly share code, notes, and snippets.

@artob
Created April 1, 2010 05:26
Show Gist options
  • Save artob/351410 to your computer and use it in GitHub Desktop.
Save artob/351410 to your computer and use it in GitHub Desktop.
module RDF::Raptor
##
# RDF/XML support.
module RDFXML
##
# RDF/XML format specification.
class Format < RDF::Raptor::Format
content_type 'application/rdf+xml', :extension => :rdf
content_encoding 'utf-8'
rapper_format :rdfxml
reader { RDF::Raptor::RDFXML::Reader }
writer { RDF::Raptor::RDFXML::Writer }
end
##
# RDF/XML parser.
class Reader < RDF::Raptor::Reader
format RDF::Raptor::RDFXML::Format
end
##
# RDF/XML serializer.
class Writer < RDF::Raptor::Writer
format RDF::Raptor::RDFXML::Format
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment