rdf 2.2.12 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/rdf.rb +1 -1
- data/lib/rdf/format.rb +97 -66
- data/lib/rdf/mixin/enumerable.rb +0 -17
- data/lib/rdf/mixin/enumerator.rb +0 -34
- data/lib/rdf/model/literal/date.rb +1 -1
- data/lib/rdf/model/literal/datetime.rb +1 -1
- data/lib/rdf/model/literal/decimal.rb +1 -1
- data/lib/rdf/model/literal/double.rb +1 -1
- data/lib/rdf/model/literal/integer.rb +1 -1
- data/lib/rdf/model/literal/time.rb +1 -1
- data/lib/rdf/model/node.rb +3 -14
- data/lib/rdf/model/statement.rb +0 -28
- data/lib/rdf/model/uri.rb +3 -24
- data/lib/rdf/query.rb +23 -8
- data/lib/rdf/query/pattern.rb +6 -12
- data/lib/rdf/query/solution.rb +2 -14
- data/lib/rdf/query/variable.rb +0 -21
- data/lib/rdf/util/file.rb +1 -2
- data/lib/rdf/vocab/owl.rb +84 -84
- data/lib/rdf/vocab/rdfs.rb +17 -17
- data/lib/rdf/vocab/rdfv.rb +23 -23
- data/lib/rdf/vocab/writer.rb +50 -8
- data/lib/rdf/vocabulary.rb +554 -191
- metadata +23 -24
- data/lib/df.rb +0 -1
data/lib/rdf/query.rb
CHANGED
@@ -116,12 +116,6 @@ module RDF
|
|
116
116
|
return Solutions.new(args)
|
117
117
|
end
|
118
118
|
|
119
|
-
##
|
120
|
-
# The variables used in this query.
|
121
|
-
#
|
122
|
-
# @return [Hash{Symbol => RDF::Query::Variable}]
|
123
|
-
attr_reader :variables
|
124
|
-
|
125
119
|
##
|
126
120
|
# The patterns that constitute this query.
|
127
121
|
#
|
@@ -182,7 +176,6 @@ module RDF
|
|
182
176
|
# @yieldreturn [void] ignored
|
183
177
|
def initialize(*patterns, solutions: nil, graph_name: nil, name: nil, **options, &block)
|
184
178
|
@options = options.dup
|
185
|
-
@variables = {}
|
186
179
|
@solutions = Query::Solutions(solutions)
|
187
180
|
graph_name = name if graph_name.nil?
|
188
181
|
|
@@ -450,7 +443,29 @@ module RDF
|
|
450
443
|
#
|
451
444
|
# @return [Boolean]
|
452
445
|
def variable?
|
453
|
-
|
446
|
+
!variables.empty?
|
447
|
+
end
|
448
|
+
alias_method :variables?, :variable?
|
449
|
+
alias_method :has_variables?, :variable?
|
450
|
+
|
451
|
+
##
|
452
|
+
# The variables used in this query. This includes variables used in patterns along with the graph_name itself, if it is a variable.
|
453
|
+
#
|
454
|
+
# @return [Hash{Symbol => RDF::Query::Variable}]
|
455
|
+
def variables
|
456
|
+
# Set variables used in query
|
457
|
+
vars = patterns.inject({}) do |memo, pattern|
|
458
|
+
memo.merge(pattern.variables)
|
459
|
+
end
|
460
|
+
graph_name.is_a?(Variable) ? vars.merge(graph_name.to_sym => graph_name) : vars
|
461
|
+
end
|
462
|
+
|
463
|
+
##
|
464
|
+
# Returns the number of variables in this query.
|
465
|
+
#
|
466
|
+
# @return [Integer] (0..3)
|
467
|
+
def variable_count
|
468
|
+
variables.keys.length
|
454
469
|
end
|
455
470
|
|
456
471
|
##
|
data/lib/rdf/query/pattern.rb
CHANGED
@@ -221,12 +221,9 @@ module RDF; class Query
|
|
221
221
|
#
|
222
222
|
# @return [Integer] (0..3)
|
223
223
|
def variable_count
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
count += 1 if object.is_a?(Variable)
|
228
|
-
count += 1 if graph_name.is_a?(Variable)
|
229
|
-
count
|
224
|
+
[subject, predicate, object, graph_name].inject(0) do |memo, term|
|
225
|
+
memo += (term.is_a?(Variable) ? 1 : 0)
|
226
|
+
end
|
230
227
|
end
|
231
228
|
alias_method :cardinality, :variable_count
|
232
229
|
alias_method :arity, :variable_count
|
@@ -238,12 +235,9 @@ module RDF; class Query
|
|
238
235
|
#
|
239
236
|
# @return [Hash{Symbol => Variable}]
|
240
237
|
def variables
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
variables.merge!(object.variables) if object.is_a?(Variable)
|
245
|
-
variables.merge!(graph_name.variables) if graph_name.is_a?(Variable)
|
246
|
-
variables
|
238
|
+
[subject, predicate, object, graph_name].inject({}) do |memo, term|
|
239
|
+
term.is_a?(Variable) ? memo.merge(term.variables) : memo
|
240
|
+
end
|
247
241
|
end
|
248
242
|
|
249
243
|
##
|
data/lib/rdf/query/solution.rb
CHANGED
@@ -36,7 +36,7 @@ class RDF::Query
|
|
36
36
|
# @param [Hash{Symbol => RDF::Term}] bindings
|
37
37
|
# @yield [solution]
|
38
38
|
def initialize(bindings = {}, &block)
|
39
|
-
@bindings = bindings.
|
39
|
+
@bindings = bindings.to_h
|
40
40
|
|
41
41
|
if block_given?
|
42
42
|
case block.arity
|
@@ -264,25 +264,13 @@ class RDF::Query
|
|
264
264
|
protected
|
265
265
|
|
266
266
|
##
|
267
|
-
# @overload #to_hash
|
268
|
-
# Returns object representation of this URI, broken into components
|
269
|
-
#
|
270
|
-
# @return (see #to_h)
|
271
|
-
# @deprecated Use {#to_h} instead.
|
272
|
-
#
|
273
267
|
# @overload binding(name)
|
274
268
|
# Return the binding for this name
|
275
269
|
#
|
276
270
|
# @param [Symbol] name
|
277
271
|
# @return [RDF::Term]
|
278
272
|
def method_missing(name, *args, &block)
|
279
|
-
if
|
280
|
-
warn "[DEPRECATION] RDF::Query::Solution#to_hash is deprecated, use RDF::Query::Solution#to_h instead.\n" +
|
281
|
-
"This is due to the introduction of keyword arugments that attempt to turn the last argument into a hash using #to_hash.\n" +
|
282
|
-
"This can be avoided by explicitly passing an options hash as the last argument.\n" +
|
283
|
-
"Called from #{Gem.location_of_caller.join(':')}"
|
284
|
-
self.to_h
|
285
|
-
elsif args.empty? && @bindings.has_key?(name.to_sym)
|
273
|
+
if args.empty? && @bindings.has_key?(name.to_sym)
|
286
274
|
@bindings[name.to_sym]
|
287
275
|
else
|
288
276
|
super # raises NoMethodError
|
data/lib/rdf/query/variable.rb
CHANGED
@@ -219,26 +219,5 @@ class RDF::Query
|
|
219
219
|
prefix = distinguished? ? '?' : "??"
|
220
220
|
unbound? ? "#{prefix}#{name}" : "#{prefix}#{name}=#{value}"
|
221
221
|
end
|
222
|
-
|
223
|
-
protected
|
224
|
-
##
|
225
|
-
# @overload #to_hash
|
226
|
-
# Returns object representation of this URI, broken into components
|
227
|
-
#
|
228
|
-
# @return (see #object)
|
229
|
-
# @deprecated Use {#to_h} instead.
|
230
|
-
def method_missing(name, *args, &block)
|
231
|
-
if name == :to_hash
|
232
|
-
warn "[DEPRECATION] RDF::Query::Variable#to_hash is deprecated, use RDF::Query::Variable#to_h instead.\n" +
|
233
|
-
"This is due to the introduction of keyword arugments that attempt to turn the last argument into a hash using #to_hash.\n" +
|
234
|
-
"This can be avoided by explicitly passing an options hash as the last argument.\n" +
|
235
|
-
"Called from #{Gem.location_of_caller.join(':')}"
|
236
|
-
self.to_h
|
237
|
-
elsif args.empty? && @bindings.has_key?(name.to_sym)
|
238
|
-
@bindings[name.to_sym]
|
239
|
-
else
|
240
|
-
super # raises NoMethodError
|
241
|
-
end
|
242
|
-
end
|
243
222
|
end # Variable
|
244
223
|
end # RDF::Query
|
data/lib/rdf/util/file.rb
CHANGED
@@ -27,8 +27,7 @@ module RDF; module Util
|
|
27
27
|
# @since 1.2
|
28
28
|
class HttpAdapter
|
29
29
|
##
|
30
|
-
# @param
|
31
|
-
# @option options [Array, String] :headers
|
30
|
+
# @param [Array, String] headers
|
32
31
|
# HTTP Request headers
|
33
32
|
# @return [Hash] A hash of HTTP request headers
|
34
33
|
def self.headers headers: {}
|
data/lib/rdf/vocab/owl.rb
CHANGED
@@ -29,169 +29,169 @@ module RDF
|
|
29
29
|
will cause it to become an OWL 2 Full ontology and may have other,
|
30
30
|
unexpected, consequences.
|
31
31
|
).freeze,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
:
|
38
|
-
|
32
|
+
"dc11:title": %(The OWL 2 Schema vocabulary \(OWL 2\)).freeze,
|
33
|
+
"http://www.w3.org/2003/g/data-view#namespaceTransformation": %(http://dev.w3.org/cvsweb/2009/owl-grddl/owx2rdf.xsl).freeze,
|
34
|
+
"owl:imports": %(http://www.w3.org/2000/01/rdf-schema).freeze,
|
35
|
+
"owl:versionIRI": %(http://www.w3.org/2002/07/owl).freeze,
|
36
|
+
"owl:versionInfo": %($Date: 2009/11/15 10:54:12 $).freeze,
|
37
|
+
isDefinedBy: [%(http://www.w3.org/TR/owl2-mapping-to-rdf/).freeze, %(http://www.w3.org/TR/owl2-rdf-based-semantics/).freeze, %(http://www.w3.org/TR/owl2-syntax/).freeze],
|
38
|
+
"rdfs:seeAlso": [%(http://www.w3.org/TR/owl2-rdf-based-semantics/#table-axiomatic-classes).freeze, %(http://www.w3.org/TR/owl2-rdf-based-semantics/#table-axiomatic-properties).freeze],
|
39
39
|
type: "owl:Ontology".freeze
|
40
40
|
|
41
41
|
# Class definitions
|
42
42
|
term :AllDifferent,
|
43
43
|
comment: %(The class of collections of pairwise different individuals.).freeze,
|
44
44
|
label: "AllDifferent".freeze,
|
45
|
-
:
|
45
|
+
isDefinedBy: %(owl:).freeze,
|
46
46
|
subClassOf: "rdfs:Resource".freeze,
|
47
47
|
type: "rdfs:Class".freeze
|
48
48
|
term :AllDisjointClasses,
|
49
49
|
comment: %(The class of collections of pairwise disjoint classes.).freeze,
|
50
50
|
label: "AllDisjointClasses".freeze,
|
51
|
-
:
|
51
|
+
isDefinedBy: %(owl:).freeze,
|
52
52
|
subClassOf: "rdfs:Resource".freeze,
|
53
53
|
type: "rdfs:Class".freeze
|
54
54
|
term :AllDisjointProperties,
|
55
55
|
comment: %(The class of collections of pairwise disjoint properties.).freeze,
|
56
56
|
label: "AllDisjointProperties".freeze,
|
57
|
-
:
|
57
|
+
isDefinedBy: %(owl:).freeze,
|
58
58
|
subClassOf: "rdfs:Resource".freeze,
|
59
59
|
type: "rdfs:Class".freeze
|
60
60
|
term :Annotation,
|
61
61
|
comment: %(The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object.).freeze,
|
62
62
|
label: "Annotation".freeze,
|
63
|
-
:
|
63
|
+
isDefinedBy: %(owl:).freeze,
|
64
64
|
subClassOf: "rdfs:Resource".freeze,
|
65
65
|
type: "rdfs:Class".freeze
|
66
66
|
term :AnnotationProperty,
|
67
67
|
comment: %(The class of annotation properties.).freeze,
|
68
68
|
label: "AnnotationProperty".freeze,
|
69
|
-
:
|
69
|
+
isDefinedBy: %(owl:).freeze,
|
70
70
|
subClassOf: "rdf:Property".freeze,
|
71
71
|
type: "rdfs:Class".freeze
|
72
72
|
term :AsymmetricProperty,
|
73
73
|
comment: %(The class of asymmetric properties.).freeze,
|
74
74
|
label: "AsymmetricProperty".freeze,
|
75
|
-
:
|
75
|
+
isDefinedBy: %(owl:).freeze,
|
76
76
|
subClassOf: "owl:ObjectProperty".freeze,
|
77
77
|
type: "rdfs:Class".freeze
|
78
78
|
term :Axiom,
|
79
79
|
comment: %(The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object.).freeze,
|
80
80
|
label: "Axiom".freeze,
|
81
|
-
:
|
81
|
+
isDefinedBy: %(owl:).freeze,
|
82
82
|
subClassOf: "rdfs:Resource".freeze,
|
83
83
|
type: "rdfs:Class".freeze
|
84
84
|
term :Class,
|
85
85
|
comment: %(The class of OWL classes.).freeze,
|
86
86
|
label: "Class".freeze,
|
87
|
-
:
|
87
|
+
isDefinedBy: %(owl:).freeze,
|
88
88
|
subClassOf: "rdfs:Class".freeze,
|
89
89
|
type: "rdfs:Class".freeze
|
90
90
|
term :DataRange,
|
91
91
|
comment: %(The class of OWL data ranges, which are special kinds of datatypes. Note: The use of the IRI owl:DataRange has been deprecated as of OWL 2. The IRI rdfs:Datatype SHOULD be used instead.).freeze,
|
92
92
|
label: "DataRange".freeze,
|
93
|
-
:
|
93
|
+
isDefinedBy: %(owl:).freeze,
|
94
94
|
subClassOf: "rdfs:Datatype".freeze,
|
95
95
|
type: "rdfs:Class".freeze
|
96
96
|
term :DatatypeProperty,
|
97
97
|
comment: %(The class of data properties.).freeze,
|
98
98
|
label: "DatatypeProperty".freeze,
|
99
|
-
:
|
99
|
+
isDefinedBy: %(owl:).freeze,
|
100
100
|
subClassOf: "rdf:Property".freeze,
|
101
101
|
type: "rdfs:Class".freeze
|
102
102
|
term :DeprecatedClass,
|
103
103
|
comment: %(The class of deprecated classes.).freeze,
|
104
104
|
label: "DeprecatedClass".freeze,
|
105
|
-
:
|
105
|
+
isDefinedBy: %(owl:).freeze,
|
106
106
|
subClassOf: "rdfs:Class".freeze,
|
107
107
|
type: "rdfs:Class".freeze
|
108
108
|
term :DeprecatedProperty,
|
109
109
|
comment: %(The class of deprecated properties.).freeze,
|
110
110
|
label: "DeprecatedProperty".freeze,
|
111
|
-
:
|
111
|
+
isDefinedBy: %(owl:).freeze,
|
112
112
|
subClassOf: "rdf:Property".freeze,
|
113
113
|
type: "rdfs:Class".freeze
|
114
114
|
term :FunctionalProperty,
|
115
115
|
comment: %(The class of functional properties.).freeze,
|
116
116
|
label: "FunctionalProperty".freeze,
|
117
|
-
:
|
117
|
+
isDefinedBy: %(owl:).freeze,
|
118
118
|
subClassOf: "rdf:Property".freeze,
|
119
119
|
type: "rdfs:Class".freeze
|
120
120
|
term :InverseFunctionalProperty,
|
121
121
|
comment: %(The class of inverse-functional properties.).freeze,
|
122
122
|
label: "InverseFunctionalProperty".freeze,
|
123
|
-
:
|
123
|
+
isDefinedBy: %(owl:).freeze,
|
124
124
|
subClassOf: "owl:ObjectProperty".freeze,
|
125
125
|
type: "rdfs:Class".freeze
|
126
126
|
term :IrreflexiveProperty,
|
127
127
|
comment: %(The class of irreflexive properties.).freeze,
|
128
128
|
label: "IrreflexiveProperty".freeze,
|
129
|
-
:
|
129
|
+
isDefinedBy: %(owl:).freeze,
|
130
130
|
subClassOf: "owl:ObjectProperty".freeze,
|
131
131
|
type: "rdfs:Class".freeze
|
132
132
|
term :NamedIndividual,
|
133
133
|
comment: %(The class of named individuals.).freeze,
|
134
134
|
label: "NamedIndividual".freeze,
|
135
|
-
:
|
135
|
+
isDefinedBy: %(owl:).freeze,
|
136
136
|
subClassOf: "owl:Thing".freeze,
|
137
137
|
type: "rdfs:Class".freeze
|
138
138
|
term :NegativePropertyAssertion,
|
139
139
|
comment: %(The class of negative property assertions.).freeze,
|
140
140
|
label: "NegativePropertyAssertion".freeze,
|
141
|
-
:
|
141
|
+
isDefinedBy: %(owl:).freeze,
|
142
142
|
subClassOf: "rdfs:Resource".freeze,
|
143
143
|
type: "rdfs:Class".freeze
|
144
144
|
term :Nothing,
|
145
145
|
comment: %(This is the empty class.).freeze,
|
146
146
|
label: "Nothing".freeze,
|
147
|
-
:
|
147
|
+
isDefinedBy: %(owl:).freeze,
|
148
148
|
subClassOf: "owl:Thing".freeze,
|
149
149
|
type: "owl:Class".freeze
|
150
150
|
term :ObjectProperty,
|
151
151
|
comment: %(The class of object properties.).freeze,
|
152
152
|
label: "ObjectProperty".freeze,
|
153
|
-
:
|
153
|
+
isDefinedBy: %(owl:).freeze,
|
154
154
|
subClassOf: "rdf:Property".freeze,
|
155
155
|
type: "rdfs:Class".freeze
|
156
156
|
term :Ontology,
|
157
157
|
comment: %(The class of ontologies.).freeze,
|
158
158
|
label: "Ontology".freeze,
|
159
|
-
:
|
159
|
+
isDefinedBy: %(owl:).freeze,
|
160
160
|
subClassOf: "rdfs:Resource".freeze,
|
161
161
|
type: "rdfs:Class".freeze
|
162
162
|
term :OntologyProperty,
|
163
163
|
comment: %(The class of ontology properties.).freeze,
|
164
164
|
label: "OntologyProperty".freeze,
|
165
|
-
:
|
165
|
+
isDefinedBy: %(owl:).freeze,
|
166
166
|
subClassOf: "rdf:Property".freeze,
|
167
167
|
type: "rdfs:Class".freeze
|
168
168
|
term :ReflexiveProperty,
|
169
169
|
comment: %(The class of reflexive properties.).freeze,
|
170
170
|
label: "ReflexiveProperty".freeze,
|
171
|
-
:
|
171
|
+
isDefinedBy: %(owl:).freeze,
|
172
172
|
subClassOf: "owl:ObjectProperty".freeze,
|
173
173
|
type: "rdfs:Class".freeze
|
174
174
|
term :Restriction,
|
175
175
|
comment: %(The class of property restrictions.).freeze,
|
176
176
|
label: "Restriction".freeze,
|
177
|
-
:
|
177
|
+
isDefinedBy: %(owl:).freeze,
|
178
178
|
subClassOf: "owl:Class".freeze,
|
179
179
|
type: "rdfs:Class".freeze
|
180
180
|
term :SymmetricProperty,
|
181
181
|
comment: %(The class of symmetric properties.).freeze,
|
182
182
|
label: "SymmetricProperty".freeze,
|
183
|
-
:
|
183
|
+
isDefinedBy: %(owl:).freeze,
|
184
184
|
subClassOf: "owl:ObjectProperty".freeze,
|
185
185
|
type: "rdfs:Class".freeze
|
186
186
|
term :Thing,
|
187
187
|
comment: %(The class of OWL individuals.).freeze,
|
188
188
|
label: "Thing".freeze,
|
189
|
-
:
|
189
|
+
isDefinedBy: %(owl:).freeze,
|
190
190
|
type: "owl:Class".freeze
|
191
191
|
term :TransitiveProperty,
|
192
192
|
comment: %(The class of transitive properties.).freeze,
|
193
193
|
label: "TransitiveProperty".freeze,
|
194
|
-
:
|
194
|
+
isDefinedBy: %(owl:).freeze,
|
195
195
|
subClassOf: "owl:ObjectProperty".freeze,
|
196
196
|
type: "rdfs:Class".freeze
|
197
197
|
|
@@ -201,357 +201,357 @@ module RDF
|
|
201
201
|
domain: "owl:Restriction".freeze,
|
202
202
|
label: "allValuesFrom".freeze,
|
203
203
|
range: "rdfs:Class".freeze,
|
204
|
-
:
|
204
|
+
isDefinedBy: %(owl:).freeze,
|
205
205
|
type: "rdf:Property".freeze
|
206
206
|
property :annotatedProperty,
|
207
207
|
comment: %(The property that determines the predicate of an annotated axiom or annotated annotation.).freeze,
|
208
208
|
domain: "rdfs:Resource".freeze,
|
209
209
|
label: "annotatedProperty".freeze,
|
210
210
|
range: "rdfs:Resource".freeze,
|
211
|
-
:
|
211
|
+
isDefinedBy: %(owl:).freeze,
|
212
212
|
type: "rdf:Property".freeze
|
213
213
|
property :annotatedSource,
|
214
214
|
comment: %(The property that determines the subject of an annotated axiom or annotated annotation.).freeze,
|
215
215
|
domain: "rdfs:Resource".freeze,
|
216
216
|
label: "annotatedSource".freeze,
|
217
217
|
range: "rdfs:Resource".freeze,
|
218
|
-
:
|
218
|
+
isDefinedBy: %(owl:).freeze,
|
219
219
|
type: "rdf:Property".freeze
|
220
220
|
property :annotatedTarget,
|
221
221
|
comment: %(The property that determines the object of an annotated axiom or annotated annotation.).freeze,
|
222
222
|
domain: "rdfs:Resource".freeze,
|
223
223
|
label: "annotatedTarget".freeze,
|
224
224
|
range: "rdfs:Resource".freeze,
|
225
|
-
:
|
225
|
+
isDefinedBy: %(owl:).freeze,
|
226
226
|
type: "rdf:Property".freeze
|
227
227
|
property :assertionProperty,
|
228
228
|
comment: %(The property that determines the predicate of a negative property assertion.).freeze,
|
229
229
|
domain: "owl:NegativePropertyAssertion".freeze,
|
230
230
|
label: "assertionProperty".freeze,
|
231
231
|
range: "rdf:Property".freeze,
|
232
|
-
:
|
232
|
+
isDefinedBy: %(owl:).freeze,
|
233
233
|
type: "rdf:Property".freeze
|
234
234
|
property :backwardCompatibleWith,
|
235
235
|
comment: %(The annotation property that indicates that a given ontology is backward compatible with another ontology.).freeze,
|
236
236
|
domain: "owl:Ontology".freeze,
|
237
237
|
label: "backwardCompatibleWith".freeze,
|
238
238
|
range: "owl:Ontology".freeze,
|
239
|
-
:
|
239
|
+
isDefinedBy: %(owl:).freeze,
|
240
240
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
241
241
|
property :bottomDataProperty,
|
242
242
|
comment: %(The data property that does not relate any individual to any data value.).freeze,
|
243
243
|
domain: "owl:Thing".freeze,
|
244
244
|
label: "bottomDataProperty".freeze,
|
245
245
|
range: "rdfs:Literal".freeze,
|
246
|
-
:
|
246
|
+
isDefinedBy: %(owl:).freeze,
|
247
247
|
type: "owl:DatatypeProperty".freeze
|
248
248
|
property :bottomObjectProperty,
|
249
249
|
comment: %(The object property that does not relate any two individuals.).freeze,
|
250
250
|
domain: "owl:Thing".freeze,
|
251
251
|
label: "bottomObjectProperty".freeze,
|
252
252
|
range: "owl:Thing".freeze,
|
253
|
-
:
|
253
|
+
isDefinedBy: %(owl:).freeze,
|
254
254
|
type: "owl:ObjectProperty".freeze
|
255
255
|
property :cardinality,
|
256
256
|
comment: %(The property that determines the cardinality of an exact cardinality restriction.).freeze,
|
257
257
|
domain: "owl:Restriction".freeze,
|
258
258
|
label: "cardinality".freeze,
|
259
259
|
range: "xsd:nonNegativeInteger".freeze,
|
260
|
-
:
|
260
|
+
isDefinedBy: %(owl:).freeze,
|
261
261
|
type: "rdf:Property".freeze
|
262
262
|
property :complementOf,
|
263
263
|
comment: %(The property that determines that a given class is the complement of another class.).freeze,
|
264
264
|
domain: "owl:Class".freeze,
|
265
265
|
label: "complementOf".freeze,
|
266
266
|
range: "owl:Class".freeze,
|
267
|
-
:
|
267
|
+
isDefinedBy: %(owl:).freeze,
|
268
268
|
type: "rdf:Property".freeze
|
269
269
|
property :datatypeComplementOf,
|
270
270
|
comment: %(The property that determines that a given data range is the complement of another data range with respect to the data domain.).freeze,
|
271
271
|
domain: "rdfs:Datatype".freeze,
|
272
272
|
label: "datatypeComplementOf".freeze,
|
273
273
|
range: "rdfs:Datatype".freeze,
|
274
|
-
:
|
274
|
+
isDefinedBy: %(owl:).freeze,
|
275
275
|
type: "rdf:Property".freeze
|
276
276
|
property :deprecated,
|
277
277
|
comment: %(The annotation property that indicates that a given entity has been deprecated.).freeze,
|
278
278
|
domain: "rdfs:Resource".freeze,
|
279
279
|
label: "deprecated".freeze,
|
280
280
|
range: "rdfs:Resource".freeze,
|
281
|
-
:
|
281
|
+
isDefinedBy: %(owl:).freeze,
|
282
282
|
type: "owl:AnnotationProperty".freeze
|
283
283
|
property :differentFrom,
|
284
284
|
comment: %(The property that determines that two given individuals are different.).freeze,
|
285
285
|
domain: "owl:Thing".freeze,
|
286
286
|
label: "differentFrom".freeze,
|
287
287
|
range: "owl:Thing".freeze,
|
288
|
-
:
|
288
|
+
isDefinedBy: %(owl:).freeze,
|
289
289
|
type: "rdf:Property".freeze
|
290
290
|
property :disjointUnionOf,
|
291
291
|
comment: %(The property that determines that a given class is equivalent to the disjoint union of a collection of other classes.).freeze,
|
292
292
|
domain: "owl:Class".freeze,
|
293
293
|
label: "disjointUnionOf".freeze,
|
294
294
|
range: "rdf:List".freeze,
|
295
|
-
:
|
295
|
+
isDefinedBy: %(owl:).freeze,
|
296
296
|
type: "rdf:Property".freeze
|
297
297
|
property :disjointWith,
|
298
298
|
comment: %(The property that determines that two given classes are disjoint.).freeze,
|
299
299
|
domain: "owl:Class".freeze,
|
300
300
|
label: "disjointWith".freeze,
|
301
301
|
range: "owl:Class".freeze,
|
302
|
-
:
|
302
|
+
isDefinedBy: %(owl:).freeze,
|
303
303
|
type: "rdf:Property".freeze
|
304
304
|
property :distinctMembers,
|
305
305
|
comment: %(The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom.).freeze,
|
306
306
|
domain: "owl:AllDifferent".freeze,
|
307
307
|
label: "distinctMembers".freeze,
|
308
308
|
range: "rdf:List".freeze,
|
309
|
-
:
|
309
|
+
isDefinedBy: %(owl:).freeze,
|
310
310
|
type: "rdf:Property".freeze
|
311
311
|
property :equivalentClass,
|
312
312
|
comment: %(The property that determines that two given classes are equivalent, and that is used to specify datatype definitions.).freeze,
|
313
313
|
domain: "rdfs:Class".freeze,
|
314
314
|
label: "equivalentClass".freeze,
|
315
315
|
range: "rdfs:Class".freeze,
|
316
|
-
:
|
316
|
+
isDefinedBy: %(owl:).freeze,
|
317
317
|
type: "rdf:Property".freeze
|
318
318
|
property :equivalentProperty,
|
319
319
|
comment: %(The property that determines that two given properties are equivalent.).freeze,
|
320
320
|
domain: "rdf:Property".freeze,
|
321
321
|
label: "equivalentProperty".freeze,
|
322
322
|
range: "rdf:Property".freeze,
|
323
|
-
:
|
323
|
+
isDefinedBy: %(owl:).freeze,
|
324
324
|
type: "rdf:Property".freeze
|
325
325
|
property :hasKey,
|
326
326
|
comment: %(The property that determines the collection of properties that jointly build a key.).freeze,
|
327
327
|
domain: "owl:Class".freeze,
|
328
328
|
label: "hasKey".freeze,
|
329
329
|
range: "rdf:List".freeze,
|
330
|
-
:
|
330
|
+
isDefinedBy: %(owl:).freeze,
|
331
331
|
type: "rdf:Property".freeze
|
332
332
|
property :hasSelf,
|
333
333
|
comment: %(The property that determines the property that a self restriction refers to.).freeze,
|
334
334
|
domain: "owl:Restriction".freeze,
|
335
335
|
label: "hasSelf".freeze,
|
336
336
|
range: "rdfs:Resource".freeze,
|
337
|
-
:
|
337
|
+
isDefinedBy: %(owl:).freeze,
|
338
338
|
type: "rdf:Property".freeze
|
339
339
|
property :hasValue,
|
340
340
|
comment: %(The property that determines the individual that a has-value restriction refers to.).freeze,
|
341
341
|
domain: "owl:Restriction".freeze,
|
342
342
|
label: "hasValue".freeze,
|
343
343
|
range: "rdfs:Resource".freeze,
|
344
|
-
:
|
344
|
+
isDefinedBy: %(owl:).freeze,
|
345
345
|
type: "rdf:Property".freeze
|
346
346
|
property :imports,
|
347
347
|
comment: %(The property that is used for importing other ontologies into a given ontology.).freeze,
|
348
348
|
domain: "owl:Ontology".freeze,
|
349
349
|
label: "imports".freeze,
|
350
350
|
range: "owl:Ontology".freeze,
|
351
|
-
:
|
351
|
+
isDefinedBy: %(owl:).freeze,
|
352
352
|
type: "owl:OntologyProperty".freeze
|
353
353
|
property :incompatibleWith,
|
354
354
|
comment: %(The annotation property that indicates that a given ontology is incompatible with another ontology.).freeze,
|
355
355
|
domain: "owl:Ontology".freeze,
|
356
356
|
label: "incompatibleWith".freeze,
|
357
357
|
range: "owl:Ontology".freeze,
|
358
|
-
:
|
358
|
+
isDefinedBy: %(owl:).freeze,
|
359
359
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
360
360
|
property :intersectionOf,
|
361
361
|
comment: %(The property that determines the collection of classes or data ranges that build an intersection.).freeze,
|
362
362
|
domain: "rdfs:Class".freeze,
|
363
363
|
label: "intersectionOf".freeze,
|
364
364
|
range: "rdf:List".freeze,
|
365
|
-
:
|
365
|
+
isDefinedBy: %(owl:).freeze,
|
366
366
|
type: "rdf:Property".freeze
|
367
367
|
property :inverseOf,
|
368
368
|
comment: %(The property that determines that two given properties are inverse.).freeze,
|
369
369
|
domain: "owl:ObjectProperty".freeze,
|
370
370
|
label: "inverseOf".freeze,
|
371
371
|
range: "owl:ObjectProperty".freeze,
|
372
|
-
:
|
372
|
+
isDefinedBy: %(owl:).freeze,
|
373
373
|
type: "rdf:Property".freeze
|
374
374
|
property :maxCardinality,
|
375
375
|
comment: %(The property that determines the cardinality of a maximum cardinality restriction.).freeze,
|
376
376
|
domain: "owl:Restriction".freeze,
|
377
377
|
label: "maxCardinality".freeze,
|
378
378
|
range: "xsd:nonNegativeInteger".freeze,
|
379
|
-
:
|
379
|
+
isDefinedBy: %(owl:).freeze,
|
380
380
|
type: "rdf:Property".freeze
|
381
381
|
property :maxQualifiedCardinality,
|
382
382
|
comment: %(The property that determines the cardinality of a maximum qualified cardinality restriction.).freeze,
|
383
383
|
domain: "owl:Restriction".freeze,
|
384
384
|
label: "maxQualifiedCardinality".freeze,
|
385
385
|
range: "xsd:nonNegativeInteger".freeze,
|
386
|
-
:
|
386
|
+
isDefinedBy: %(owl:).freeze,
|
387
387
|
type: "rdf:Property".freeze
|
388
388
|
property :members,
|
389
389
|
comment: %(The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom.).freeze,
|
390
390
|
domain: "rdfs:Resource".freeze,
|
391
391
|
label: "members".freeze,
|
392
392
|
range: "rdf:List".freeze,
|
393
|
-
:
|
393
|
+
isDefinedBy: %(owl:).freeze,
|
394
394
|
type: "rdf:Property".freeze
|
395
395
|
property :minCardinality,
|
396
396
|
comment: %(The property that determines the cardinality of a minimum cardinality restriction.).freeze,
|
397
397
|
domain: "owl:Restriction".freeze,
|
398
398
|
label: "minCardinality".freeze,
|
399
399
|
range: "xsd:nonNegativeInteger".freeze,
|
400
|
-
:
|
400
|
+
isDefinedBy: %(owl:).freeze,
|
401
401
|
type: "rdf:Property".freeze
|
402
402
|
property :minQualifiedCardinality,
|
403
403
|
comment: %(The property that determines the cardinality of a minimum qualified cardinality restriction.).freeze,
|
404
404
|
domain: "owl:Restriction".freeze,
|
405
405
|
label: "minQualifiedCardinality".freeze,
|
406
406
|
range: "xsd:nonNegativeInteger".freeze,
|
407
|
-
:
|
407
|
+
isDefinedBy: %(owl:).freeze,
|
408
408
|
type: "rdf:Property".freeze
|
409
409
|
property :onClass,
|
410
410
|
comment: %(The property that determines the class that a qualified object cardinality restriction refers to.).freeze,
|
411
411
|
domain: "owl:Restriction".freeze,
|
412
412
|
label: "onClass".freeze,
|
413
413
|
range: "owl:Class".freeze,
|
414
|
-
:
|
414
|
+
isDefinedBy: %(owl:).freeze,
|
415
415
|
type: "rdf:Property".freeze
|
416
416
|
property :onDataRange,
|
417
417
|
comment: %(The property that determines the data range that a qualified data cardinality restriction refers to.).freeze,
|
418
418
|
domain: "owl:Restriction".freeze,
|
419
419
|
label: "onDataRange".freeze,
|
420
420
|
range: "rdfs:Datatype".freeze,
|
421
|
-
:
|
421
|
+
isDefinedBy: %(owl:).freeze,
|
422
422
|
type: "rdf:Property".freeze
|
423
423
|
property :onDatatype,
|
424
424
|
comment: %(The property that determines the datatype that a datatype restriction refers to.).freeze,
|
425
425
|
domain: "rdfs:Datatype".freeze,
|
426
426
|
label: "onDatatype".freeze,
|
427
427
|
range: "rdfs:Datatype".freeze,
|
428
|
-
:
|
428
|
+
isDefinedBy: %(owl:).freeze,
|
429
429
|
type: "rdf:Property".freeze
|
430
430
|
property :onProperties,
|
431
431
|
comment: %(The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to.).freeze,
|
432
432
|
domain: "owl:Restriction".freeze,
|
433
433
|
label: "onProperties".freeze,
|
434
434
|
range: "rdf:List".freeze,
|
435
|
-
:
|
435
|
+
isDefinedBy: %(owl:).freeze,
|
436
436
|
type: "rdf:Property".freeze
|
437
437
|
property :onProperty,
|
438
438
|
comment: %(The property that determines the property that a property restriction refers to.).freeze,
|
439
439
|
domain: "owl:Restriction".freeze,
|
440
440
|
label: "onProperty".freeze,
|
441
441
|
range: "rdf:Property".freeze,
|
442
|
-
:
|
442
|
+
isDefinedBy: %(owl:).freeze,
|
443
443
|
type: "rdf:Property".freeze
|
444
444
|
property :oneOf,
|
445
445
|
comment: %(The property that determines the collection of individuals or data values that build an enumeration.).freeze,
|
446
446
|
domain: "rdfs:Class".freeze,
|
447
447
|
label: "oneOf".freeze,
|
448
448
|
range: "rdf:List".freeze,
|
449
|
-
:
|
449
|
+
isDefinedBy: %(owl:).freeze,
|
450
450
|
type: "rdf:Property".freeze
|
451
451
|
property :priorVersion,
|
452
452
|
comment: %(The annotation property that indicates the predecessor ontology of a given ontology.).freeze,
|
453
453
|
domain: "owl:Ontology".freeze,
|
454
454
|
label: "priorVersion".freeze,
|
455
455
|
range: "owl:Ontology".freeze,
|
456
|
-
:
|
456
|
+
isDefinedBy: %(owl:).freeze,
|
457
457
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
458
458
|
property :propertyChainAxiom,
|
459
459
|
comment: %(The property that determines the n-tuple of properties that build a sub property chain of a given property.).freeze,
|
460
460
|
domain: "owl:ObjectProperty".freeze,
|
461
461
|
label: "propertyChainAxiom".freeze,
|
462
462
|
range: "rdf:List".freeze,
|
463
|
-
:
|
463
|
+
isDefinedBy: %(owl:).freeze,
|
464
464
|
type: "rdf:Property".freeze
|
465
465
|
property :propertyDisjointWith,
|
466
466
|
comment: %(The property that determines that two given properties are disjoint.).freeze,
|
467
467
|
domain: "rdf:Property".freeze,
|
468
468
|
label: "propertyDisjointWith".freeze,
|
469
469
|
range: "rdf:Property".freeze,
|
470
|
-
:
|
470
|
+
isDefinedBy: %(owl:).freeze,
|
471
471
|
type: "rdf:Property".freeze
|
472
472
|
property :qualifiedCardinality,
|
473
473
|
comment: %(The property that determines the cardinality of an exact qualified cardinality restriction.).freeze,
|
474
474
|
domain: "owl:Restriction".freeze,
|
475
475
|
label: "qualifiedCardinality".freeze,
|
476
476
|
range: "xsd:nonNegativeInteger".freeze,
|
477
|
-
:
|
477
|
+
isDefinedBy: %(owl:).freeze,
|
478
478
|
type: "rdf:Property".freeze
|
479
479
|
property :sameAs,
|
480
480
|
comment: %(The property that determines that two given individuals are equal.).freeze,
|
481
481
|
domain: "owl:Thing".freeze,
|
482
482
|
label: "sameAs".freeze,
|
483
483
|
range: "owl:Thing".freeze,
|
484
|
-
:
|
484
|
+
isDefinedBy: %(owl:).freeze,
|
485
485
|
type: "rdf:Property".freeze
|
486
486
|
property :someValuesFrom,
|
487
487
|
comment: %(The property that determines the class that an existential property restriction refers to.).freeze,
|
488
488
|
domain: "owl:Restriction".freeze,
|
489
489
|
label: "someValuesFrom".freeze,
|
490
490
|
range: "rdfs:Class".freeze,
|
491
|
-
:
|
491
|
+
isDefinedBy: %(owl:).freeze,
|
492
492
|
type: "rdf:Property".freeze
|
493
493
|
property :sourceIndividual,
|
494
494
|
comment: %(The property that determines the subject of a negative property assertion.).freeze,
|
495
495
|
domain: "owl:NegativePropertyAssertion".freeze,
|
496
496
|
label: "sourceIndividual".freeze,
|
497
497
|
range: "owl:Thing".freeze,
|
498
|
-
:
|
498
|
+
isDefinedBy: %(owl:).freeze,
|
499
499
|
type: "rdf:Property".freeze
|
500
500
|
property :targetIndividual,
|
501
501
|
comment: %(The property that determines the object of a negative object property assertion.).freeze,
|
502
502
|
domain: "owl:NegativePropertyAssertion".freeze,
|
503
503
|
label: "targetIndividual".freeze,
|
504
504
|
range: "owl:Thing".freeze,
|
505
|
-
:
|
505
|
+
isDefinedBy: %(owl:).freeze,
|
506
506
|
type: "rdf:Property".freeze
|
507
507
|
property :targetValue,
|
508
508
|
comment: %(The property that determines the value of a negative data property assertion.).freeze,
|
509
509
|
domain: "owl:NegativePropertyAssertion".freeze,
|
510
510
|
label: "targetValue".freeze,
|
511
511
|
range: "rdfs:Literal".freeze,
|
512
|
-
:
|
512
|
+
isDefinedBy: %(owl:).freeze,
|
513
513
|
type: "rdf:Property".freeze
|
514
514
|
property :topDataProperty,
|
515
515
|
comment: %(The data property that relates every individual to every data value.).freeze,
|
516
516
|
domain: "owl:Thing".freeze,
|
517
517
|
label: "topDataProperty".freeze,
|
518
518
|
range: "rdfs:Literal".freeze,
|
519
|
-
:
|
519
|
+
isDefinedBy: %(owl:).freeze,
|
520
520
|
type: "owl:DatatypeProperty".freeze
|
521
521
|
property :topObjectProperty,
|
522
522
|
comment: %(The object property that relates every two individuals.).freeze,
|
523
523
|
domain: "owl:Thing".freeze,
|
524
524
|
label: "topObjectProperty".freeze,
|
525
525
|
range: "owl:Thing".freeze,
|
526
|
-
:
|
526
|
+
isDefinedBy: %(owl:).freeze,
|
527
527
|
type: "owl:ObjectProperty".freeze
|
528
528
|
property :unionOf,
|
529
529
|
comment: %(The property that determines the collection of classes or data ranges that build a union.).freeze,
|
530
530
|
domain: "rdfs:Class".freeze,
|
531
531
|
label: "unionOf".freeze,
|
532
532
|
range: "rdf:List".freeze,
|
533
|
-
:
|
533
|
+
isDefinedBy: %(owl:).freeze,
|
534
534
|
type: "rdf:Property".freeze
|
535
535
|
property :versionIRI,
|
536
536
|
comment: %(The property that identifies the version IRI of an ontology.).freeze,
|
537
537
|
domain: "owl:Ontology".freeze,
|
538
538
|
label: "versionIRI".freeze,
|
539
539
|
range: "owl:Ontology".freeze,
|
540
|
-
:
|
540
|
+
isDefinedBy: %(owl:).freeze,
|
541
541
|
type: "owl:OntologyProperty".freeze
|
542
542
|
property :versionInfo,
|
543
543
|
comment: %(The annotation property that provides version information for an ontology or another OWL construct.).freeze,
|
544
544
|
domain: "rdfs:Resource".freeze,
|
545
545
|
label: "versionInfo".freeze,
|
546
546
|
range: "rdfs:Resource".freeze,
|
547
|
-
:
|
547
|
+
isDefinedBy: %(owl:).freeze,
|
548
548
|
type: "owl:AnnotationProperty".freeze
|
549
549
|
property :withRestrictions,
|
550
550
|
comment: %(The property that determines the collection of facet-value pairs that define a datatype restriction.).freeze,
|
551
551
|
domain: "rdfs:Datatype".freeze,
|
552
552
|
label: "withRestrictions".freeze,
|
553
553
|
range: "rdf:List".freeze,
|
554
|
-
:
|
554
|
+
isDefinedBy: %(owl:).freeze,
|
555
555
|
type: "rdf:Property".freeze
|
556
556
|
end
|
557
557
|
end
|