Sha256: 8e73e8f6565ae5ba744ee9e51769065fb23e3f1fa9758b8a86701087a21c46a2

Contents?: true

Size: 1.34 KB

Versions: 15

Compression:

Stored size: 1.34 KB

Contents

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

module RDF
  ##
  # **`RDF::RDFXML`** is an RDF/XML extension 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://rubygems.org/gems/rdf
  # @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'
    autoload :Reader,  'rdf/rdfxml/reader'
    autoload :Writer,  'rdf/rdfxml/writer'
    autoload :VERSION, 'rdf/rdfxml/version'
    autoload :XML,     'rdf/rdfxml/vocab'

    # Regexp matching an NCName.
    NC_REGEXP = Regexp.new(
      %{^
        (?!\\\\u0301)             # ́ is a non-spacing acute accent.
                                  # It is legal within an XML Name, but not as the first character.
        (  [a-zA-Z_]
         | \\\\u[0-9a-fA-F]{4}
        )
        (  [0-9a-zA-Z_\.-]
         | \\\\u([0-9a-fA-F]{4})
        )*
      $},
      Regexp::EXTENDED)
  
    def self.debug?; @debug; end
    def self.debug=(value); @debug = value; end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
rdf-rdfxml-3.1.0 lib/rdf/rdfxml.rb
rdf-rdfxml-1.99.1 lib/rdf/rdfxml.rb
rdf-rdfxml-2.2.1 lib/rdf/rdfxml.rb
rdf-rdfxml-2.2.0 lib/rdf/rdfxml.rb
rdf-rdfxml-2.1.0 lib/rdf/rdfxml.rb
rdf-rdfxml-2.0.0 lib/rdf/rdfxml.rb
rdf-rdfxml-2.0.0.beta1 lib/rdf/rdfxml.rb
rdf-rdfxml-1.99.0 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.5.1 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.5 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.4 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.3 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.2 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.1 lib/rdf/rdfxml.rb
rdf-rdfxml-1.1.0.1 lib/rdf/rdfxml.rb