Sha256: 9fd9ab3350989944aa2fb10aad2f3bfea8bedf2e764e2ac6554be05dba437c87
Contents?: true
Size: 1.34 KB
Versions: 4
Compression:
Stored size: 1.34 KB
Contents
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..'))) require 'rdf' module RDF ## # **`RDF::RDFa`** is an RDFa plugin for RDF.rb. # # @example Requiring the `RDF::RDFa` module # require 'rdf/rdfa' # # @example Parsing RDF statements from an XHTML+RDFa file # RDF::RDFa::Reader.open("etc/foaf.html") do |reader| # reader.each_statement do |statement| # puts statement.inspect # end # end # # @see http://rdf.rubyforge.org/ # @see http://www.w3.org/TR/xhtml-rdfa-primer/ # @see http://www.w3.org/2010/02/rdfa/wiki/Main_Page # @see http://www.w3.org/TR/2010/WD-rdfa-core-20100422/ # @see http://www.w3.org/TR/2010/WD-xhtml-rdfa-20100422/ # # @author [Gregg Kellogg](http://kellogg-assoc.com/) module RDFa require 'rdf/rdfa/format' require 'rdf/rdfa/vocab' require 'rdf/rdfa/patches/literal_hacks' require 'rdf/rdfa/patches/nokogiri_hacks' require 'rdf/rdfa/patches/string_hacks' autoload :Profile, 'rdf/rdfa/profile' autoload :Reader, 'rdf/rdfa/reader' autoload :Writer, 'rdf/rdfa/writer' autoload :VERSION, 'rdf/rdfa/version' XML_RDFA_PROFILE = "http://www.w3.org/profile/rdfa-1.1" XHTML_RDFA_PROFILE = "http://www.w3.org/profile/html-rdfa-1.1" def self.debug?; @debug; end def self.debug=(value); @debug = value; end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rdf-rdfa-0.3.3.3 | lib/rdf/rdfa.rb |
rdf-rdfa-0.3.3.2 | lib/rdf/rdfa.rb |
rdf-rdfa-0.3.3.1 | lib/rdf/rdfa.rb |
rdf-rdfa-0.3.3 | lib/rdf/rdfa.rb |