/** * <p>Answer true if this property is the inverse of the given property.</p> * @param prop A property to test for * @return True if the this property is the inverse of the the given property. */ @Override public boolean isInverseOf( Property prop ) { return hasPropertyValue( getProfile().INVERSE_OF(), "INVERSE_OF", prop ); }
/** * <p>Answer true if the given property is a super-property of this property.</p> * @param prop A property to test. * @param direct If true, only consider the directly adjacent properties in the * property hierarchy * @return True if the given property is a super-property of this property. */ @Override public boolean hasSuperProperty( Property prop, boolean direct ) { return hasPropertyValue( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", prop ); }
/** * <p>Answer true if the given property is a super-property of this property.</p> * @param prop A property to test. * @param direct If true, only consider the directly adjacent properties in the * property hierarchy * @return True if the given property is a super-property of this property. */ @Override public boolean hasSuperProperty( Property prop, boolean direct ) { return hasPropertyValue( getProfile().SUB_PROPERTY_OF(), "SUB_PROPERTY_OF", prop ); }
/** * <p>Answer true if the given resource a class specifying the range of this property.</p> * @param res A resource representing a class * @return True if the given resource is one of the range classes of this property. */ @Override public boolean hasRange( Resource res ) { return hasPropertyValue( getProfile().RANGE(), "RANGE", res ); }
/** * <p>Answer true if the given resource a class specifying the range of this property.</p> * @param res A resource representing a class * @return True if the given resource is one of the range classes of this property. */ @Override public boolean hasRange( Resource res ) { return hasPropertyValue( getProfile().RANGE(), "RANGE", res ); }
/** * <p>Answer true if the given resource a class specifying the domain of this property.</p> * @param res A resource representing a class * @return True if the given resource is one of the domain classes of this property. */ @Override public boolean hasDomain( Resource res ) { return hasPropertyValue( getProfile().DOMAIN(), "DOMAIN", res ); }
/** * <p>Answer true if the given property is equivalent to this property.</p> * @param prop A property to test for * @return True if the given property is equivalent to this property. */ @Override public boolean hasEquivalentProperty( Property prop ) { return hasPropertyValue( getProfile().EQUIVALENT_PROPERTY(), "EQUIVALENT_PROPERTY", prop ); }
/** * <p>Answer true if this property is the inverse of the given property.</p> * @param prop A property to test for * @return True if the this property is the inverse of the the given property. */ @Override public boolean isInverseOf( Property prop ) { return hasPropertyValue( getProfile().INVERSE_OF(), "INVERSE_OF", prop ); }
/** * <p>Answer true if the given resource a class specifying the domain of this property.</p> * @param res A resource representing a class * @return True if the given resource is one of the domain classes of this property. */ @Override public boolean hasDomain( Resource res ) { return hasPropertyValue( getProfile().DOMAIN(), "DOMAIN", res ); }
/** * <p>Answer true if the given property is equivalent to this property.</p> * @param prop A property to test for * @return True if the given property is equivalent to this property. */ @Override public boolean hasEquivalentProperty( Property prop ) { return hasPropertyValue( getProfile().EQUIVALENT_PROPERTY(), "EQUIVALENT_PROPERTY", prop ); }