Sha256: 06fbc592d7e3cf2e678f9e585928c685f639102dbcc009e8e77b90d19c17604e

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 KB

Contents

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..')))
require 'rdf'

module RDF
  ##
  # **`RDF::RDFa`** is an RDFa extension 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/doap.html") do |reader|
  #     reader.each_statement do |statement|
  #       puts statement.inspect
  #     end
  #   end
  #
  # @see http://rubygems.org/gems/rdf
  # @see http://www.w3.org/TR/rdfa-syntax/#s_model RDFa 1.0
  # @see http://www.w3.org/TR/2012/REC-rdfa-core-20120607/
  # @see http://www.w3.org/TR/2012/CR-xhtml-rdfa-20120313/
  # @see http://dev.w3.org/html5/rdfa/
  #
  # @author [Gregg Kellogg](http://kellogg-assoc.com/)
  module RDFa
    require 'rdf/rdfa/format'
    require 'rdf/rdfa/vocab'
    require 'rdf/rdfa/patches/string_hacks'
    autoload :Expansion,  'rdf/rdfa/expansion'
    autoload :Context,    'rdf/rdfa/context'
    autoload :Reader,     'rdf/rdfa/reader'
    autoload :Writer,     'rdf/rdfa/writer'
    autoload :VERSION,    'rdf/rdfa/version'

    HTML_RDFA_CONTEXT   = "http://www.w3.org/2011/rdfa-context/html-rdfa-1.1"
    XHTML_RDFA_CONTEXT  = "http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"
    XML_RDFA_CONTEXT    = "http://www.w3.org/2011/rdfa-context/rdfa-1.1"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rdf-rdfa-3.1.0 lib/rdf/rdfa.rb
rdf-rdfa-3.0.1 lib/rdf/rdfa.rb
rdf-rdfa-3.0.0 lib/rdf/rdfa.rb
rdf-rdfa-2.2.4 lib/rdf/rdfa.rb
rdf-rdfa-2.2.3 lib/rdf/rdfa.rb