Subclasses
-
struct CowlSubClsAxiom : public CowlAxiom
Represents a SubClassOf axiom in the OWL 2 specification.
Public Static Functions
-
static inline CowlSubClsAxiom *cowl_sub_cls_axiom(CowlAnyClsExp *sub, CowlAnyClsExp *super, CowlVector *annot)
Returns a retained subclass axiom.
- Parameters
sub – The subclass.
super – The superclass.
annot – [optional] The annotations.
- Returns
Retained axiom, or NULL on error.
-
static inline CowlSubClsAxiom *cowl_sub_cls_axiom_retain(CowlSubClsAxiom *axiom)
Retains the specified axiom.
- Parameters
axiom – The axiom.
- Returns
Retained axiom.
-
static inline void cowl_sub_cls_axiom_release(CowlSubClsAxiom *axiom)
Releases the specified axiom.
- Parameters
axiom – The axiom.
-
static inline CowlClsExp *cowl_sub_cls_axiom_get_sub(CowlSubClsAxiom *axiom)
Gets the subclass.
- Parameters
axiom – The axiom.
- Returns
The subclass.
-
static inline CowlClsExp *cowl_sub_cls_axiom_get_super(CowlSubClsAxiom *axiom)
Gets the superclass.
- Parameters
axiom – The axiom.
- Returns
The superclass.
-
static inline CowlVector *cowl_sub_cls_axiom_get_annot(CowlSubClsAxiom *axiom)
Gets the annotations of the specified axiom.
- Parameters
axiom – The axiom.
- Returns
The annotations.
-
static inline CowlString *cowl_sub_cls_axiom_to_string(CowlSubClsAxiom *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_sub_cls_axiom_equals(CowlSubClsAxiom *lhs, CowlSubClsAxiom *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_sub_cls_axiom_hash(CowlSubClsAxiom *axiom)
Hash function.
- Parameters
axiom – The axiom.
- Returns
The hash value.
-
static inline bool cowl_sub_cls_axiom_iterate_primitives(CowlSubClsAxiom *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 CowlSubClsAxiom *cowl_sub_cls_axiom(CowlAnyClsExp *sub, CowlAnyClsExp *super, CowlVector *annot)