Module: RDF::Microdata

Defined in:
lib/rdf/microdata.rb,
lib/rdf/microdata/reader.rb,
lib/rdf/microdata/format.rb

Overview

RDF::Microdata is a Microdata plugin for RDF.rb.

Examples:

Requiring the RDF::Microdata module

require 'rdf/microdata'

Parsing RDF statements from an HTML file

RDF::Microdata::Reader.open("etc/foaf.html") do |reader|
  reader.each_statement do |statement|
    puts statement.inspect
  end
end

See Also:

Author:

Defined Under Namespace

Modules: VERSION Classes: Format, Reader

Class Method Summary (collapse)

Class Method Details

+ (Object) debug=(value)



30
# File 'lib/rdf/microdata.rb', line 30

def self.debug=(value); @debug = value; end

+ (Boolean) debug?

Returns:

  • (Boolean)


29
# File 'lib/rdf/microdata.rb', line 29

def self.debug?; @debug; end