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
# If the URI is the same as the vocabulary namespace, also define it as a term
367
367
props[:""] ||= @ontologyifself.to_s == uri.to_s
@@ -932,23 +932,36 @@ module Term
932
932
attr_reader:vocab
933
933
934
934
# Attributes of this vocabulary term, used for finding `label` and `comment` and to serialize the term back to RDF.
935
+
#
936
+
# Attributes 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.
937
+
#
938
+
# Symbols which are accessors may also be looked up by their associated URI.
939
+
#
940
+
# @note lookup by PName is DEPRECATED and will be removed in a future version.
# Attributes of this vocabulary term, used for finding `label` and `comment` and to serialize the term back to RDF. See {#attributes} and {#properties} for other ways to access.
944
957
# @param [Hash{Symbol => Object}] options
945
958
# Options from {URI#initialize}
946
959
#
947
960
# @overload new(attributes:, **options)
948
961
# @param [Hash{Symbol => Object}] options
949
962
# @param [Vocabulary] vocab Vocabulary of this term.
# Attributes of this vocabulary term, used for finding `label` and `comment` and to serialize the term back to RDF. See {#attributes} and {#properties} for other ways to access.
0 commit comments