Module: RDF::Microdata

Defined in:
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata/format.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata/reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata/registry.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata/expansion.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/lib/rdf/microdata/rdfa_reader.rb,
vendor/bundler/ruby/3.3.0/bundler/gems/rdf-microdata-73e8bfd8e661/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__)