class RDF::Raptor::RDFXML::Format

RDF/XML format specification.

@example Obtaining an RDF/XML format class

RDF::Format.for(:rdfxml)       #=> RDF::Raptor::RDFXML::Format
RDF::Format.for("input.rdf")
RDF::Format.for(file_name:      "input.rdf")
RDF::Format.for(file_extension: "rdf")
RDF::Format.for(content_type:   "application/rdf+xml")

Public Class Methods

detect(sample) click to toggle source
# File lib/rdf/raptor/rdfxml.rb, line 44
def self.detect(sample)
  # Raptor guess is not fully supported
  sample.match(/<(\w+:)?(RDF)/)
end
symbols() click to toggle source
# File lib/rdf/raptor/rdfxml.rb, line 49
def self.symbols
  [:rdfxml, :rdf]
end