Sha256: 5187032bacb97b2aa879875ae6a07fce5f8582db8d3dc4402c61ccc4f140b56e
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
$:.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 http://www.rubydoc.info/github/ruby-rdf/rdf/ # @see http://www.w3.org/TR/2011/WD-microdata-20110525/ # # @author [Gregg Kellogg](http://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 :JsonLdReader, 'rdf/microdata/jsonld_reader' 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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rdf-microdata-2.2.3 | lib/rdf/microdata.rb |
rdf-microdata-2.2.2 | lib/rdf/microdata.rb |