Answer true if this restriction is a max cardinality restriction (ie is a property restriction
constructed with an owl:maxCardinality operator, or similar).
Answer true if this restriction is a min cardinality restriction (ie is a property restriction
constructed with an owl:minCardinality operator, or similar).
Answer true if this restriction is a property restriction on the given property.
Parameters: prop - A property to test against True if this restriction is a restriction on prop exception: OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.
Answer a view of this restriction as an all values from expression
This class, but viewed as an AllValuesFromRestriction node exception: ConversionException - if the class cannot be converted to an all values from restrictiongiven the lanuage profile and the current state of the underlying model.
Answer a view of this restriction as a cardinality restriction class expression
This class, but viewed as a CardinalityRestriction node exception: ConversionException - if the class cannot be converted to a cardinality restrictiongiven the lanuage profile and the current state of the underlying model.
Answer a view of this restriction as a has value expression
This class, but viewed as a HasValueRestriction node exception: ConversionException - if the class cannot be converted to a has value restrictiongiven the lanuage profile and the current state of the underlying model.
Answer a view of this restriction as a max cardinality restriction class expression
This class, but viewed as a MaxCardinalityRestriction node exception: ConversionException - if the class cannot be converted to a max cardinality restrictiongiven the lanuage profile and the current state of the underlying model.
Answer a view of this restriction as a min cardinality restriction class expression
This class, but viewed as a MinCardinalityRestriction node exception: ConversionException - if the class cannot be converted to a min cardinality restrictiongiven the lanuage profile and the current state of the underlying model.
Answer a view of this restriction as a some values from expression
This class, but viewed as a SomeValuesFromRestriction node exception: ConversionException - if the class cannot be converted to an all values from restrictiongiven the lanuage profile and the current state of the underlying model.
Convert this restriction to an all values from class expression.
Parameters: cls - The class to which all values of the restricted property must belong, to be in theextension of this restriction This class, but converted to a AllValuesFromRestriction class expression exception: ProfileException - if Profile.ALL_VALUES_FROM is not supported in the current profile
Convert this restriction to a cardinality restriction class expression
Parameters: cardinality - The exact cardinality for the restricted property This class, but converted to a CardinalityRestriction node exception: ProfileException - if Profile.CARDINALITY is not supported in the current profile
Convert this restriction to a has value class expression
Parameters: value - The value which the restricted property must have, for resource to bein the extension of this restriction. Can be a resource or a literal. This class, but converted to a HasValueRestriction exception: ProfileException - if Profile.HAS_VALUE is not supported in the current profile
Convert this restriction to a max cardinality restriction class expression
Parameters: cardinality - The maximum cardinality for the restricted property This class, but converted to a MaxCardinalityRestriction node exception: ProfileException - if Profile.MAX_CARDINALITY is not supported in the current profile
Convert this restriction to a min cardinality restriction class expression
Parameters: cardinality - The minimum cardinality for the restricted property This class, but converted to a MinCardinalityRestriction node exception: ProfileException - if Profile.MIN_CARDINALITY is not supported in the current profile
Convert this restriction to a some values from class expression
Parameters: cls - The class to which at least one value of the restricted property must belong, to be in theextension of this restriction This class, but converted to a SomeValuesFromRestriction node exception: ProfileException - if Profile.SOME_VALUES_FROM is not supported in the current profile
Answer the property that this property restriction applies to. If there is
more than one such resource, an arbitrary selection is made (though well-defined property restrictions
should not have more than one onProperty statement.
The property that this property restriction applies to exception: OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.
Answer true if this restriction is a cardinality restriction (ie is a property restriction
constructed with an owl:cardinality operator, or similar). This is not a test for
a restriction that tests cardinalities in general.
True if this is a cardinality property restriction exception: ProfileException - if Profile.CARDINALITY is not supported in the current profile
Answer true if this restriction is a has value restriction
True if this is a hasValue property restriction exception: ProfileException - if Profile.HAS_VALUE is not supported in the current profile
isMaxCardinalityRestriction
public boolean isMaxCardinalityRestriction()(Code)
Answer true if this restriction is a max cardinality restriction (ie is a property restriction
constructed with an owl:maxCardinality operator, or similar). This is not a test for
a restriction that tests cardinalities in general.
public boolean isMinCardinalityRestriction()(Code)
Answer true if this restriction is a min cardinality restriction (ie is a property restriction
constructed with an owl:minCardinality operator, or similar). This is not a test for
a restriction that tests cardinalities in general.
Answer true if this restriction is a property restriction on the given property.
Parameters: prop - A property to test against True if this restriction is a restriction on prop exception: OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.
Assert that the property that this restriction applies to is the given property. Any existing
statements for onProperty will be removed.
Parameters: prop - The property that this restriction applies to exception: OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.