-
Notifications
You must be signed in to change notification settings - Fork 4
/
microdata.rb
35 lines (33 loc) · 1.17 KB
/
microdata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..')))
require 'rdf'
module RDF
##
# **`RDF::Microdata`** is a Microdata extension for RDF.rb.
#
# @example Requiring the `RDF::Microdata` module
# require 'rdf/microdata'
#
# @example 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 https://ruby-rdf.github.io/rdf/
# @see https://www.w3.org/TR/2011/WD-microdata-20110525/
#
# @author [Gregg Kellogg](https://greggkellogg.net/)
module Microdata
USES_VOCAB = RDF::URI("http://www.w3.org/ns/rdfa#usesVocabulary")
DEFAULT_REGISTRY = File.expand_path("../../../etc/registry.json", __FILE__)
require 'rdf/microdata/format'
require 'rdf/microdata/vocab'
autoload :Expansion, 'rdf/microdata/expansion'
autoload :Profile, 'rdf/microdata/profile'
autoload :RdfaReader, 'rdf/microdata/rdfa_reader'
autoload :Reader, 'rdf/microdata/reader'
autoload :Registry, 'rdf/microdata/registry'
autoload :VERSION, 'rdf/microdata/version'
end
end