Object Property Domain

struct CowlObjPropDomainAxiom : public CowlAxiom

Represents an ObjectPropertyDomain axiom in the OWL 2 specification.

Public Static Functions

static inline CowlObjPropDomainAxiom *cowl_obj_prop_domain_axiom(CowlAnyObjPropExp *prop, CowlAnyClsExp *domain, CowlVector *annot)

Returns a retained object property domain axiom.

Parameters
  • prop – The object property.

  • domain – Domain of the object property.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlObjPropDomainAxiom *cowl_obj_prop_domain_axiom_retain(CowlObjPropDomainAxiom *axiom)

Retains the specified axiom.

Parameters

axiom – The axiom.

Returns

Retained axiom.

static inline void cowl_obj_prop_domain_axiom_release(CowlObjPropDomainAxiom *axiom)

Releases the specified axiom.

Parameters

axiom – The axiom.

static inline CowlObjPropExp *cowl_obj_prop_domain_axiom_get_prop(CowlObjPropDomainAxiom *axiom)

Gets the object property.

Parameters

axiom – The axiom.

Returns

The object property.

static inline CowlClsExp *cowl_obj_prop_domain_axiom_get_domain(CowlObjPropDomainAxiom *axiom)

Gets the domain of the object property.

Parameters

axiom – The axiom.

Returns

Domain of the object property.

static inline CowlVector *cowl_obj_prop_domain_axiom_get_annot(CowlObjPropDomainAxiom *axiom)

Gets the annotations of the specified axiom.

Parameters

axiom – The axiom.

Returns

The annotations.

static inline CowlString *cowl_obj_prop_domain_axiom_to_string(CowlObjPropDomainAxiom *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_obj_prop_domain_axiom_equals(CowlObjPropDomainAxiom *lhs, CowlObjPropDomainAxiom *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_obj_prop_domain_axiom_hash(CowlObjPropDomainAxiom *axiom)

Hash function.

Parameters

axiom – The axiom.

Returns

The hash value.

static inline bool cowl_obj_prop_domain_axiom_iterate_primitives(CowlObjPropDomainAxiom *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.