Annotation Assertions
-
struct CowlAnnotAssertAxiom : public CowlAxiom
Represents an AnnotationAssertion axiom in the OWL 2 specification.
Public Static Functions
-
static inline CowlAnnotAssertAxiom *cowl_annot_assert_axiom(CowlAnnotProp *prop, CowlAnyAnnotValue *subject, CowlAnyAnnotValue *value, CowlVector *annot)
Returns a retained annotation assertion axiom.
- Parameters
prop – The annotation property.
subject – The annotation subject.
value – The annotation value.
annot – [optional] The annotations.
- Returns
Retained axiom, or NULL on error.
-
static inline CowlAnnotAssertAxiom *cowl_annot_assert_axiom_retain(CowlAnnotAssertAxiom *axiom)
Retains the specified axiom.
- Parameters
axiom – The axiom.
- Returns
Retained axiom.
-
static inline void cowl_annot_assert_axiom_release(CowlAnnotAssertAxiom *axiom)
Releases the specified axiom.
- Parameters
axiom – The axiom.
-
static inline CowlAnnotProp *cowl_annot_assert_axiom_get_prop(CowlAnnotAssertAxiom *axiom)
Gets the annotation property.
- Parameters
axiom – The axiom.
- Returns
The annotation property.
-
static inline CowlAnnotValue *cowl_annot_assert_axiom_get_subject(CowlAnnotAssertAxiom *axiom)
Gets the annotation subject.
Note
The annotation subject can only be an anonymous individual or an IRI.
- Parameters
axiom – The axiom.
- Returns
The annotation subject.
-
static inline CowlAnnotValue *cowl_annot_assert_axiom_get_value(CowlAnnotAssertAxiom *axiom)
Gets the annotation value.
- Parameters
axiom – The axiom.
- Returns
The annotation value.
-
static inline CowlVector *cowl_annot_assert_axiom_get_annot(CowlAnnotAssertAxiom *axiom)
Gets the annotations of the specified axiom.
- Parameters
axiom – The axiom.
- Returns
The annotations.
-
static inline CowlString *cowl_annot_assert_axiom_to_string(CowlAnnotAssertAxiom *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_annot_assert_axiom_equals(CowlAnnotAssertAxiom *lhs, CowlAnnotAssertAxiom *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_annot_assert_axiom_hash(CowlAnnotAssertAxiom *axiom)
Hash function.
- Parameters
axiom – The axiom.
- Returns
The hash value.
-
static inline bool cowl_annot_assert_axiom_iterate_primitives(CowlAnnotAssertAxiom *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 CowlAnnotAssertAxiom *cowl_annot_assert_axiom(CowlAnnotProp *prop, CowlAnyAnnotValue *subject, CowlAnyAnnotValue *value, CowlVector *annot)