Module: RDF::Microdata

Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-db7b933a7326/lib/rdf/microdata.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-db7b933a7326/lib/rdf/microdata/expansion.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-db7b933a7326/lib/rdf/microdata/format.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-db7b933a7326/lib/rdf/microdata/reader/nokogiri.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-db7b933a7326/lib/rdf/microdata/reader.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, Reader

Constant Summary

USES_VOCAB =
RDF::URI("http://www.w3.org/ns/rdfa#usesVocabulary")