/** * <p>Answer true if this class is a property restriction</p> * @return True if this is a restriction */ @Override public boolean isRestriction() { checkProfile( getProfile().RESTRICTION(), "RESTRICTION" ); return hasProperty( getProfile().ON_PROPERTY() ) || hasProperty( RDF.type, getProfile().RESTRICTION() ); }
/** * <p>Answer true if this class is a property restriction</p> * @return True if this is a restriction */ @Override public boolean isRestriction() { checkProfile( getProfile().RESTRICTION(), "RESTRICTION" ); return hasProperty( getProfile().ON_PROPERTY() ) || hasProperty( RDF.type, getProfile().RESTRICTION() ); }
/** * <p>Answer true if this class is an enumerated class expression</p> * @return True if this is an enumerated class expression */ @Override public boolean isEnumeratedClass() { checkProfile( getProfile().ONE_OF(), "ONE_OF" ); return hasProperty( getProfile().ONE_OF() ); }
/** * <p>Answer true if this class is a union class expression</p> * @return True if this is a union class expression */ @Override public boolean isUnionClass() { checkProfile( getProfile().UNION_OF(), "UNION_OF" ); return hasProperty( getProfile().UNION_OF() ); }
/** * <p>Answer true if this class is a union class expression</p> * @return True if this is a union class expression */ @Override public boolean isUnionClass() { checkProfile( getProfile().UNION_OF(), "UNION_OF" ); return hasProperty( getProfile().UNION_OF() ); }
/** * <p>Answer true if this class is an enumerated class expression</p> * @return True if this is an enumerated class expression */ @Override public boolean isEnumeratedClass() { checkProfile( getProfile().ONE_OF(), "ONE_OF" ); return hasProperty( getProfile().ONE_OF() ); }
/** * <p>Answer true if this class is an intersection class expression</p> * @return True if this is an intersection class expression */ @Override public boolean isIntersectionClass() { checkProfile( getProfile().INTERSECTION_OF(), "INTERSECTION_OF" ); return hasProperty( getProfile().INTERSECTION_OF() ); }
/** * <p>Answer true if this class is an intersection class expression</p> * @return True if this is an intersection class expression */ @Override public boolean isIntersectionClass() { checkProfile( getProfile().INTERSECTION_OF(), "INTERSECTION_OF" ); return hasProperty( getProfile().INTERSECTION_OF() ); }
/** * <p>Answer true if this class is a complement class expression</p> * @return True if this is a complement class expression */ @Override public boolean isComplementClass() { checkProfile( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF" ); return hasProperty( getProfile().COMPLEMENT_OF() ); }
/** * <p>Answer true if this class is a complement class expression</p> * @return True if this is a complement class expression */ @Override public boolean isComplementClass() { checkProfile( getProfile().COMPLEMENT_OF(), "COMPLEMENT_OF" ); return hasProperty( getProfile().COMPLEMENT_OF() ); }