Object Property Assertions

struct CowlObjPropAssertAxiom : public CowlAxiom

Represents an ObjectPropertyAssertion or NegativeObjectPropertyAssertion axiom in the OWL 2 specification.

Public Static Functions

static inline CowlObjPropAssertAxiom *cowl_obj_prop_assert_axiom(CowlAnyObjPropExp *prop, CowlAnyIndividual *subject, CowlAnyIndividual *object, CowlVector *annot)

Returns a retained object property assertion axiom.

Parameters
  • prop – The object property.

  • subject – The assertion subject.

  • object – The assertion object.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlObjPropAssertAxiom *cowl_neg_obj_prop_assert_axiom(CowlAnyObjPropExp *prop, CowlAnyIndividual *subject, CowlAnyIndividual *object, CowlVector *annot)

Returns a retained negative object property assertion axiom.

Parameters
  • prop – The object property.

  • subject – The assertion subject.

  • object – The assertion object.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlObjPropAssertAxiom *cowl_obj_prop_assert_axiom_retain(CowlObjPropAssertAxiom *axiom)

Retains the specified axiom.

Parameters

axiom – The axiom.

Returns

Retained axiom.

static inline void cowl_obj_prop_assert_axiom_release(CowlObjPropAssertAxiom *axiom)

Releases the specified axiom.

Parameters

axiom – The axiom.

static inline bool cowl_obj_prop_assert_axiom_is_negative(CowlObjPropAssertAxiom *axiom)

Returns true if the specified object property assertion axiom is negative.

Parameters

axiom – The axiom.

Returns

True if the assertion is negative, false otherwise.

static inline CowlObjPropExp *cowl_obj_prop_assert_axiom_get_prop(CowlObjPropAssertAxiom *axiom)

Gets the object property expression.

Parameters

axiom – The axiom.

Returns

The object property expression.

static inline CowlIndividual *cowl_obj_prop_assert_axiom_get_subject(CowlObjPropAssertAxiom *axiom)

Gets the assertion subject.

Parameters

axiom – The axiom.

Returns

The assertion subject.

static inline CowlIndividual *cowl_obj_prop_assert_axiom_get_object(CowlObjPropAssertAxiom *axiom)

Gets the assertion object.

Parameters

axiom – The axiom.

Returns

The assertion object.

static inline CowlVector *cowl_obj_prop_assert_axiom_get_annot(CowlObjPropAssertAxiom *axiom)

Gets the annotations of the specified axiom.

Parameters

axiom – The axiom.

Returns

The annotations.

static inline CowlString *cowl_obj_prop_assert_axiom_to_string(CowlObjPropAssertAxiom *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_assert_axiom_equals(CowlObjPropAssertAxiom *lhs, CowlObjPropAssertAxiom *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_assert_axiom_hash(CowlObjPropAssertAxiom *axiom)

Hash function.

Parameters

axiom – The axiom.

Returns

The hash value.

static inline bool cowl_obj_prop_assert_axiom_iterate_primitives(CowlObjPropAssertAxiom *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.