-
Notifications
You must be signed in to change notification settings - Fork 98
/
rdfv.rb
339 lines (333 loc) · 15 KB
/
rdfv.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# -*- encoding: utf-8 -*-
# frozen_string_literal: true
# This file generated automatically using rdf vocabulary format from http://www.w3.org/1999/02/22-rdf-syntax-ns#
require 'rdf'
module RDF
# @!parse
# # Vocabulary for <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
# #
# # This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.
# class RDFV < RDF::StrictVocabulary
# # The class of containers of alternatives.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Alt
#
# # The class of unordered containers.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Bag
#
# # A class representing a compound literal.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :CompoundLiteral
#
# # The class of RDF Lists.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :List
#
# # The class of RDF properties.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Property
#
# # The class of ordered containers.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Seq
#
# # The class of RDF statements.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Statement
#
# # The direction component of a CompoundLiteral.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :direction
#
# # The first item in the subject RDF list.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :first
#
# # The object of the subject RDF statement.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :object
#
# # The language component of a CompoundLiteral.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :language
#
# # The predicate of the subject RDF statement.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :predicate
#
# # The rest of the subject RDF list after the first item.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :rest
#
# # The subject of the subject RDF statement.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :subject
#
# # The subject is an instance of a class.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :type
#
# # Idiomatic property used for structured values.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :value
#
# # Reification predicate
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :reifies
#
# # The datatype of RDF literals storing fragments of HTML content.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :HTML
#
# # The datatype of RDF literals storing JSON content.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :JSON
#
# # The class of plain (i.e. untyped) literal values, as used in RIF and OWL 2.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :PlainLiteral
#
# # The datatype of XML literal values.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :XMLLiteral
#
# # The datatype of language-tagged string values.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :langString
#
# # The datatype of directional language-tagged string values.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :dirLangString
#
# # RDF/XML node element.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :Description
#
# # RDF/XML attribute creating a Reification.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :ID
#
# # RDF/XML attribute declaring subject.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :about
#
# # RDF/XML literal datatype.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :datatype
#
# # RDF/XML container membership list element.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :li
#
# # The empty list, with no items in it. If the rest of a list is nil then the list has no more items in it.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :nil
#
# # RDF/XML Blank Node identifier.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :nodeID
#
# # Parse type for RDF/XML, either Collection, Literal or Resource.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :parseType
#
# # RDF/XML attribute declaring object.
# # @return [RDF::Vocabulary::Term]
# # @attr_reader :resource
# end
RDFV = Class.new(RDF::StrictVocabulary("http://www.w3.org/1999/02/22-rdf-syntax-ns#")) do
class << self
def name; "RDF"; end
alias_method :__name__, :name
end
# Ontology definition
ontology :"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"http://purl.org/dc/elements/1.1/description": %(This is the RDF Schema for the RDF vocabulary terms in the RDF Namespace, defined in RDF 1.1 Concepts.).freeze,
"http://purl.org/dc/elements/1.1/title": %(The RDF Concepts Vocabulary \(RDF\)).freeze,
type: "owl:Ontology".freeze
# Class definitions
term :Alt,
comment: %(The class of containers of alternatives.).freeze,
label: "Alt".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :Bag,
comment: %(The class of unordered containers.).freeze,
label: "Bag".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :CompoundLiteral,
comment: %(A class representing a compound literal.).freeze,
label: "CompoundLiteral".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :List,
comment: %(The class of RDF Lists.).freeze,
label: "List".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :Property,
comment: %(The class of RDF properties.).freeze,
label: "Property".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :Seq,
comment: %(The class of ordered containers.).freeze,
label: "Seq".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Container".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
term :Statement,
comment: %(The class of RDF statements.).freeze,
label: "Statement".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Class".freeze
# Property definitions
property :direction,
comment: %(The direction component of a CompoundLiteral.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#CompoundLiteral".freeze,
label: "direction".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :first,
comment: %(The first item in the subject RDF list.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
label: "first".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :object,
comment: %(The object of the subject RDF statement.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
label: "object".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :language,
comment: %(The language component of a CompoundLiteral.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#CompoundLiteral".freeze,
label: "language".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :predicate,
comment: %(The predicate of the subject RDF statement.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
label: "predicate".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :rest,
comment: %(The rest of the subject RDF list after the first item.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
label: "rest".freeze,
range: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :subject,
comment: %(The subject of the subject RDF statement.).freeze,
domain: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement".freeze,
label: "subject".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :type,
comment: %(The subject is an instance of a class.).freeze,
domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
label: "type".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Class".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :value,
comment: %(Idiomatic property used for structured values.).freeze,
domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
label: "value".freeze,
range: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
property :reifies,
comment: %(Property relating to a Triple Term.).freeze,
domain: "http://www.w3.org/2000/01/rdf-schema#Resource".freeze,
label: "reifies".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property".freeze
# Datatype definitions
term :HTML,
comment: %(The datatype of RDF literals storing fragments of HTML content).freeze,
label: "HTML".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
"http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-html).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
property :JSON,
comment: %(The datatype of RDF literals storing JSON content.).freeze,
label: "JSON".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
term :PlainLiteral,
comment: %(The class of plain \(i.e. untyped\) literal values, as used in RIF and OWL 2).freeze,
label: "PlainLiteral".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
"http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf-plain-literal/).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
term :XMLLiteral,
comment: %(The datatype of XML literal values.).freeze,
label: "XMLLiteral".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
term :langString,
comment: %(The datatype of language-tagged string values).freeze,
label: "langString".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
"http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
term :dirLangString,
comment: %(The datatype of directional language-tagged string values).freeze,
label: "dirLangString".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
"http://www.w3.org/2000/01/rdf-schema#seeAlso": %(http://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal).freeze,
subClassOf: "http://www.w3.org/2000/01/rdf-schema#Literal".freeze,
type: "http://www.w3.org/2000/01/rdf-schema#Datatype".freeze
# Extra definitions
term :Description,
comment: %(RDF/XML node element).freeze,
label: "Description".freeze
term :ID,
comment: %(RDF/XML attribute creating a Reification).freeze,
label: "ID".freeze
term :about,
comment: %(RDF/XML attribute declaring subject).freeze,
label: "about".freeze
term :datatype,
comment: %(RDF/XML literal datatype).freeze,
label: "datatype".freeze
term :li,
comment: %(RDF/XML container membership list element).freeze,
label: "li".freeze
term :nil,
comment: %(The empty list, with no items in it. If the rest of a list is nil then the list has no more items in it.).freeze,
label: "nil".freeze,
isDefinedBy: %(http://www.w3.org/1999/02/22-rdf-syntax-ns#).freeze,
type: "http://www.w3.org/1999/02/22-rdf-syntax-ns#List".freeze
term :nodeID,
comment: %(RDF/XML Blank Node identifier).freeze,
label: "nodeID".freeze
term :parseType,
comment: %(Parse type for RDF/XML, either Collection, Literal or Resource).freeze,
label: "parseType".freeze
term :resource,
comment: %(RDF/XML attribute declaring object).freeze,
label: "resource".freeze
end
end