Annotation Property Domain

struct CowlAnnotPropDomainAxiom : public CowlAxiom

Represents an AnnotationPropertyDomain axiom in the OWL 2 specification.

Public Static Functions

static inline CowlAnnotPropDomainAxiom *cowl_annot_prop_domain_axiom(CowlAnnotProp *prop, CowlIRI *domain, CowlVector *annot)

Returns a retained annotation property domain axiom.

Parameters
  • prop – The annotation property.

  • domain – Domain of the annotation property.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlAnnotPropDomainAxiom *cowl_annot_prop_domain_axiom_retain(CowlAnnotPropDomainAxiom *axiom)

Retains the specified axiom.

Parameters

axiom – The axiom.

Returns

Retained axiom.

static inline void cowl_annot_prop_domain_axiom_release(CowlAnnotPropDomainAxiom *axiom)

Releases the specified axiom.

Parameters

axiom – The axiom.

static inline CowlAnnotProp *cowl_annot_prop_domain_axiom_get_prop(CowlAnnotPropDomainAxiom *axiom)

Gets the annotation property.

Parameters

axiom – The axiom.

Returns

The annotation property.

static inline CowlIRI *cowl_annot_prop_domain_axiom_get_domain(CowlAnnotPropDomainAxiom *axiom)

Gets the domain of the annotation property.

Parameters

axiom – The axiom.

Returns

Domain of the annotation property.

static inline CowlVector *cowl_annot_prop_domain_axiom_get_annot(CowlAnnotPropDomainAxiom *axiom)

Gets the annotations of the specified axiom.

Parameters

axiom – The axiom.

Returns

The annotations.

static inline CowlString *cowl_annot_prop_domain_axiom_to_string(CowlAnnotPropDomainAxiom *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_prop_domain_axiom_equals(CowlAnnotPropDomainAxiom *lhs, CowlAnnotPropDomainAxiom *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_prop_domain_axiom_hash(CowlAnnotPropDomainAxiom *axiom)

Hash function.

Parameters

axiom – The axiom.

Returns

The hash value.

static inline bool cowl_annot_prop_domain_axiom_iterate_primitives(CowlAnnotPropDomainAxiom *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.