Sha256: 36b86cddc477182904cb36109e26b62b35e4b7376957144358689bf7760e7d59

Contents?: true

Size: 1.27 KB

Versions: 2

Compression:

Stored size: 1.27 KB

Contents

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..')))
require 'rdf'

module RDF
  ##
  # **`RDF::RDFXML`** is an RDF/XML plugin for RDF.rb.
  #
  # @example Requiring the `RDF::RDFXML` module
  #   require 'rdf/rdfxml'
  #
  # @example Parsing RDF statements from an XHTML+RDFXML file
  #   RDF::RDFXML::Reader.open("etc/foaf.xml") do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @see http://rdf.rubyforge.org/
  # @see http://www.w3.org/TR/REC-rdf-syntax/
  #
  # @author [Gregg Kellogg](http://kellogg-assoc.com/)
  module RDFXML
    require 'rdf/rdfxml/format'
    require 'rdf/rdfxml/vocab'
    require 'rdf/rdfxml/patches/array_hacks'
    require 'rdf/rdfxml/patches/literal_hacks'
    require 'rdf/rdfxml/patches/nokogiri_hacks'
    require 'rdf/rdfxml/patches/qname_hacks'
    require 'rdf/rdfxml/patches/rdf_escape'
    require 'rdf/rdfxml/patches/uri_hacks'
    autoload :Reader,  'rdf/rdfxml/reader'
    autoload :Writer,  'rdf/rdfxml/writer'
    autoload :VERSION, 'rdf/rdfxml/version'
    autoload :XML,     'rdf/rdfxml/vocab'
    
    # Fixme: RDF.to_s should generate this, but it doesn't
    RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    XML_LITERAL = RDF['XMLLiteral']
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rdf-rdfxml-0.2.0 lib/rdf/rdfxml.rb
rdf-rdfxml-0.0.3 lib/rdf/rdfxml.rb