Sha256: 7d6fb5cb4ad3bfec2460ee494e572912ea49baecbfc2032e84d90bceee7d2b21

Contents?: true

Size: 1.07 KB

Versions: 4

Compression:

Stored size: 1.07 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'
    autoload :Reader,  'rdf/rdfxml/reader'
    autoload :Writer,  'rdf/rdfxml/writer'
    autoload :VERSION, 'rdf/rdfxml/version'
    autoload :XML,     'rdf/rdfxml/vocab'
    
    def self.debug?; @debug; end
    def self.debug=(value); @debug = value; end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rdf-rdfxml-0.3.2.1 lib/rdf/rdfxml.rb
rdf-rdfxml-0.3.2 lib/rdf/rdfxml.rb
rdf-rdfxml-0.3.1 lib/rdf/rdfxml.rb
rdf-rdfxml-0.3.0 lib/rdf/rdfxml.rb