Module: RDF::Microdata

Defined in:
lib/rdf/microdata.rb,
lib/rdf/microdata/format.rb,
lib/rdf/microdata/reader.rb,
lib/rdf/microdata/registry.rb,
lib/rdf/microdata/expansion.rb,
lib/rdf/microdata/rdfa_reader.rb,
lib/rdf/microdata/reader/nokogiri.rb

Overview

RDF::Microdata is a Microdata extension 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: Expansion, VERSION Classes: Format, RdfaReader, Reader, Registry

Constant Summary collapse

USES_VOCAB =
RDF::URI("http://www.w3.org/ns/rdfa#usesVocabulary")
DEFAULT_REGISTRY =
File.expand_path("../../../etc/registry.json", __FILE__)