rdf 3.0.13 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHORS +1 -1
- data/README.md +46 -11
- data/VERSION +1 -1
- data/etc/doap.nt +74 -80
- data/lib/rdf.rb +32 -23
- data/lib/rdf/changeset.rb +87 -19
- data/lib/rdf/cli.rb +6 -6
- data/lib/rdf/format.rb +17 -10
- data/lib/rdf/mixin/enumerable.rb +3 -2
- data/lib/rdf/mixin/mutable.rb +5 -15
- data/lib/rdf/mixin/queryable.rb +12 -4
- data/lib/rdf/mixin/writable.rb +9 -14
- data/lib/rdf/model/dataset.rb +1 -1
- data/lib/rdf/model/graph.rb +5 -2
- data/lib/rdf/model/list.rb +5 -5
- data/lib/rdf/model/statement.rb +30 -7
- data/lib/rdf/model/uri.rb +42 -23
- data/lib/rdf/nquads.rb +6 -6
- data/lib/rdf/ntriples.rb +6 -4
- data/lib/rdf/ntriples/reader.rb +32 -7
- data/lib/rdf/ntriples/writer.rb +10 -1
- data/lib/rdf/query.rb +27 -35
- data/lib/rdf/query/hash_pattern_normalizer.rb +14 -12
- data/lib/rdf/query/pattern.rb +51 -18
- data/lib/rdf/query/solution.rb +20 -1
- data/lib/rdf/query/solutions.rb +15 -5
- data/lib/rdf/query/variable.rb +17 -5
- data/lib/rdf/reader.rb +76 -25
- data/lib/rdf/repository.rb +32 -18
- data/lib/rdf/transaction.rb +1 -1
- data/lib/rdf/util.rb +6 -5
- data/lib/rdf/util/cache.rb +2 -2
- data/lib/rdf/util/coercions.rb +60 -0
- data/lib/rdf/util/file.rb +2 -2
- data/lib/rdf/util/logger.rb +7 -7
- data/lib/rdf/vocab/owl.rb +401 -86
- data/lib/rdf/vocab/rdfs.rb +81 -18
- data/lib/rdf/vocab/rdfv.rb +147 -1
- data/lib/rdf/vocab/writer.rb +43 -4
- data/lib/rdf/vocab/xsd.rb +203 -2
- data/lib/rdf/vocabulary.rb +108 -14
- data/lib/rdf/writer.rb +32 -10
- metadata +28 -27
data/lib/rdf/repository.rb
CHANGED
@@ -119,9 +119,9 @@ module RDF
|
|
119
119
|
# @yieldparam [Repository]
|
120
120
|
# @return [void]
|
121
121
|
def self.load(urls, **options, &block)
|
122
|
-
self.new(options) do |repository|
|
122
|
+
self.new(**options) do |repository|
|
123
123
|
Array(urls).each do |url|
|
124
|
-
repository.load(url, options)
|
124
|
+
repository.load(url, **options)
|
125
125
|
end
|
126
126
|
|
127
127
|
if block_given?
|
@@ -182,6 +182,7 @@ module RDF
|
|
182
182
|
when :validity then @options.fetch(:with_validity, true)
|
183
183
|
when :literal_equality then true
|
184
184
|
when :atomic_write then false
|
185
|
+
when :rdfstar then false
|
185
186
|
when :snapshots then false
|
186
187
|
else false
|
187
188
|
end
|
@@ -266,6 +267,7 @@ module RDF
|
|
266
267
|
when :validity then @options.fetch(:with_validity, true)
|
267
268
|
when :literal_equality then true
|
268
269
|
when :atomic_write then true
|
270
|
+
when :rdfstar then true
|
269
271
|
when :snapshots then true
|
270
272
|
else false
|
271
273
|
end
|
@@ -340,7 +342,14 @@ module RDF
|
|
340
342
|
# @see Mutable#apply_changeset
|
341
343
|
def apply_changeset(changeset)
|
342
344
|
data = @data
|
343
|
-
changeset.deletes.each
|
345
|
+
changeset.deletes.each do |del|
|
346
|
+
if del.constant?
|
347
|
+
data = delete_from(data, del)
|
348
|
+
else
|
349
|
+
# we need this condition to handle wildcard statements
|
350
|
+
query_pattern(del) { |stmt| data = delete_from(data, stmt) }
|
351
|
+
end
|
352
|
+
end
|
344
353
|
changeset.inserts.each { |ins| data = insert_to(data, ins) }
|
345
354
|
@data = data
|
346
355
|
end
|
@@ -388,20 +397,25 @@ module RDF
|
|
388
397
|
graph_name.eql?(c)
|
389
398
|
|
390
399
|
ss = if subject.nil? || subject.is_a?(RDF::Query::Variable)
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
400
|
+
ss
|
401
|
+
elsif subject.is_a?(RDF::Query::Pattern)
|
402
|
+
# Match subjects which are statements matching this pattern
|
403
|
+
ss.keys.select {|s| s.statement? && subject.eql?(s)}.inject({}) do |memo, st|
|
404
|
+
memo.merge(st => ss[st])
|
405
|
+
end
|
406
|
+
elsif ss.has_key?(subject)
|
407
|
+
{ subject => ss[subject] }
|
408
|
+
else
|
409
|
+
[]
|
410
|
+
end
|
397
411
|
ss.each do |s, ps|
|
398
412
|
ps = if predicate.nil? || predicate.is_a?(RDF::Query::Variable)
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
413
|
+
ps
|
414
|
+
elsif ps.has_key?(predicate)
|
415
|
+
{ predicate => ps[predicate] }
|
416
|
+
else
|
417
|
+
[]
|
418
|
+
end
|
405
419
|
ps.each do |p, os|
|
406
420
|
os.each do |o, object_options|
|
407
421
|
next unless object.nil? || object.eql?(o)
|
@@ -411,7 +425,7 @@ module RDF
|
|
411
425
|
end
|
412
426
|
end
|
413
427
|
else
|
414
|
-
enum_for(:query_pattern, pattern, options)
|
428
|
+
enum_for(:query_pattern, pattern, **options)
|
415
429
|
end
|
416
430
|
end
|
417
431
|
|
@@ -512,8 +526,8 @@ module RDF
|
|
512
526
|
class SerializedTransaction < Transaction
|
513
527
|
##
|
514
528
|
# @see Transaction#initialize
|
515
|
-
def initialize(*)
|
516
|
-
super
|
529
|
+
def initialize(*args, **options, &block)
|
530
|
+
super(*args, **options, &block)
|
517
531
|
@base_snapshot = @snapshot
|
518
532
|
end
|
519
533
|
|
data/lib/rdf/transaction.rb
CHANGED
@@ -24,7 +24,7 @@ module RDF
|
|
24
24
|
# repository = RDF::Repository.new
|
25
25
|
#
|
26
26
|
# RDF::Transaction.begin(repository) do |tx|
|
27
|
-
# tx.query(predicate: RDF::Vocab::DOAP.developer) do |statement|
|
27
|
+
# tx.query({predicate: RDF::Vocab::DOAP.developer}) do |statement|
|
28
28
|
# puts statement.inspect
|
29
29
|
# end
|
30
30
|
# end
|
data/lib/rdf/util.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
module RDF; module Util
|
2
|
-
autoload :Aliasing,
|
3
|
-
autoload :Cache,
|
4
|
-
autoload :File,
|
5
|
-
autoload :Logger,
|
6
|
-
autoload :UUID,
|
2
|
+
autoload :Aliasing, 'rdf/util/aliasing'
|
3
|
+
autoload :Cache, 'rdf/util/cache'
|
4
|
+
autoload :File, 'rdf/util/file'
|
5
|
+
autoload :Logger, 'rdf/util/logger'
|
6
|
+
autoload :UUID, 'rdf/util/uuid'
|
7
|
+
autoload :Coercions, 'rdf/util/coercions'
|
7
8
|
end; end
|
data/lib/rdf/util/cache.rb
CHANGED
@@ -9,8 +9,8 @@ module RDF; module Util
|
|
9
9
|
#
|
10
10
|
# While this cache is something of an internal implementation detail of
|
11
11
|
# RDF.rb, some external libraries do currently make use of it as well,
|
12
|
-
# including [SPARQL](
|
13
|
-
# [Spira](
|
12
|
+
# including [SPARQL](https://github.com/ruby-rdf/sparql/) and
|
13
|
+
# [Spira](https://github.com/ruby-rdf/spira). Do be sure to include any changes
|
14
14
|
# here in the RDF.rb changelog.
|
15
15
|
#
|
16
16
|
# @see RDF::URI.intern
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
module RDF
|
3
|
+
module Util
|
4
|
+
module Coercions
|
5
|
+
# This is a provisional module intended to house input
|
6
|
+
# coercions. Currently the only coercion is a statement
|
7
|
+
# preprocessor that is used in e.g. {RDF::Writable#insert} and
|
8
|
+
# {RDF::Mutable#delete}.
|
9
|
+
|
10
|
+
protected
|
11
|
+
|
12
|
+
##
|
13
|
+
# Coerce an array of arguments into {RDF::Statement}, or
|
14
|
+
# {RDF::Enumerable} and then yield to a block. Note that this
|
15
|
+
# code was amalgamated from that which was sandwiched around
|
16
|
+
# both {RDF::Writable#insert_statements} and
|
17
|
+
# {RDF::Mutable#delete_statements}. The parameters `query` and
|
18
|
+
# `constant` are therefore present to handle the conditions
|
19
|
+
# where the statements contain wildcards and what to do about
|
20
|
+
# them.
|
21
|
+
#
|
22
|
+
# @example
|
23
|
+
# coerce_statements(statements) { |value| do_something(value) }
|
24
|
+
#
|
25
|
+
# @param statements [#map] The arbitrary-ish input to be manipulated
|
26
|
+
# @param query [false, true] Whether to call `query` before the block
|
27
|
+
# (as expected by {Mutable#delete_statements})
|
28
|
+
# @param constant [false, true] Whether to test if the statements
|
29
|
+
# are constant (as expected by {Mutable#delete_statements})
|
30
|
+
# @yield [RDF::Statement, RDF::Enumerable]
|
31
|
+
# @return statements
|
32
|
+
def coerce_statements(statements, query: false, constant: false, &block)
|
33
|
+
raise ArgumentError, 'expecting a block' unless block_given?
|
34
|
+
|
35
|
+
statements = statements.map do |value|
|
36
|
+
case
|
37
|
+
when value.respond_to?(:each_statement)
|
38
|
+
block.call(value)
|
39
|
+
nil
|
40
|
+
when (statement = Statement.from(value)) &&
|
41
|
+
(!constant || statement.constant?)
|
42
|
+
statement
|
43
|
+
when query
|
44
|
+
# XXX note that this only makes sense when the module is include()d
|
45
|
+
block.call(self.query(value))
|
46
|
+
nil
|
47
|
+
else
|
48
|
+
raise ArgumentError, "Not a valid statement: #{value.inspect}"
|
49
|
+
end
|
50
|
+
end.compact
|
51
|
+
|
52
|
+
block.call(statements) unless statements.empty?
|
53
|
+
|
54
|
+
# eh might as well return these
|
55
|
+
statements
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
data/lib/rdf/util/file.rb
CHANGED
@@ -319,7 +319,7 @@ module RDF; module Util
|
|
319
319
|
url_no_frag_or_query.query = nil
|
320
320
|
url_no_frag_or_query.fragment = nil
|
321
321
|
options[:encoding] ||= Encoding::UTF_8
|
322
|
-
Kernel.open(url_no_frag_or_query, "r", options) do |file|
|
322
|
+
Kernel.open(url_no_frag_or_query, "r", **options) do |file|
|
323
323
|
document_options = {
|
324
324
|
base_uri: filename_or_url.to_s,
|
325
325
|
charset: file.external_encoding.to_s,
|
@@ -430,7 +430,7 @@ module RDF; module Util
|
|
430
430
|
end if body.respond_to?(:unicode_normalized?)
|
431
431
|
end
|
432
432
|
|
433
|
-
super(body
|
433
|
+
super(body).set_encoding encoding
|
434
434
|
end
|
435
435
|
|
436
436
|
##
|
data/lib/rdf/util/logger.rb
CHANGED
@@ -38,7 +38,7 @@ module RDF; module Util
|
|
38
38
|
# @option options [Logger, #<<] :logger
|
39
39
|
# @return [Hash{Symbol => Integer}]
|
40
40
|
def log_statistics(**options)
|
41
|
-
logger(options).log_statistics
|
41
|
+
logger(**options).log_statistics
|
42
42
|
end
|
43
43
|
|
44
44
|
##
|
@@ -84,7 +84,7 @@ module RDF; module Util
|
|
84
84
|
# @return [void]
|
85
85
|
# @raise Raises the provided exception class using the first element from args as the message component, if `:exception` option is provided.
|
86
86
|
def log_error(*args, level: :error, **options, &block)
|
87
|
-
logger = self.logger(options)
|
87
|
+
logger = self.logger(**options)
|
88
88
|
return if logger.recovering
|
89
89
|
logger.recovering = true
|
90
90
|
logger_common(*args, level: level, **options, &block)
|
@@ -96,7 +96,7 @@ module RDF; module Util
|
|
96
96
|
# @option options [Logger, #<<] :logger
|
97
97
|
# @return [Boolean]
|
98
98
|
def log_recovering?(**options)
|
99
|
-
self.logger(options).recovering
|
99
|
+
self.logger(**options).recovering
|
100
100
|
end
|
101
101
|
|
102
102
|
##
|
@@ -135,7 +135,7 @@ module RDF; module Util
|
|
135
135
|
# @yieldreturn [String] added to message
|
136
136
|
# @return [void]
|
137
137
|
def log_recover(*args, level: :info, **options, &block)
|
138
|
-
logger = self.logger(options)
|
138
|
+
logger = self.logger(**options)
|
139
139
|
logger.recovering = false
|
140
140
|
return if args.empty? && !block_given?
|
141
141
|
logger_common(*args, level: level, **options, &block)
|
@@ -192,7 +192,7 @@ module RDF; module Util
|
|
192
192
|
# # Return the current log depth
|
193
193
|
# @return [Integer]
|
194
194
|
def log_depth(**options, &block)
|
195
|
-
self.logger(options).log_depth(&block)
|
195
|
+
self.logger(**options).log_depth(&block)
|
196
196
|
end
|
197
197
|
|
198
198
|
private
|
@@ -218,10 +218,10 @@ module RDF; module Util
|
|
218
218
|
# @yieldreturn [String] added to message
|
219
219
|
# @return [void]
|
220
220
|
def logger_common(*args, level:, **options)
|
221
|
-
logger = self.logger(options)
|
222
|
-
logger.log_statistics[level] = logger.log_statistics[level].to_i + 1
|
221
|
+
logger = self.logger(**options)
|
223
222
|
# Some older code uses integer level numbers
|
224
223
|
level = LOGGER_COMMON_LEVELS_REVERSE.fetch(level) if level.is_a?(Integer)
|
224
|
+
logger.log_statistics[level] = logger.log_statistics[level].to_i + 1
|
225
225
|
return if logger.level > LOGGER_COMMON_LEVELS.fetch(level)
|
226
226
|
|
227
227
|
depth = options.fetch(:depth, logger.log_depth)
|
data/lib/rdf/vocab/owl.rb
CHANGED
@@ -5,12 +5,327 @@ require 'rdf'
|
|
5
5
|
module RDF
|
6
6
|
# @!parse
|
7
7
|
# # Vocabulary for <http://www.w3.org/2002/07/owl#>
|
8
|
+
# #
|
9
|
+
# # The OWL 2 Schema vocabulary (OWL 2)
|
10
|
+
# #
|
11
|
+
# #
|
8
12
|
This ontology partially describes the built-in classes and
|
9
13
|
properties that together form the basis of the RDF/XML syntax of OWL 2.
|
10
14
|
The content of this ontology is based on Tables 6.1 and 6.2
|
11
15
|
in Section 6.4 of the OWL 2 RDF-Based Semantics specification,
|
12
16
|
available at http://www.w3.org/TR/owl2-rdf-based-semantics/.
|
13
17
|
Please note that those tables do not include the different annotations
|
14
18
|
(labels, comments and rdfs:isDefinedBy links) used in this file.
|
15
19
|
Also note that the descriptions provided in this ontology do not
|
16
20
|
provide a complete and correct formal description of either the syntax
|
17
21
|
or the semantics of the introduced terms (please see the OWL 2
|
18
22
|
recommendations for the complete and normative specifications).
|
19
23
|
Furthermore, the information provided by this ontology may be
|
20
24
|
misleading if not used with care. This ontology SHOULD NOT be imported
|
21
25
|
into OWL ontologies. Importing this file into an OWL 2 DL ontology
|
22
26
|
will cause it to become an OWL 2 Full ontology and may have other,
|
23
27
|
unexpected, consequences.
|
24
28
|
|
29
|
+
# # @version $Date: 2009/11/15 10:54:12 $
|
30
|
+
# # @see http://www.w3.org/TR/owl2-rdf-based-semantics/#table-axiomatic-properties
|
31
|
+
# # @see http://www.w3.org/TR/owl2-rdf-based-semantics/#table-axiomatic-classes
|
25
32
|
# class OWL < RDF::StrictVocabulary
|
33
|
+
# # The class of collections of pairwise different individuals.
|
34
|
+
# # @return [RDF::Vocabulary::Term]
|
35
|
+
# attr_reader :AllDifferent
|
36
|
+
#
|
37
|
+
# # The class of collections of pairwise disjoint classes.
|
38
|
+
# # @return [RDF::Vocabulary::Term]
|
39
|
+
# attr_reader :AllDisjointClasses
|
40
|
+
#
|
41
|
+
# # The class of collections of pairwise disjoint properties.
|
42
|
+
# # @return [RDF::Vocabulary::Term]
|
43
|
+
# attr_reader :AllDisjointProperties
|
44
|
+
#
|
45
|
+
# # The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object.
|
46
|
+
# # @return [RDF::Vocabulary::Term]
|
47
|
+
# attr_reader :Annotation
|
48
|
+
#
|
49
|
+
# # The class of annotation properties.
|
50
|
+
# # @return [RDF::Vocabulary::Term]
|
51
|
+
# attr_reader :AnnotationProperty
|
52
|
+
#
|
53
|
+
# # The class of asymmetric properties.
|
54
|
+
# # @return [RDF::Vocabulary::Term]
|
55
|
+
# attr_reader :AsymmetricProperty
|
56
|
+
#
|
57
|
+
# # The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object.
|
58
|
+
# # @return [RDF::Vocabulary::Term]
|
59
|
+
# attr_reader :Axiom
|
60
|
+
#
|
61
|
+
# # The class of OWL classes.
|
62
|
+
# # @return [RDF::Vocabulary::Term]
|
63
|
+
# attr_reader :Class
|
64
|
+
#
|
65
|
+
# # 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.
|
66
|
+
# # @return [RDF::Vocabulary::Term]
|
67
|
+
# attr_reader :DataRange
|
68
|
+
#
|
69
|
+
# # The class of data properties.
|
70
|
+
# # @return [RDF::Vocabulary::Term]
|
71
|
+
# attr_reader :DatatypeProperty
|
72
|
+
#
|
73
|
+
# # The class of deprecated classes.
|
74
|
+
# # @return [RDF::Vocabulary::Term]
|
75
|
+
# attr_reader :DeprecatedClass
|
76
|
+
#
|
77
|
+
# # The class of deprecated properties.
|
78
|
+
# # @return [RDF::Vocabulary::Term]
|
79
|
+
# attr_reader :DeprecatedProperty
|
80
|
+
#
|
81
|
+
# # The class of functional properties.
|
82
|
+
# # @return [RDF::Vocabulary::Term]
|
83
|
+
# attr_reader :FunctionalProperty
|
84
|
+
#
|
85
|
+
# # The class of inverse-functional properties.
|
86
|
+
# # @return [RDF::Vocabulary::Term]
|
87
|
+
# attr_reader :InverseFunctionalProperty
|
88
|
+
#
|
89
|
+
# # The class of irreflexive properties.
|
90
|
+
# # @return [RDF::Vocabulary::Term]
|
91
|
+
# attr_reader :IrreflexiveProperty
|
92
|
+
#
|
93
|
+
# # The class of named individuals.
|
94
|
+
# # @return [RDF::Vocabulary::Term]
|
95
|
+
# attr_reader :NamedIndividual
|
96
|
+
#
|
97
|
+
# # The class of negative property assertions.
|
98
|
+
# # @return [RDF::Vocabulary::Term]
|
99
|
+
# attr_reader :NegativePropertyAssertion
|
100
|
+
#
|
101
|
+
# # This is the empty class.
|
102
|
+
# # @return [RDF::Vocabulary::Term]
|
103
|
+
# attr_reader :Nothing
|
104
|
+
#
|
105
|
+
# # The class of object properties.
|
106
|
+
# # @return [RDF::Vocabulary::Term]
|
107
|
+
# attr_reader :ObjectProperty
|
108
|
+
#
|
109
|
+
# # The class of ontologies.
|
110
|
+
# # @return [RDF::Vocabulary::Term]
|
111
|
+
# attr_reader :Ontology
|
112
|
+
#
|
113
|
+
# # The class of ontology properties.
|
114
|
+
# # @return [RDF::Vocabulary::Term]
|
115
|
+
# attr_reader :OntologyProperty
|
116
|
+
#
|
117
|
+
# # The class of reflexive properties.
|
118
|
+
# # @return [RDF::Vocabulary::Term]
|
119
|
+
# attr_reader :ReflexiveProperty
|
120
|
+
#
|
121
|
+
# # The class of property restrictions.
|
122
|
+
# # @return [RDF::Vocabulary::Term]
|
123
|
+
# attr_reader :Restriction
|
124
|
+
#
|
125
|
+
# # The class of symmetric properties.
|
126
|
+
# # @return [RDF::Vocabulary::Term]
|
127
|
+
# attr_reader :SymmetricProperty
|
128
|
+
#
|
129
|
+
# # The class of OWL individuals.
|
130
|
+
# # @return [RDF::Vocabulary::Term]
|
131
|
+
# attr_reader :Thing
|
132
|
+
#
|
133
|
+
# # The class of transitive properties.
|
134
|
+
# # @return [RDF::Vocabulary::Term]
|
135
|
+
# attr_reader :TransitiveProperty
|
136
|
+
#
|
137
|
+
# # The property that determines the class that a universal property restriction refers to.
|
138
|
+
# # @return [RDF::Vocabulary::Term]
|
139
|
+
# attr_reader :allValuesFrom
|
140
|
+
#
|
141
|
+
# # The property that determines the predicate of an annotated axiom or annotated annotation.
|
142
|
+
# # @return [RDF::Vocabulary::Term]
|
143
|
+
# attr_reader :annotatedProperty
|
144
|
+
#
|
145
|
+
# # The property that determines the subject of an annotated axiom or annotated annotation.
|
146
|
+
# # @return [RDF::Vocabulary::Term]
|
147
|
+
# attr_reader :annotatedSource
|
148
|
+
#
|
149
|
+
# # The property that determines the object of an annotated axiom or annotated annotation.
|
150
|
+
# # @return [RDF::Vocabulary::Term]
|
151
|
+
# attr_reader :annotatedTarget
|
152
|
+
#
|
153
|
+
# # The property that determines the predicate of a negative property assertion.
|
154
|
+
# # @return [RDF::Vocabulary::Term]
|
155
|
+
# attr_reader :assertionProperty
|
156
|
+
#
|
157
|
+
# # The annotation property that indicates that a given ontology is backward compatible with another ontology.
|
158
|
+
# # @return [RDF::Vocabulary::Term]
|
159
|
+
# attr_reader :backwardCompatibleWith
|
160
|
+
#
|
161
|
+
# # The data property that does not relate any individual to any data value.
|
162
|
+
# # @return [RDF::Vocabulary::Term]
|
163
|
+
# attr_reader :bottomDataProperty
|
164
|
+
#
|
165
|
+
# # The object property that does not relate any two individuals.
|
166
|
+
# # @return [RDF::Vocabulary::Term]
|
167
|
+
# attr_reader :bottomObjectProperty
|
168
|
+
#
|
169
|
+
# # The property that determines the cardinality of an exact cardinality restriction.
|
170
|
+
# # @return [RDF::Vocabulary::Term]
|
171
|
+
# attr_reader :cardinality
|
172
|
+
#
|
173
|
+
# # The property that determines that a given class is the complement of another class.
|
174
|
+
# # @return [RDF::Vocabulary::Term]
|
175
|
+
# attr_reader :complementOf
|
176
|
+
#
|
177
|
+
# # The property that determines that a given data range is the complement of another data range with respect to the data domain.
|
178
|
+
# # @return [RDF::Vocabulary::Term]
|
179
|
+
# attr_reader :datatypeComplementOf
|
180
|
+
#
|
181
|
+
# # The annotation property that indicates that a given entity has been deprecated.
|
182
|
+
# # @return [RDF::Vocabulary::Term]
|
183
|
+
# attr_reader :deprecated
|
184
|
+
#
|
185
|
+
# # The property that determines that two given individuals are different.
|
186
|
+
# # @return [RDF::Vocabulary::Term]
|
187
|
+
# attr_reader :differentFrom
|
188
|
+
#
|
189
|
+
# # The property that determines that a given class is equivalent to the disjoint union of a collection of other classes.
|
190
|
+
# # @return [RDF::Vocabulary::Term]
|
191
|
+
# attr_reader :disjointUnionOf
|
192
|
+
#
|
193
|
+
# # The property that determines that two given classes are disjoint.
|
194
|
+
# # @return [RDF::Vocabulary::Term]
|
195
|
+
# attr_reader :disjointWith
|
196
|
+
#
|
197
|
+
# # The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom.
|
198
|
+
# # @return [RDF::Vocabulary::Term]
|
199
|
+
# attr_reader :distinctMembers
|
200
|
+
#
|
201
|
+
# # The property that determines that two given classes are equivalent, and that is used to specify datatype definitions.
|
202
|
+
# # @return [RDF::Vocabulary::Term]
|
203
|
+
# attr_reader :equivalentClass
|
204
|
+
#
|
205
|
+
# # The property that determines that two given properties are equivalent.
|
206
|
+
# # @return [RDF::Vocabulary::Term]
|
207
|
+
# attr_reader :equivalentProperty
|
208
|
+
#
|
209
|
+
# # The property that determines the collection of properties that jointly build a key.
|
210
|
+
# # @return [RDF::Vocabulary::Term]
|
211
|
+
# attr_reader :hasKey
|
212
|
+
#
|
213
|
+
# # The property that determines the property that a self restriction refers to.
|
214
|
+
# # @return [RDF::Vocabulary::Term]
|
215
|
+
# attr_reader :hasSelf
|
216
|
+
#
|
217
|
+
# # The property that determines the individual that a has-value restriction refers to.
|
218
|
+
# # @return [RDF::Vocabulary::Term]
|
219
|
+
# attr_reader :hasValue
|
220
|
+
#
|
221
|
+
# # The property that is used for importing other ontologies into a given ontology.
|
222
|
+
# # @return [RDF::Vocabulary::Term]
|
223
|
+
# attr_reader :imports
|
224
|
+
#
|
225
|
+
# # The annotation property that indicates that a given ontology is incompatible with another ontology.
|
226
|
+
# # @return [RDF::Vocabulary::Term]
|
227
|
+
# attr_reader :incompatibleWith
|
228
|
+
#
|
229
|
+
# # The property that determines the collection of classes or data ranges that build an intersection.
|
230
|
+
# # @return [RDF::Vocabulary::Term]
|
231
|
+
# attr_reader :intersectionOf
|
232
|
+
#
|
233
|
+
# # The property that determines that two given properties are inverse.
|
234
|
+
# # @return [RDF::Vocabulary::Term]
|
235
|
+
# attr_reader :inverseOf
|
236
|
+
#
|
237
|
+
# # The property that determines the cardinality of a maximum cardinality restriction.
|
238
|
+
# # @return [RDF::Vocabulary::Term]
|
239
|
+
# attr_reader :maxCardinality
|
240
|
+
#
|
241
|
+
# # The property that determines the cardinality of a maximum qualified cardinality restriction.
|
242
|
+
# # @return [RDF::Vocabulary::Term]
|
243
|
+
# attr_reader :maxQualifiedCardinality
|
244
|
+
#
|
245
|
+
# # The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom.
|
246
|
+
# # @return [RDF::Vocabulary::Term]
|
247
|
+
# attr_reader :members
|
248
|
+
#
|
249
|
+
# # The property that determines the cardinality of a minimum cardinality restriction.
|
250
|
+
# # @return [RDF::Vocabulary::Term]
|
251
|
+
# attr_reader :minCardinality
|
252
|
+
#
|
253
|
+
# # The property that determines the cardinality of a minimum qualified cardinality restriction.
|
254
|
+
# # @return [RDF::Vocabulary::Term]
|
255
|
+
# attr_reader :minQualifiedCardinality
|
256
|
+
#
|
257
|
+
# # The property that determines the class that a qualified object cardinality restriction refers to.
|
258
|
+
# # @return [RDF::Vocabulary::Term]
|
259
|
+
# attr_reader :onClass
|
260
|
+
#
|
261
|
+
# # The property that determines the data range that a qualified data cardinality restriction refers to.
|
262
|
+
# # @return [RDF::Vocabulary::Term]
|
263
|
+
# attr_reader :onDataRange
|
264
|
+
#
|
265
|
+
# # The property that determines the datatype that a datatype restriction refers to.
|
266
|
+
# # @return [RDF::Vocabulary::Term]
|
267
|
+
# attr_reader :onDatatype
|
268
|
+
#
|
269
|
+
# # The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to.
|
270
|
+
# # @return [RDF::Vocabulary::Term]
|
271
|
+
# attr_reader :onProperties
|
272
|
+
#
|
273
|
+
# # The property that determines the property that a property restriction refers to.
|
274
|
+
# # @return [RDF::Vocabulary::Term]
|
275
|
+
# attr_reader :onProperty
|
276
|
+
#
|
277
|
+
# # The property that determines the collection of individuals or data values that build an enumeration.
|
278
|
+
# # @return [RDF::Vocabulary::Term]
|
279
|
+
# attr_reader :oneOf
|
280
|
+
#
|
281
|
+
# # The annotation property that indicates the predecessor ontology of a given ontology.
|
282
|
+
# # @return [RDF::Vocabulary::Term]
|
283
|
+
# attr_reader :priorVersion
|
284
|
+
#
|
285
|
+
# # The property that determines the n-tuple of properties that build a sub property chain of a given property.
|
286
|
+
# # @return [RDF::Vocabulary::Term]
|
287
|
+
# attr_reader :propertyChainAxiom
|
288
|
+
#
|
289
|
+
# # The property that determines that two given properties are disjoint.
|
290
|
+
# # @return [RDF::Vocabulary::Term]
|
291
|
+
# attr_reader :propertyDisjointWith
|
292
|
+
#
|
293
|
+
# # The property that determines the cardinality of an exact qualified cardinality restriction.
|
294
|
+
# # @return [RDF::Vocabulary::Term]
|
295
|
+
# attr_reader :qualifiedCardinality
|
296
|
+
#
|
297
|
+
# # The property that determines that two given individuals are equal.
|
298
|
+
# # @return [RDF::Vocabulary::Term]
|
299
|
+
# attr_reader :sameAs
|
300
|
+
#
|
301
|
+
# # The property that determines the class that an existential property restriction refers to.
|
302
|
+
# # @return [RDF::Vocabulary::Term]
|
303
|
+
# attr_reader :someValuesFrom
|
304
|
+
#
|
305
|
+
# # The property that determines the subject of a negative property assertion.
|
306
|
+
# # @return [RDF::Vocabulary::Term]
|
307
|
+
# attr_reader :sourceIndividual
|
308
|
+
#
|
309
|
+
# # The property that determines the object of a negative object property assertion.
|
310
|
+
# # @return [RDF::Vocabulary::Term]
|
311
|
+
# attr_reader :targetIndividual
|
312
|
+
#
|
313
|
+
# # The property that determines the value of a negative data property assertion.
|
314
|
+
# # @return [RDF::Vocabulary::Term]
|
315
|
+
# attr_reader :targetValue
|
316
|
+
#
|
317
|
+
# # The data property that relates every individual to every data value.
|
318
|
+
# # @return [RDF::Vocabulary::Term]
|
319
|
+
# attr_reader :topDataProperty
|
320
|
+
#
|
321
|
+
# # The object property that relates every two individuals.
|
322
|
+
# # @return [RDF::Vocabulary::Term]
|
323
|
+
# attr_reader :topObjectProperty
|
324
|
+
#
|
325
|
+
# # The property that determines the collection of classes or data ranges that build a union.
|
326
|
+
# # @return [RDF::Vocabulary::Term]
|
327
|
+
# attr_reader :unionOf
|
328
|
+
#
|
329
|
+
# # The property that identifies the version IRI of an ontology.
|
330
|
+
# # @return [RDF::Vocabulary::Term]
|
331
|
+
# attr_reader :versionIRI
|
332
|
+
#
|
333
|
+
# # The annotation property that provides version information for an ontology or another OWL construct.
|
334
|
+
# # @return [RDF::Vocabulary::Term]
|
335
|
+
# attr_reader :versionInfo
|
336
|
+
#
|
337
|
+
# # The property that determines the collection of facet-value pairs that define a datatype restriction.
|
338
|
+
# # @return [RDF::Vocabulary::Term]
|
339
|
+
# attr_reader :withRestrictions
|
340
|
+
#
|
26
341
|
# end
|
27
|
-
|
342
|
+
OWL = Class.new(RDF::StrictVocabulary("http://www.w3.org/2002/07/owl#")) do
|
28
343
|
|
29
344
|
# Ontology definition
|
30
|
-
ontology :"http://www.w3.org/2002/07/owl",
|
345
|
+
ontology :"http://www.w3.org/2002/07/owl#",
|
31
346
|
comment: %(
|
32
347
|
This ontology partially describes the built-in classes and
|
33
348
|
properties that together form the basis of the RDF/XML syntax of OWL 2.
|
@@ -29,169 +344,169 @@ module RDF
|
|
29
344
|
will cause it to become an OWL 2 Full ontology and may have other,
|
30
345
|
unexpected, consequences.
|
31
346
|
).freeze,
|
32
|
-
"dc11:title":
|
33
|
-
"http://www.w3.org/2003/g/data-view#namespaceTransformation":
|
34
|
-
|
35
|
-
"owl:
|
36
|
-
"owl:
|
37
|
-
|
38
|
-
"rdfs:seeAlso": [
|
347
|
+
"dc11:title": "The OWL 2 Schema vocabulary (OWL 2)".freeze,
|
348
|
+
"http://www.w3.org/2003/g/data-view#namespaceTransformation": "http://dev.w3.org/cvsweb/2009/owl-grddl/owx2rdf.xsl".freeze,
|
349
|
+
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],
|
350
|
+
"owl:imports": "http://www.w3.org/2000/01/rdf-schema".freeze,
|
351
|
+
"owl:versionIRI": "http://www.w3.org/2002/07/owl".freeze,
|
352
|
+
"owl:versionInfo": "$Date: 2009/11/15 10:54:12 $".freeze,
|
353
|
+
"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
354
|
type: "owl:Ontology".freeze
|
40
355
|
|
41
356
|
# Class definitions
|
42
357
|
term :AllDifferent,
|
43
358
|
comment: %(The class of collections of pairwise different individuals.).freeze,
|
359
|
+
isDefinedBy: "owl:".freeze,
|
44
360
|
label: "AllDifferent".freeze,
|
45
|
-
isDefinedBy: %(owl:).freeze,
|
46
361
|
subClassOf: "rdfs:Resource".freeze,
|
47
362
|
type: "rdfs:Class".freeze
|
48
363
|
term :AllDisjointClasses,
|
49
364
|
comment: %(The class of collections of pairwise disjoint classes.).freeze,
|
365
|
+
isDefinedBy: "owl:".freeze,
|
50
366
|
label: "AllDisjointClasses".freeze,
|
51
|
-
isDefinedBy: %(owl:).freeze,
|
52
367
|
subClassOf: "rdfs:Resource".freeze,
|
53
368
|
type: "rdfs:Class".freeze
|
54
369
|
term :AllDisjointProperties,
|
55
370
|
comment: %(The class of collections of pairwise disjoint properties.).freeze,
|
371
|
+
isDefinedBy: "owl:".freeze,
|
56
372
|
label: "AllDisjointProperties".freeze,
|
57
|
-
isDefinedBy: %(owl:).freeze,
|
58
373
|
subClassOf: "rdfs:Resource".freeze,
|
59
374
|
type: "rdfs:Class".freeze
|
60
375
|
term :Annotation,
|
61
376
|
comment: %(The class of annotated annotations for which the RDF serialization consists of an annotated subject, predicate and object.).freeze,
|
377
|
+
isDefinedBy: "owl:".freeze,
|
62
378
|
label: "Annotation".freeze,
|
63
|
-
isDefinedBy: %(owl:).freeze,
|
64
379
|
subClassOf: "rdfs:Resource".freeze,
|
65
380
|
type: "rdfs:Class".freeze
|
66
381
|
term :AnnotationProperty,
|
67
382
|
comment: %(The class of annotation properties.).freeze,
|
383
|
+
isDefinedBy: "owl:".freeze,
|
68
384
|
label: "AnnotationProperty".freeze,
|
69
|
-
isDefinedBy: %(owl:).freeze,
|
70
385
|
subClassOf: "rdf:Property".freeze,
|
71
386
|
type: "rdfs:Class".freeze
|
72
387
|
term :AsymmetricProperty,
|
73
388
|
comment: %(The class of asymmetric properties.).freeze,
|
389
|
+
isDefinedBy: "owl:".freeze,
|
74
390
|
label: "AsymmetricProperty".freeze,
|
75
|
-
isDefinedBy: %(owl:).freeze,
|
76
391
|
subClassOf: "owl:ObjectProperty".freeze,
|
77
392
|
type: "rdfs:Class".freeze
|
78
393
|
term :Axiom,
|
79
394
|
comment: %(The class of annotated axioms for which the RDF serialization consists of an annotated subject, predicate and object.).freeze,
|
395
|
+
isDefinedBy: "owl:".freeze,
|
80
396
|
label: "Axiom".freeze,
|
81
|
-
isDefinedBy: %(owl:).freeze,
|
82
397
|
subClassOf: "rdfs:Resource".freeze,
|
83
398
|
type: "rdfs:Class".freeze
|
84
399
|
term :Class,
|
85
400
|
comment: %(The class of OWL classes.).freeze,
|
401
|
+
isDefinedBy: "owl:".freeze,
|
86
402
|
label: "Class".freeze,
|
87
|
-
isDefinedBy: %(owl:).freeze,
|
88
403
|
subClassOf: "rdfs:Class".freeze,
|
89
404
|
type: "rdfs:Class".freeze
|
90
405
|
term :DataRange,
|
91
406
|
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,
|
407
|
+
isDefinedBy: "owl:".freeze,
|
92
408
|
label: "DataRange".freeze,
|
93
|
-
isDefinedBy: %(owl:).freeze,
|
94
409
|
subClassOf: "rdfs:Datatype".freeze,
|
95
410
|
type: "rdfs:Class".freeze
|
96
411
|
term :DatatypeProperty,
|
97
412
|
comment: %(The class of data properties.).freeze,
|
413
|
+
isDefinedBy: "owl:".freeze,
|
98
414
|
label: "DatatypeProperty".freeze,
|
99
|
-
isDefinedBy: %(owl:).freeze,
|
100
415
|
subClassOf: "rdf:Property".freeze,
|
101
416
|
type: "rdfs:Class".freeze
|
102
417
|
term :DeprecatedClass,
|
103
418
|
comment: %(The class of deprecated classes.).freeze,
|
419
|
+
isDefinedBy: "owl:".freeze,
|
104
420
|
label: "DeprecatedClass".freeze,
|
105
|
-
isDefinedBy: %(owl:).freeze,
|
106
421
|
subClassOf: "rdfs:Class".freeze,
|
107
422
|
type: "rdfs:Class".freeze
|
108
423
|
term :DeprecatedProperty,
|
109
424
|
comment: %(The class of deprecated properties.).freeze,
|
425
|
+
isDefinedBy: "owl:".freeze,
|
110
426
|
label: "DeprecatedProperty".freeze,
|
111
|
-
isDefinedBy: %(owl:).freeze,
|
112
427
|
subClassOf: "rdf:Property".freeze,
|
113
428
|
type: "rdfs:Class".freeze
|
114
429
|
term :FunctionalProperty,
|
115
430
|
comment: %(The class of functional properties.).freeze,
|
431
|
+
isDefinedBy: "owl:".freeze,
|
116
432
|
label: "FunctionalProperty".freeze,
|
117
|
-
isDefinedBy: %(owl:).freeze,
|
118
433
|
subClassOf: "rdf:Property".freeze,
|
119
434
|
type: "rdfs:Class".freeze
|
120
435
|
term :InverseFunctionalProperty,
|
121
436
|
comment: %(The class of inverse-functional properties.).freeze,
|
437
|
+
isDefinedBy: "owl:".freeze,
|
122
438
|
label: "InverseFunctionalProperty".freeze,
|
123
|
-
isDefinedBy: %(owl:).freeze,
|
124
439
|
subClassOf: "owl:ObjectProperty".freeze,
|
125
440
|
type: "rdfs:Class".freeze
|
126
441
|
term :IrreflexiveProperty,
|
127
442
|
comment: %(The class of irreflexive properties.).freeze,
|
443
|
+
isDefinedBy: "owl:".freeze,
|
128
444
|
label: "IrreflexiveProperty".freeze,
|
129
|
-
isDefinedBy: %(owl:).freeze,
|
130
445
|
subClassOf: "owl:ObjectProperty".freeze,
|
131
446
|
type: "rdfs:Class".freeze
|
132
447
|
term :NamedIndividual,
|
133
448
|
comment: %(The class of named individuals.).freeze,
|
449
|
+
isDefinedBy: "owl:".freeze,
|
134
450
|
label: "NamedIndividual".freeze,
|
135
|
-
isDefinedBy: %(owl:).freeze,
|
136
451
|
subClassOf: "owl:Thing".freeze,
|
137
452
|
type: "rdfs:Class".freeze
|
138
453
|
term :NegativePropertyAssertion,
|
139
454
|
comment: %(The class of negative property assertions.).freeze,
|
455
|
+
isDefinedBy: "owl:".freeze,
|
140
456
|
label: "NegativePropertyAssertion".freeze,
|
141
|
-
isDefinedBy: %(owl:).freeze,
|
142
457
|
subClassOf: "rdfs:Resource".freeze,
|
143
458
|
type: "rdfs:Class".freeze
|
144
459
|
term :Nothing,
|
145
460
|
comment: %(This is the empty class.).freeze,
|
461
|
+
isDefinedBy: "owl:".freeze,
|
146
462
|
label: "Nothing".freeze,
|
147
|
-
isDefinedBy: %(owl:).freeze,
|
148
463
|
subClassOf: "owl:Thing".freeze,
|
149
464
|
type: "owl:Class".freeze
|
150
465
|
term :ObjectProperty,
|
151
466
|
comment: %(The class of object properties.).freeze,
|
467
|
+
isDefinedBy: "owl:".freeze,
|
152
468
|
label: "ObjectProperty".freeze,
|
153
|
-
isDefinedBy: %(owl:).freeze,
|
154
469
|
subClassOf: "rdf:Property".freeze,
|
155
470
|
type: "rdfs:Class".freeze
|
156
471
|
term :Ontology,
|
157
472
|
comment: %(The class of ontologies.).freeze,
|
473
|
+
isDefinedBy: "owl:".freeze,
|
158
474
|
label: "Ontology".freeze,
|
159
|
-
isDefinedBy: %(owl:).freeze,
|
160
475
|
subClassOf: "rdfs:Resource".freeze,
|
161
476
|
type: "rdfs:Class".freeze
|
162
477
|
term :OntologyProperty,
|
163
478
|
comment: %(The class of ontology properties.).freeze,
|
479
|
+
isDefinedBy: "owl:".freeze,
|
164
480
|
label: "OntologyProperty".freeze,
|
165
|
-
isDefinedBy: %(owl:).freeze,
|
166
481
|
subClassOf: "rdf:Property".freeze,
|
167
482
|
type: "rdfs:Class".freeze
|
168
483
|
term :ReflexiveProperty,
|
169
484
|
comment: %(The class of reflexive properties.).freeze,
|
485
|
+
isDefinedBy: "owl:".freeze,
|
170
486
|
label: "ReflexiveProperty".freeze,
|
171
|
-
isDefinedBy: %(owl:).freeze,
|
172
487
|
subClassOf: "owl:ObjectProperty".freeze,
|
173
488
|
type: "rdfs:Class".freeze
|
174
489
|
term :Restriction,
|
175
490
|
comment: %(The class of property restrictions.).freeze,
|
491
|
+
isDefinedBy: "owl:".freeze,
|
176
492
|
label: "Restriction".freeze,
|
177
|
-
isDefinedBy: %(owl:).freeze,
|
178
493
|
subClassOf: "owl:Class".freeze,
|
179
494
|
type: "rdfs:Class".freeze
|
180
495
|
term :SymmetricProperty,
|
181
496
|
comment: %(The class of symmetric properties.).freeze,
|
497
|
+
isDefinedBy: "owl:".freeze,
|
182
498
|
label: "SymmetricProperty".freeze,
|
183
|
-
isDefinedBy: %(owl:).freeze,
|
184
499
|
subClassOf: "owl:ObjectProperty".freeze,
|
185
500
|
type: "rdfs:Class".freeze
|
186
501
|
term :Thing,
|
187
502
|
comment: %(The class of OWL individuals.).freeze,
|
503
|
+
isDefinedBy: "owl:".freeze,
|
188
504
|
label: "Thing".freeze,
|
189
|
-
isDefinedBy: %(owl:).freeze,
|
190
505
|
type: "owl:Class".freeze
|
191
506
|
term :TransitiveProperty,
|
192
507
|
comment: %(The class of transitive properties.).freeze,
|
508
|
+
isDefinedBy: "owl:".freeze,
|
193
509
|
label: "TransitiveProperty".freeze,
|
194
|
-
isDefinedBy: %(owl:).freeze,
|
195
510
|
subClassOf: "owl:ObjectProperty".freeze,
|
196
511
|
type: "rdfs:Class".freeze
|
197
512
|
|
@@ -199,359 +514,359 @@ module RDF
|
|
199
514
|
property :allValuesFrom,
|
200
515
|
comment: %(The property that determines the class that a universal property restriction refers to.).freeze,
|
201
516
|
domain: "owl:Restriction".freeze,
|
517
|
+
isDefinedBy: "owl:".freeze,
|
202
518
|
label: "allValuesFrom".freeze,
|
203
519
|
range: "rdfs:Class".freeze,
|
204
|
-
isDefinedBy: %(owl:).freeze,
|
205
520
|
type: "rdf:Property".freeze
|
206
521
|
property :annotatedProperty,
|
207
522
|
comment: %(The property that determines the predicate of an annotated axiom or annotated annotation.).freeze,
|
208
523
|
domain: "rdfs:Resource".freeze,
|
524
|
+
isDefinedBy: "owl:".freeze,
|
209
525
|
label: "annotatedProperty".freeze,
|
210
526
|
range: "rdfs:Resource".freeze,
|
211
|
-
isDefinedBy: %(owl:).freeze,
|
212
527
|
type: "rdf:Property".freeze
|
213
528
|
property :annotatedSource,
|
214
529
|
comment: %(The property that determines the subject of an annotated axiom or annotated annotation.).freeze,
|
215
530
|
domain: "rdfs:Resource".freeze,
|
531
|
+
isDefinedBy: "owl:".freeze,
|
216
532
|
label: "annotatedSource".freeze,
|
217
533
|
range: "rdfs:Resource".freeze,
|
218
|
-
isDefinedBy: %(owl:).freeze,
|
219
534
|
type: "rdf:Property".freeze
|
220
535
|
property :annotatedTarget,
|
221
536
|
comment: %(The property that determines the object of an annotated axiom or annotated annotation.).freeze,
|
222
537
|
domain: "rdfs:Resource".freeze,
|
538
|
+
isDefinedBy: "owl:".freeze,
|
223
539
|
label: "annotatedTarget".freeze,
|
224
540
|
range: "rdfs:Resource".freeze,
|
225
|
-
isDefinedBy: %(owl:).freeze,
|
226
541
|
type: "rdf:Property".freeze
|
227
542
|
property :assertionProperty,
|
228
543
|
comment: %(The property that determines the predicate of a negative property assertion.).freeze,
|
229
544
|
domain: "owl:NegativePropertyAssertion".freeze,
|
545
|
+
isDefinedBy: "owl:".freeze,
|
230
546
|
label: "assertionProperty".freeze,
|
231
547
|
range: "rdf:Property".freeze,
|
232
|
-
isDefinedBy: %(owl:).freeze,
|
233
548
|
type: "rdf:Property".freeze
|
234
549
|
property :backwardCompatibleWith,
|
235
550
|
comment: %(The annotation property that indicates that a given ontology is backward compatible with another ontology.).freeze,
|
236
551
|
domain: "owl:Ontology".freeze,
|
552
|
+
isDefinedBy: "owl:".freeze,
|
237
553
|
label: "backwardCompatibleWith".freeze,
|
238
554
|
range: "owl:Ontology".freeze,
|
239
|
-
isDefinedBy: %(owl:).freeze,
|
240
555
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
241
556
|
property :bottomDataProperty,
|
242
557
|
comment: %(The data property that does not relate any individual to any data value.).freeze,
|
243
558
|
domain: "owl:Thing".freeze,
|
559
|
+
isDefinedBy: "owl:".freeze,
|
244
560
|
label: "bottomDataProperty".freeze,
|
245
561
|
range: "rdfs:Literal".freeze,
|
246
|
-
isDefinedBy: %(owl:).freeze,
|
247
562
|
type: "owl:DatatypeProperty".freeze
|
248
563
|
property :bottomObjectProperty,
|
249
564
|
comment: %(The object property that does not relate any two individuals.).freeze,
|
250
565
|
domain: "owl:Thing".freeze,
|
566
|
+
isDefinedBy: "owl:".freeze,
|
251
567
|
label: "bottomObjectProperty".freeze,
|
252
568
|
range: "owl:Thing".freeze,
|
253
|
-
isDefinedBy: %(owl:).freeze,
|
254
569
|
type: "owl:ObjectProperty".freeze
|
255
570
|
property :cardinality,
|
256
571
|
comment: %(The property that determines the cardinality of an exact cardinality restriction.).freeze,
|
257
572
|
domain: "owl:Restriction".freeze,
|
573
|
+
isDefinedBy: "owl:".freeze,
|
258
574
|
label: "cardinality".freeze,
|
259
575
|
range: "xsd:nonNegativeInteger".freeze,
|
260
|
-
isDefinedBy: %(owl:).freeze,
|
261
576
|
type: "rdf:Property".freeze
|
262
577
|
property :complementOf,
|
263
578
|
comment: %(The property that determines that a given class is the complement of another class.).freeze,
|
264
579
|
domain: "owl:Class".freeze,
|
580
|
+
isDefinedBy: "owl:".freeze,
|
265
581
|
label: "complementOf".freeze,
|
266
582
|
range: "owl:Class".freeze,
|
267
|
-
isDefinedBy: %(owl:).freeze,
|
268
583
|
type: "rdf:Property".freeze
|
269
584
|
property :datatypeComplementOf,
|
270
585
|
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
586
|
domain: "rdfs:Datatype".freeze,
|
587
|
+
isDefinedBy: "owl:".freeze,
|
272
588
|
label: "datatypeComplementOf".freeze,
|
273
589
|
range: "rdfs:Datatype".freeze,
|
274
|
-
isDefinedBy: %(owl:).freeze,
|
275
590
|
type: "rdf:Property".freeze
|
276
591
|
property :deprecated,
|
277
592
|
comment: %(The annotation property that indicates that a given entity has been deprecated.).freeze,
|
278
593
|
domain: "rdfs:Resource".freeze,
|
594
|
+
isDefinedBy: "owl:".freeze,
|
279
595
|
label: "deprecated".freeze,
|
280
596
|
range: "rdfs:Resource".freeze,
|
281
|
-
isDefinedBy: %(owl:).freeze,
|
282
597
|
type: "owl:AnnotationProperty".freeze
|
283
598
|
property :differentFrom,
|
284
599
|
comment: %(The property that determines that two given individuals are different.).freeze,
|
285
600
|
domain: "owl:Thing".freeze,
|
601
|
+
isDefinedBy: "owl:".freeze,
|
286
602
|
label: "differentFrom".freeze,
|
287
603
|
range: "owl:Thing".freeze,
|
288
|
-
isDefinedBy: %(owl:).freeze,
|
289
604
|
type: "rdf:Property".freeze
|
290
605
|
property :disjointUnionOf,
|
291
606
|
comment: %(The property that determines that a given class is equivalent to the disjoint union of a collection of other classes.).freeze,
|
292
607
|
domain: "owl:Class".freeze,
|
608
|
+
isDefinedBy: "owl:".freeze,
|
293
609
|
label: "disjointUnionOf".freeze,
|
294
610
|
range: "rdf:List".freeze,
|
295
|
-
isDefinedBy: %(owl:).freeze,
|
296
611
|
type: "rdf:Property".freeze
|
297
612
|
property :disjointWith,
|
298
613
|
comment: %(The property that determines that two given classes are disjoint.).freeze,
|
299
614
|
domain: "owl:Class".freeze,
|
615
|
+
isDefinedBy: "owl:".freeze,
|
300
616
|
label: "disjointWith".freeze,
|
301
617
|
range: "owl:Class".freeze,
|
302
|
-
isDefinedBy: %(owl:).freeze,
|
303
618
|
type: "rdf:Property".freeze
|
304
619
|
property :distinctMembers,
|
305
620
|
comment: %(The property that determines the collection of pairwise different individuals in a owl:AllDifferent axiom.).freeze,
|
306
621
|
domain: "owl:AllDifferent".freeze,
|
622
|
+
isDefinedBy: "owl:".freeze,
|
307
623
|
label: "distinctMembers".freeze,
|
308
624
|
range: "rdf:List".freeze,
|
309
|
-
isDefinedBy: %(owl:).freeze,
|
310
625
|
type: "rdf:Property".freeze
|
311
626
|
property :equivalentClass,
|
312
627
|
comment: %(The property that determines that two given classes are equivalent, and that is used to specify datatype definitions.).freeze,
|
313
628
|
domain: "rdfs:Class".freeze,
|
629
|
+
isDefinedBy: "owl:".freeze,
|
314
630
|
label: "equivalentClass".freeze,
|
315
631
|
range: "rdfs:Class".freeze,
|
316
|
-
isDefinedBy: %(owl:).freeze,
|
317
632
|
type: "rdf:Property".freeze
|
318
633
|
property :equivalentProperty,
|
319
634
|
comment: %(The property that determines that two given properties are equivalent.).freeze,
|
320
635
|
domain: "rdf:Property".freeze,
|
636
|
+
isDefinedBy: "owl:".freeze,
|
321
637
|
label: "equivalentProperty".freeze,
|
322
638
|
range: "rdf:Property".freeze,
|
323
|
-
isDefinedBy: %(owl:).freeze,
|
324
639
|
type: "rdf:Property".freeze
|
325
640
|
property :hasKey,
|
326
641
|
comment: %(The property that determines the collection of properties that jointly build a key.).freeze,
|
327
642
|
domain: "owl:Class".freeze,
|
643
|
+
isDefinedBy: "owl:".freeze,
|
328
644
|
label: "hasKey".freeze,
|
329
645
|
range: "rdf:List".freeze,
|
330
|
-
isDefinedBy: %(owl:).freeze,
|
331
646
|
type: "rdf:Property".freeze
|
332
647
|
property :hasSelf,
|
333
648
|
comment: %(The property that determines the property that a self restriction refers to.).freeze,
|
334
649
|
domain: "owl:Restriction".freeze,
|
650
|
+
isDefinedBy: "owl:".freeze,
|
335
651
|
label: "hasSelf".freeze,
|
336
652
|
range: "rdfs:Resource".freeze,
|
337
|
-
isDefinedBy: %(owl:).freeze,
|
338
653
|
type: "rdf:Property".freeze
|
339
654
|
property :hasValue,
|
340
655
|
comment: %(The property that determines the individual that a has-value restriction refers to.).freeze,
|
341
656
|
domain: "owl:Restriction".freeze,
|
657
|
+
isDefinedBy: "owl:".freeze,
|
342
658
|
label: "hasValue".freeze,
|
343
659
|
range: "rdfs:Resource".freeze,
|
344
|
-
isDefinedBy: %(owl:).freeze,
|
345
660
|
type: "rdf:Property".freeze
|
346
661
|
property :imports,
|
347
662
|
comment: %(The property that is used for importing other ontologies into a given ontology.).freeze,
|
348
663
|
domain: "owl:Ontology".freeze,
|
664
|
+
isDefinedBy: "owl:".freeze,
|
349
665
|
label: "imports".freeze,
|
350
666
|
range: "owl:Ontology".freeze,
|
351
|
-
isDefinedBy: %(owl:).freeze,
|
352
667
|
type: "owl:OntologyProperty".freeze
|
353
668
|
property :incompatibleWith,
|
354
669
|
comment: %(The annotation property that indicates that a given ontology is incompatible with another ontology.).freeze,
|
355
670
|
domain: "owl:Ontology".freeze,
|
671
|
+
isDefinedBy: "owl:".freeze,
|
356
672
|
label: "incompatibleWith".freeze,
|
357
673
|
range: "owl:Ontology".freeze,
|
358
|
-
isDefinedBy: %(owl:).freeze,
|
359
674
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
360
675
|
property :intersectionOf,
|
361
676
|
comment: %(The property that determines the collection of classes or data ranges that build an intersection.).freeze,
|
362
677
|
domain: "rdfs:Class".freeze,
|
678
|
+
isDefinedBy: "owl:".freeze,
|
363
679
|
label: "intersectionOf".freeze,
|
364
680
|
range: "rdf:List".freeze,
|
365
|
-
isDefinedBy: %(owl:).freeze,
|
366
681
|
type: "rdf:Property".freeze
|
367
682
|
property :inverseOf,
|
368
683
|
comment: %(The property that determines that two given properties are inverse.).freeze,
|
369
684
|
domain: "owl:ObjectProperty".freeze,
|
685
|
+
isDefinedBy: "owl:".freeze,
|
370
686
|
label: "inverseOf".freeze,
|
371
687
|
range: "owl:ObjectProperty".freeze,
|
372
|
-
isDefinedBy: %(owl:).freeze,
|
373
688
|
type: "rdf:Property".freeze
|
374
689
|
property :maxCardinality,
|
375
690
|
comment: %(The property that determines the cardinality of a maximum cardinality restriction.).freeze,
|
376
691
|
domain: "owl:Restriction".freeze,
|
692
|
+
isDefinedBy: "owl:".freeze,
|
377
693
|
label: "maxCardinality".freeze,
|
378
694
|
range: "xsd:nonNegativeInteger".freeze,
|
379
|
-
isDefinedBy: %(owl:).freeze,
|
380
695
|
type: "rdf:Property".freeze
|
381
696
|
property :maxQualifiedCardinality,
|
382
697
|
comment: %(The property that determines the cardinality of a maximum qualified cardinality restriction.).freeze,
|
383
698
|
domain: "owl:Restriction".freeze,
|
699
|
+
isDefinedBy: "owl:".freeze,
|
384
700
|
label: "maxQualifiedCardinality".freeze,
|
385
701
|
range: "xsd:nonNegativeInteger".freeze,
|
386
|
-
isDefinedBy: %(owl:).freeze,
|
387
702
|
type: "rdf:Property".freeze
|
388
703
|
property :members,
|
389
704
|
comment: %(The property that determines the collection of members in either a owl:AllDifferent, owl:AllDisjointClasses or owl:AllDisjointProperties axiom.).freeze,
|
390
705
|
domain: "rdfs:Resource".freeze,
|
706
|
+
isDefinedBy: "owl:".freeze,
|
391
707
|
label: "members".freeze,
|
392
708
|
range: "rdf:List".freeze,
|
393
|
-
isDefinedBy: %(owl:).freeze,
|
394
709
|
type: "rdf:Property".freeze
|
395
710
|
property :minCardinality,
|
396
711
|
comment: %(The property that determines the cardinality of a minimum cardinality restriction.).freeze,
|
397
712
|
domain: "owl:Restriction".freeze,
|
713
|
+
isDefinedBy: "owl:".freeze,
|
398
714
|
label: "minCardinality".freeze,
|
399
715
|
range: "xsd:nonNegativeInteger".freeze,
|
400
|
-
isDefinedBy: %(owl:).freeze,
|
401
716
|
type: "rdf:Property".freeze
|
402
717
|
property :minQualifiedCardinality,
|
403
718
|
comment: %(The property that determines the cardinality of a minimum qualified cardinality restriction.).freeze,
|
404
719
|
domain: "owl:Restriction".freeze,
|
720
|
+
isDefinedBy: "owl:".freeze,
|
405
721
|
label: "minQualifiedCardinality".freeze,
|
406
722
|
range: "xsd:nonNegativeInteger".freeze,
|
407
|
-
isDefinedBy: %(owl:).freeze,
|
408
723
|
type: "rdf:Property".freeze
|
409
724
|
property :onClass,
|
410
725
|
comment: %(The property that determines the class that a qualified object cardinality restriction refers to.).freeze,
|
411
726
|
domain: "owl:Restriction".freeze,
|
727
|
+
isDefinedBy: "owl:".freeze,
|
412
728
|
label: "onClass".freeze,
|
413
729
|
range: "owl:Class".freeze,
|
414
|
-
isDefinedBy: %(owl:).freeze,
|
415
730
|
type: "rdf:Property".freeze
|
416
731
|
property :onDataRange,
|
417
732
|
comment: %(The property that determines the data range that a qualified data cardinality restriction refers to.).freeze,
|
418
733
|
domain: "owl:Restriction".freeze,
|
734
|
+
isDefinedBy: "owl:".freeze,
|
419
735
|
label: "onDataRange".freeze,
|
420
736
|
range: "rdfs:Datatype".freeze,
|
421
|
-
isDefinedBy: %(owl:).freeze,
|
422
737
|
type: "rdf:Property".freeze
|
423
738
|
property :onDatatype,
|
424
739
|
comment: %(The property that determines the datatype that a datatype restriction refers to.).freeze,
|
425
740
|
domain: "rdfs:Datatype".freeze,
|
741
|
+
isDefinedBy: "owl:".freeze,
|
426
742
|
label: "onDatatype".freeze,
|
427
743
|
range: "rdfs:Datatype".freeze,
|
428
|
-
isDefinedBy: %(owl:).freeze,
|
429
744
|
type: "rdf:Property".freeze
|
430
745
|
property :onProperties,
|
431
746
|
comment: %(The property that determines the n-tuple of properties that a property restriction on an n-ary data range refers to.).freeze,
|
432
747
|
domain: "owl:Restriction".freeze,
|
748
|
+
isDefinedBy: "owl:".freeze,
|
433
749
|
label: "onProperties".freeze,
|
434
750
|
range: "rdf:List".freeze,
|
435
|
-
isDefinedBy: %(owl:).freeze,
|
436
751
|
type: "rdf:Property".freeze
|
437
752
|
property :onProperty,
|
438
753
|
comment: %(The property that determines the property that a property restriction refers to.).freeze,
|
439
754
|
domain: "owl:Restriction".freeze,
|
755
|
+
isDefinedBy: "owl:".freeze,
|
440
756
|
label: "onProperty".freeze,
|
441
757
|
range: "rdf:Property".freeze,
|
442
|
-
isDefinedBy: %(owl:).freeze,
|
443
758
|
type: "rdf:Property".freeze
|
444
759
|
property :oneOf,
|
445
760
|
comment: %(The property that determines the collection of individuals or data values that build an enumeration.).freeze,
|
446
761
|
domain: "rdfs:Class".freeze,
|
762
|
+
isDefinedBy: "owl:".freeze,
|
447
763
|
label: "oneOf".freeze,
|
448
764
|
range: "rdf:List".freeze,
|
449
|
-
isDefinedBy: %(owl:).freeze,
|
450
765
|
type: "rdf:Property".freeze
|
451
766
|
property :priorVersion,
|
452
767
|
comment: %(The annotation property that indicates the predecessor ontology of a given ontology.).freeze,
|
453
768
|
domain: "owl:Ontology".freeze,
|
769
|
+
isDefinedBy: "owl:".freeze,
|
454
770
|
label: "priorVersion".freeze,
|
455
771
|
range: "owl:Ontology".freeze,
|
456
|
-
isDefinedBy: %(owl:).freeze,
|
457
772
|
type: ["owl:AnnotationProperty".freeze, "owl:OntologyProperty".freeze]
|
458
773
|
property :propertyChainAxiom,
|
459
774
|
comment: %(The property that determines the n-tuple of properties that build a sub property chain of a given property.).freeze,
|
460
775
|
domain: "owl:ObjectProperty".freeze,
|
776
|
+
isDefinedBy: "owl:".freeze,
|
461
777
|
label: "propertyChainAxiom".freeze,
|
462
778
|
range: "rdf:List".freeze,
|
463
|
-
isDefinedBy: %(owl:).freeze,
|
464
779
|
type: "rdf:Property".freeze
|
465
780
|
property :propertyDisjointWith,
|
466
781
|
comment: %(The property that determines that two given properties are disjoint.).freeze,
|
467
782
|
domain: "rdf:Property".freeze,
|
783
|
+
isDefinedBy: "owl:".freeze,
|
468
784
|
label: "propertyDisjointWith".freeze,
|
469
785
|
range: "rdf:Property".freeze,
|
470
|
-
isDefinedBy: %(owl:).freeze,
|
471
786
|
type: "rdf:Property".freeze
|
472
787
|
property :qualifiedCardinality,
|
473
788
|
comment: %(The property that determines the cardinality of an exact qualified cardinality restriction.).freeze,
|
474
789
|
domain: "owl:Restriction".freeze,
|
790
|
+
isDefinedBy: "owl:".freeze,
|
475
791
|
label: "qualifiedCardinality".freeze,
|
476
792
|
range: "xsd:nonNegativeInteger".freeze,
|
477
|
-
isDefinedBy: %(owl:).freeze,
|
478
793
|
type: "rdf:Property".freeze
|
479
794
|
property :sameAs,
|
480
795
|
comment: %(The property that determines that two given individuals are equal.).freeze,
|
481
796
|
domain: "owl:Thing".freeze,
|
797
|
+
isDefinedBy: "owl:".freeze,
|
482
798
|
label: "sameAs".freeze,
|
483
799
|
range: "owl:Thing".freeze,
|
484
|
-
isDefinedBy: %(owl:).freeze,
|
485
800
|
type: "rdf:Property".freeze
|
486
801
|
property :someValuesFrom,
|
487
802
|
comment: %(The property that determines the class that an existential property restriction refers to.).freeze,
|
488
803
|
domain: "owl:Restriction".freeze,
|
804
|
+
isDefinedBy: "owl:".freeze,
|
489
805
|
label: "someValuesFrom".freeze,
|
490
806
|
range: "rdfs:Class".freeze,
|
491
|
-
isDefinedBy: %(owl:).freeze,
|
492
807
|
type: "rdf:Property".freeze
|
493
808
|
property :sourceIndividual,
|
494
809
|
comment: %(The property that determines the subject of a negative property assertion.).freeze,
|
495
810
|
domain: "owl:NegativePropertyAssertion".freeze,
|
811
|
+
isDefinedBy: "owl:".freeze,
|
496
812
|
label: "sourceIndividual".freeze,
|
497
813
|
range: "owl:Thing".freeze,
|
498
|
-
isDefinedBy: %(owl:).freeze,
|
499
814
|
type: "rdf:Property".freeze
|
500
815
|
property :targetIndividual,
|
501
816
|
comment: %(The property that determines the object of a negative object property assertion.).freeze,
|
502
817
|
domain: "owl:NegativePropertyAssertion".freeze,
|
818
|
+
isDefinedBy: "owl:".freeze,
|
503
819
|
label: "targetIndividual".freeze,
|
504
820
|
range: "owl:Thing".freeze,
|
505
|
-
isDefinedBy: %(owl:).freeze,
|
506
821
|
type: "rdf:Property".freeze
|
507
822
|
property :targetValue,
|
508
823
|
comment: %(The property that determines the value of a negative data property assertion.).freeze,
|
509
824
|
domain: "owl:NegativePropertyAssertion".freeze,
|
825
|
+
isDefinedBy: "owl:".freeze,
|
510
826
|
label: "targetValue".freeze,
|
511
827
|
range: "rdfs:Literal".freeze,
|
512
|
-
isDefinedBy: %(owl:).freeze,
|
513
828
|
type: "rdf:Property".freeze
|
514
829
|
property :topDataProperty,
|
515
830
|
comment: %(The data property that relates every individual to every data value.).freeze,
|
516
831
|
domain: "owl:Thing".freeze,
|
832
|
+
isDefinedBy: "owl:".freeze,
|
517
833
|
label: "topDataProperty".freeze,
|
518
834
|
range: "rdfs:Literal".freeze,
|
519
|
-
isDefinedBy: %(owl:).freeze,
|
520
835
|
type: "owl:DatatypeProperty".freeze
|
521
836
|
property :topObjectProperty,
|
522
837
|
comment: %(The object property that relates every two individuals.).freeze,
|
523
838
|
domain: "owl:Thing".freeze,
|
839
|
+
isDefinedBy: "owl:".freeze,
|
524
840
|
label: "topObjectProperty".freeze,
|
525
841
|
range: "owl:Thing".freeze,
|
526
|
-
isDefinedBy: %(owl:).freeze,
|
527
842
|
type: "owl:ObjectProperty".freeze
|
528
843
|
property :unionOf,
|
529
844
|
comment: %(The property that determines the collection of classes or data ranges that build a union.).freeze,
|
530
845
|
domain: "rdfs:Class".freeze,
|
846
|
+
isDefinedBy: "owl:".freeze,
|
531
847
|
label: "unionOf".freeze,
|
532
848
|
range: "rdf:List".freeze,
|
533
|
-
isDefinedBy: %(owl:).freeze,
|
534
849
|
type: "rdf:Property".freeze
|
535
850
|
property :versionIRI,
|
536
851
|
comment: %(The property that identifies the version IRI of an ontology.).freeze,
|
537
852
|
domain: "owl:Ontology".freeze,
|
853
|
+
isDefinedBy: "owl:".freeze,
|
538
854
|
label: "versionIRI".freeze,
|
539
855
|
range: "owl:Ontology".freeze,
|
540
|
-
isDefinedBy: %(owl:).freeze,
|
541
856
|
type: "owl:OntologyProperty".freeze
|
542
857
|
property :versionInfo,
|
543
858
|
comment: %(The annotation property that provides version information for an ontology or another OWL construct.).freeze,
|
544
859
|
domain: "rdfs:Resource".freeze,
|
860
|
+
isDefinedBy: "owl:".freeze,
|
545
861
|
label: "versionInfo".freeze,
|
546
862
|
range: "rdfs:Resource".freeze,
|
547
|
-
isDefinedBy: %(owl:).freeze,
|
548
863
|
type: "owl:AnnotationProperty".freeze
|
549
864
|
property :withRestrictions,
|
550
865
|
comment: %(The property that determines the collection of facet-value pairs that define a datatype restriction.).freeze,
|
551
866
|
domain: "rdfs:Datatype".freeze,
|
867
|
+
isDefinedBy: "owl:".freeze,
|
552
868
|
label: "withRestrictions".freeze,
|
553
869
|
range: "rdf:List".freeze,
|
554
|
-
isDefinedBy: %(owl:).freeze,
|
555
870
|
type: "rdf:Property".freeze
|
556
871
|
end
|
557
872
|
end
|