You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/rdf/vocab/xsd.rb
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ module RDF
47
47
# # @return [RDF::Vocabulary::Term]
48
48
# attr_reader :Name
49
49
#
50
-
# # QName represents XML qualified names. The ·value space· of QName is the set of tuples {namespace name, local part}, where namespace name is an anyURI and local part is an NCName. The ·lexical space· of QName is the set of strings that ·match· the QName production of [Namespaces in XML].
50
+
# # QName represents XML qualified names. The ·value space· of QName is the set of tuples `{namespace name, local part}`, where namespace name is an anyURI and local part is an NCName. The ·lexical space· of QName is the set of strings that ·match· the QName production of [Namespaces in XML].
51
51
# # @return [RDF::Vocabulary::Term]
52
52
# attr_reader :QName
53
53
#
@@ -139,35 +139,35 @@ module RDF
139
139
# # @return [RDF::Vocabulary::Term]
140
140
# attr_reader :int
141
141
#
142
-
# # integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0 and disallowing the trailing decimal point. This results in the standard mathematical concept of the integer numbers. The ·value space· of integer is the infinite set {...,-2,-1,0,1,2,...}. The ·base type· of integer is decimal.
142
+
# # integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0 and disallowing the trailing decimal point. This results in the standard mathematical concept of the integer numbers. The ·value space· of integer is the infinite set `{...,-2,-1,0,1,2,...}`. The ·base type· of integer is decimal.
143
143
# # @return [RDF::Vocabulary::Term]
144
144
# attr_reader :integer
145
145
#
146
-
# # language represents formal natural language identifiers, as defined by [BCP 47] (currently represented by [RFC 4646] and [RFC 4647]) or its successor(s). The ·value space· and ·lexical space· of language are the set of all strings that conform to the pattern [a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*
146
+
# # language represents formal natural language identifiers, as defined by [BCP 47] (currently represented by [RFC 4646] and [RFC 4647]) or its successor(s). The ·value space· and ·lexical space· of language are the set of all strings that conform to the pattern `[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*`
147
147
# # @return [RDF::Vocabulary::Term]
148
148
# attr_reader :language
149
149
#
150
150
# # long is ·derived· from integer by setting the value of ·maxInclusive· to be 9223372036854775807 and ·minInclusive· to be -9223372036854775808. The ·base type· of long is integer.
151
151
# # @return [RDF::Vocabulary::Term]
152
152
# attr_reader :long
153
153
#
154
-
# # negativeInteger is ·derived· from nonPositiveInteger by setting the value of ·maxInclusive· to be -1. This results in the standard mathematical concept of the negative integers. The ·value space· of negativeInteger is the infinite set {...,-2,-1}. The ·base type· of negativeInteger is nonPositiveInteger.
154
+
# # negativeInteger is ·derived· from nonPositiveInteger by setting the value of ·maxInclusive· to be -1. This results in the standard mathematical concept of the negative integers. The ·value space· of negativeInteger is the infinite set `{...,-2,-1}`. The ·base type· of negativeInteger is nonPositiveInteger.
155
155
# # @return [RDF::Vocabulary::Term]
156
156
# attr_reader :negativeInteger
157
157
#
158
-
# # nonNegativeInteger is ·derived· from integer by setting the value of ·minInclusive· to be 0. This results in the standard mathematical concept of the non-negative integers. The ·value space· of nonNegativeInteger is the infinite set {0,1,2,...}. The ·base type· of nonNegativeInteger is integer.
158
+
# # nonNegativeInteger is ·derived· from integer by setting the value of ·minInclusive· to be 0. This results in the standard mathematical concept of the non-negative integers. The ·value space· of nonNegativeInteger is the infinite set `{0,1,2,...}`. The ·base type· of nonNegativeInteger is integer.
159
159
# # @return [RDF::Vocabulary::Term]
160
160
# attr_reader :nonNegativeInteger
161
161
#
162
-
# # nonPositiveInteger is ·derived· from integer by setting the value of ·maxInclusive· to be 0. This results in the standard mathematical concept of the non-positive integers. The ·value space· of nonPositiveInteger is the infinite set {...,-2,-1,0}. The ·base type· of nonPositiveInteger is integer.
162
+
# # nonPositiveInteger is ·derived· from integer by setting the value of ·maxInclusive· to be 0. This results in the standard mathematical concept of the non-positive integers. The ·value space· of nonPositiveInteger is the infinite set `{...,-2,-1,0}`. The ·base type· of nonPositiveInteger is integer.
163
163
# # @return [RDF::Vocabulary::Term]
164
164
# attr_reader :nonPositiveInteger
165
165
#
166
166
# # normalizedString represents white space normalized strings. The ·value space· of normalizedString is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. The ·lexical space· of normalizedString is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. The ·base type· of normalizedString is string.
167
167
# # @return [RDF::Vocabulary::Term]
168
168
# attr_reader :normalizedString
169
169
#
170
-
# # positiveInteger is ·derived· from nonNegativeInteger by setting the value of ·minInclusive· to be 1. This results in the standard mathematical concept of the positive integer numbers. The ·value space· of positiveInteger is the infinite set {1,2,...}. The ·base type· of positiveInteger is nonNegativeInteger.
170
+
# # positiveInteger is ·derived· from nonNegativeInteger by setting the value of ·minInclusive· to be 1. This results in the standard mathematical concept of the positive integer numbers. The ·value space· of positiveInteger is the infinite set `{1,2,...}`. The ·base type· of positiveInteger is nonNegativeInteger.
Copy file name to clipboardExpand all lines: lib/rdf/vocabulary.rb
+27-9Lines changed: 27 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -766,7 +766,9 @@ def self.camelize(str)
766
766
767
767
# A Vocabulary Term is a {RDF::Resource} that can also act as an {Enumerable} to generate the RDF definition of vocabulary terms as defined within the vocabulary definition.
768
768
#
769
-
# Terms include `attributes` where values a embedded resources, lists or other terms. This allows, for example, navigation of a concept heirarchy.
769
+
# Terms include {Term#attributes} where values a embedded resources, lists or other terms. This allows, for example, navigation of a concept heirarchy.
770
+
#
771
+
# Term attributes can also be accessed using {Term#properties} where the attribute values are transformed into different types of {RDF::Value}. Properties can be indexed by key, where a key is defined (See {Term::ATTR_URIs}), absolute URI, or PName, where the prefix is associated with a loaded vocabulary.
770
772
moduleTerm
771
773
includeRDF::Resource
772
774
@@ -1049,31 +1051,47 @@ def other?
1049
1051
# Enumerate attributes with values transformed into {RDF::Value} instances
1050
1052
# Uses an empty hash with a default_proc which looks up values in attributes.
1051
1053
#
1052
-
# Properties are indexed by symbol. Symbols directly interpreted by a term are the accessors defined for the {RDF::Vocabulary::Term} class. Other keys are interpreted as absolute URIs or PNames for properties defined on this term.
1054
+
# Properties are indexed by symbol. Symbols directly interpreted by a term are the accessors defined for the {RDF::Vocabulary::Term} class, also in {Term::ATTR_URIs}. Other keys are interpreted as absolute URIs or PNames for properties defined on this term.
1053
1055
#
1054
1056
# Symbols which are accessors may also be looked up by their associated URI.
1055
1057
#
1056
1058
# @note lookup by PName is DEPRECATED and will be removed in a future version.
0 commit comments