• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-rdf / rdf-rdfa / 11317674118

13 Oct 2024 09:03PM UTC coverage: 90.142%. Remained the same
11317674118

push

github

gkellogg
Remove duplicate datatype in writer lang option

1079 of 1197 relevant lines covered (90.14%)

1322.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/rdf/rdfa.rb
1
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..')))
2✔
2
require 'rdf'
2✔
3

4
module RDF
2✔
5
  ##
6
  # **`RDF::RDFa`** is an RDFa extension for RDF.rb.
7
  #
8
  # @example Requiring the `RDF::RDFa` module
9
  #   require 'rdf/rdfa'
10
  #
11
  # @example Parsing RDF statements from an XHTML+RDFa file
12
  #   RDF::RDFa::Reader.open("etc/doap.html") do |reader|
13
  #     reader.each_statement do |statement|
14
  #       puts statement.inspect
15
  #     end
16
  #   end
17
  #
18
  # @see https://rubygems.org/gems/rdf
19
  # @see https://www.w3.org/TR/rdfa-syntax/#s_model RDFa 1.0
20
  # @see https://www.w3.org/TR/2012/REC-rdfa-core-20120607/
21
  # @see https://www.w3.org/TR/2012/CR-xhtml-rdfa-20120313/
22
  # @see https://dev.w3.org/html5/rdfa/
23
  #
24
  # @author [Gregg Kellogg](https://greggkellogg.net/)
25
  module RDFa
2✔
26
    require 'rdf/rdfa/format'
2✔
27
    require 'rdf/rdfa/vocab'
2✔
28
    require 'rdf/rdfa/patches/string_hacks'
2✔
29
    autoload :Expansion,  'rdf/rdfa/expansion'
2✔
30
    autoload :Context,    'rdf/rdfa/context'
2✔
31
    autoload :Reader,     'rdf/rdfa/reader'
2✔
32
    autoload :Writer,     'rdf/rdfa/writer'
2✔
33
    autoload :VERSION,    'rdf/rdfa/version'
2✔
34

35
    HTML_RDFA_CONTEXT   = "http://www.w3.org/2011/rdfa-context/html-rdfa-1.1"
2✔
36
    XHTML_RDFA_CONTEXT  = "http://www.w3.org/2011/rdfa-context/xhtml-rdfa-1.1"
2✔
37
    XML_RDFA_CONTEXT    = "http://www.w3.org/2011/rdfa-context/rdfa-1.1"
2✔
38
  end
39
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc