Method Summary |
|
public AllValuesFromRestriction | asAllValuesFromRestriction() |
public CardinalityRestriction | asCardinalityRestriction() |
public HasValueRestriction | asHasValueRestriction() |
public MaxCardinalityRestriction | asMaxCardinalityRestriction() |
public MinCardinalityRestriction | asMinCardinalityRestriction() |
public SomeValuesFromRestriction | asSomeValuesFromRestriction() |
public AllValuesFromRestriction | convertToAllValuesFromRestriction(Resource cls) |
public CardinalityRestriction | convertToCardinalityRestriction(int cardinality) |
public HasValueRestriction | convertToHasValueRestriction(RDFNode value) 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. |
public MaxCardinalityRestriction | convertToMaxCardinalityRestriction(int cardinality) |
public MinCardinalityRestriction | convertToMinCardinalityRestriction(int cardinality) |
public SomeValuesFromRestriction | convertToSomeValuesFromRestriction(Resource cls) |
public OntProperty | getOnProperty() Answer the property that this property restriction applies to. |
public boolean | isAllValuesFromRestriction() |
public boolean | isCardinalityRestriction() Answer true if this restriction is a cardinality restriction (ie is a property restriction
constructed with an owl:cardinality operator, or similar). |
public boolean | isHasValueRestriction() |
public boolean | isMaxCardinalityRestriction() Answer true if this restriction is a max cardinality restriction (ie is a property restriction
constructed with an owl:maxCardinality operator, or similar). |
public boolean | isMinCardinalityRestriction() Answer true if this restriction is a min cardinality restriction (ie is a property restriction
constructed with an owl:minCardinality operator, or similar). |
public boolean | isSomeValuesFromRestriction() |
public boolean | onProperty(Property prop) 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. |
public void | removeOnProperty(Property prop) Remove the given property as the property that this restriction applies to. |
public void | setOnProperty(Property prop) Assert that the property that this restriction applies to is the given property. |