Module: RDF::Microdata

Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/expansion.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/format.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/jsonld_reader.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/rdfa_reader.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/reader/nokogiri.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/reader.rb,
vendor/bundler/ruby/2.4.0/bundler/gems/rdf-microdata-735ed0245b16/lib/rdf/microdata/registry.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, JsonLdReader, RdfaReader, Reader, Registry

Constant Summary

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