• 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/vocab.rb
1
# -*- encoding: utf-8 -*-
2
# frozen_string_literal: true
3
# This file generated automatically using rdf vocabulary format from http://www.w3.org/ns/rdfa#
4
require 'rdf'
2✔
5
module RDF
2✔
6
  # @!parse
7
  #   # Vocabulary for <http://www.w3.org/ns/rdfa#>
8
  #   #
9
  #   # RDFa Vocabulary for Term and Prefix Assignment, and for Processor Graph Reporting
10
  #   #
11
  #   # This document describes the RDFa Vocabulary for Term and Prefix Assignment. The Vocabulary is used to modify RDFa 1.1 processing behavior.
12
  #   # @version $Date: 2013-03-11 07:54:23 $
13
  #   class RDFA < RDF::Vocabulary
14
  #     # @return [RDF::Vocabulary::Term]
15
  #     attr_reader :PGClass
16
  #
17
  #     # @return [RDF::Vocabulary::Term]
18
  #     attr_reader :Pattern
19
  #
20
  #     # @return [RDF::Vocabulary::Term]
21
  #     attr_reader :PrefixOrTermMapping
22
  #
23
  #     # @return [RDF::Vocabulary::Term]
24
  #     attr_reader :context
25
  #
26
  #     # @return [RDF::Vocabulary::Term]
27
  #     attr_reader :copy
28
  #
29
  #     # @return [RDF::Vocabulary::Term]
30
  #     attr_reader :prefix
31
  #
32
  #     # @return [RDF::Vocabulary::Term]
33
  #     attr_reader :term
34
  #
35
  #     # @return [RDF::Vocabulary::Term]
36
  #     attr_reader :uri
37
  #
38
  #     # @return [RDF::Vocabulary::Term]
39
  #     attr_reader :usesVocabulary
40
  #
41
  #     # @return [RDF::Vocabulary::Term]
42
  #     attr_reader :vocabulary
43
  #
44
  #     # @return [RDF::Vocabulary::Term]
45
  #     attr_reader :DocumentError
46
  #
47
  #     # @return [RDF::Vocabulary::Term]
48
  #     attr_reader :Error
49
  #
50
  #     # @return [RDF::Vocabulary::Term]
51
  #     attr_reader :Info
52
  #
53
  #     # @return [RDF::Vocabulary::Term]
54
  #     attr_reader :PrefixMapping
55
  #
56
  #     # @return [RDF::Vocabulary::Term]
57
  #     attr_reader :PrefixRedefinition
58
  #
59
  #     # @return [RDF::Vocabulary::Term]
60
  #     attr_reader :TermMapping
61
  #
62
  #     # @return [RDF::Vocabulary::Term]
63
  #     attr_reader :UnresolvedCURIE
64
  #
65
  #     # @return [RDF::Vocabulary::Term]
66
  #     attr_reader :UnresolvedTerm
67
  #
68
  #     # @return [RDF::Vocabulary::Term]
69
  #     attr_reader :VocabReferenceError
70
  #
71
  #     # @return [RDF::Vocabulary::Term]
72
  #     attr_reader :Warning
73
  #
74
  #   end
75
  RDFA = Class.new(RDF::Vocabulary("http://www.w3.org/ns/rdfa#")) do
2✔
76

77
    # Ontology definition
78
    ontology :"http://www.w3.org/ns/rdfa#",
2✔
79
      "dc:creator": "http://www.ivan-herman.net/foaf#me".freeze,
80
      "dc:date": "2013-01-18".freeze,
81
      "dc:description": "This document describes the RDFa Vocabulary for Term and Prefix Assignment. The Vocabulary is used to modify RDFa 1.1 processing behavior.".freeze,
82
      "dc:publisher": "http://www.w3.org/data#W3C".freeze,
83
      "dc:title": "RDFa Vocabulary for Term and Prefix Assignment, and for Processor Graph Reporting".freeze,
84
      isDefinedBy: "http://www.w3.org/TR/rdfa-core/#s_initialcontexts".freeze,
85
      "owl:versionInfo": "$Date: 2013-03-11 07:54:23 $".freeze,
86
      type: "owl:Ontology".freeze
87

88
    # Class definitions
89
    term :PGClass,
2✔
90
      "dc:description": "is the top level class of the hierarchy".freeze,
91
      type: ["owl:Class".freeze, "rdfs:Class".freeze]
92
    term :Pattern,
2✔
93
      "dc:description": "Class to identify an (RDF) resource whose properties are to be copied to another resource".freeze,
94
      type: ["owl:Class".freeze, "rdfs:Class".freeze]
95
    term :PrefixOrTermMapping,
2✔
96
      "dc:description": "is the top level class for prefix or term mappings".freeze,
97
      type: ["owl:Class".freeze, "rdfs:Class".freeze]
98

99
    # Property definitions
100
    property :context,
2✔
101
      "dc:description": "provides extra context for the error, eg, http response, an XPointer/XPath information, or simply the URI that created the error".freeze,
102
      domain: "rdfa:PGClass".freeze,
103
      type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
104
    property :copy,
2✔
105
      "dc:description": "identifies the resource (i.e., pattern) whose properties and values should be copied to replace the current triple (retaining the subject of the triple).".freeze,
106
      type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
107
    property :prefix,
2✔
108
      "dc:description": "defines a prefix mapping for a URI; the value is supposed to be a NMTOKEN".freeze,
109
      domain: "rdfa:PrefixMapping".freeze,
110
      type: ["owl:DatatypeProperty".freeze, "rdf:Property".freeze]
111
    property :term,
2✔
112
      "dc:description": "defines a term mapping for a URI; the value is supposed to be a NMTOKEN".freeze,
113
      domain: "rdfa:TermMapping".freeze,
114
      type: ["owl:DatatypeProperty".freeze, "rdf:Property".freeze]
115
    property :uri,
2✔
116
      "dc:description": "defines the URI for either a prefix or a term mapping; the value is supposed to be an absolute URI".freeze,
117
      domain: "rdfa:PrefixOrTermMapping".freeze,
118
      type: ["owl:DatatypeProperty".freeze, "rdf:Property".freeze]
119
    property :usesVocabulary,
2✔
120
      "dc:description": "provides a relationship between the host document and a vocabulary\n\tdefined using the @vocab facility of RDFa1.1".freeze,
121
      type: ["owl:ObjectProperty".freeze, "rdf:Property".freeze]
122
    property :vocabulary,
2✔
123
      "dc:description": "defines an absolute URI to be used as a default vocabulary; the value is can be any string; for documentation purposes it is advised to use the string 'true' or 'True'.".freeze,
124
      type: ["owl:DatatypeProperty".freeze, "rdf:Property".freeze]
125

126
    # Extra definitions
127
    term :DocumentError,
2✔
128
      "dc:description": "error condition; to be used when the document fails to be fully processed as a result of non-conformant host language markup".freeze,
129
      subClassOf: "rdfa:Error".freeze
130
    term :Error,
2✔
131
      "dc:description": "is the class for all error conditions".freeze,
132
      subClassOf: "rdfa:PGClass".freeze
133
    term :Info,
2✔
134
      "dc:description": "is the class for all informations".freeze,
135
      subClassOf: "rdfa:PGClass".freeze
136
    term :PrefixMapping,
2✔
137
      "dc:description": "is the class for prefix mappings".freeze,
138
      subClassOf: "rdfa:PrefixOrTermMapping".freeze
139
    term :PrefixRedefinition,
2✔
140
      "dc:description": "warning; to be used when a prefix, either from the initial context or inherited from an ancestor node, is redefined in an element".freeze,
141
      subClassOf: "rdfa:Warning".freeze
142
    term :TermMapping,
2✔
143
      "dc:description": "is the class for term mappings".freeze,
144
      subClassOf: "rdfa:PrefixOrTermMapping".freeze
145
    term :UnresolvedCURIE,
2✔
146
      "dc:description": "warning; to be used when a CURIE prefix fails to be resolved".freeze,
147
      subClassOf: "rdfa:Warning".freeze
148
    term :UnresolvedTerm,
2✔
149
      "dc:description": "warning; to be used when a Term fails to be resolved".freeze,
150
      subClassOf: "rdfa:Warning".freeze
151
    term :VocabReferenceError,
2✔
152
      "dc:description": "warning; to be used when the value of a @vocab attribute cannot be dereferenced, hence the vocabulary expansion cannot be completed".freeze,
153
      subClassOf: "rdfa:Warning".freeze
154
    term :Warning,
2✔
155
      "dc:description": "is the class for all warnings".freeze,
156
      subClassOf: "rdfa:PGClass".freeze
157
  end
158
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