Disjoint Union
-
struct CowlDisjUnionAxiom : public CowlAxiom
Represents a DisjointUnion axiom in the OWL 2 specification.
Public Static Functions
-
static inline CowlDisjUnionAxiom *cowl_disj_union_axiom(CowlClass *cls, CowlVector *disjoints, CowlVector *annot)
Returns a retained disjoint union axiom.
- Parameters
cls – The class which is equivalent to the disjoint union.
disjoints – The class expressions which are operands of the disjoint union.
annot – [optional] The annotations.
- Returns
Retained disjoint union axiom, or NULL on error.
-
static inline CowlDisjUnionAxiom *cowl_disj_union_axiom_retain(CowlDisjUnionAxiom *axiom)
Retains the specified axiom.
- Parameters
axiom – The axiom.
- Returns
Retained axiom.
-
static inline void cowl_disj_union_axiom_release(CowlDisjUnionAxiom *axiom)
Releases the specified axiom.
- Parameters
axiom – The axiom.
-
static inline CowlClass *cowl_disj_union_axiom_get_class(CowlDisjUnionAxiom *axiom)
Gets the class which is equivalent to the disjoint union.
- Parameters
axiom – The axiom.
- Returns
The class.
-
static inline CowlVector *cowl_disj_union_axiom_get_disjoints(CowlDisjUnionAxiom *axiom)
Gets the class expressions which are operands of the disjoint union.
- Parameters
axiom – The axiom.
- Returns
The class expressions.
-
static inline CowlVector *cowl_disj_union_axiom_get_annot(CowlDisjUnionAxiom *axiom)
Gets the annotations of the specified axiom.
- Parameters
axiom – The axiom.
- Returns
The annotations.
-
static inline CowlString *cowl_disj_union_axiom_to_string(CowlDisjUnionAxiom *axiom)
Returns the string representation of the specified axiom.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
axiom – The axiom.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_disj_union_axiom_equals(CowlDisjUnionAxiom *lhs, CowlDisjUnionAxiom *rhs)
Equality function.
- Parameters
lhs – LHS of the equality relation.
rhs – RHS of the equality relation.
- Returns
True if the equality relation holds, false otherwise.
-
static inline ulib_uint cowl_disj_union_axiom_hash(CowlDisjUnionAxiom *axiom)
Hash function.
- Parameters
axiom – The axiom.
- Returns
The hash value.
-
static inline bool cowl_disj_union_axiom_iterate_primitives(CowlDisjUnionAxiom *axiom, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over the primitives referenced by the specified axiom.
- Parameters
axiom – The axiom.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
static inline CowlDisjUnionAxiom *cowl_disj_union_axiom(CowlClass *cls, CowlVector *disjoints, CowlVector *annot)