Data Property Assertions

struct CowlDataPropAssertAxiom : public CowlAxiom

Represents a DataPropertyAssertion or NegativeDataPropertyAssertion axiom in the OWL 2 specification.

Public Static Functions

static inline CowlDataPropAssertAxiom *cowl_data_prop_assert_axiom(CowlAnyDataPropExp *prop, CowlAnyIndividual *subj, CowlLiteral *obj, CowlVector *annot)

Returns a retained data property assertion axiom.

Parameters
  • prop – The data property.

  • subj – The assertion subject.

  • obj – The assertion object.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlDataPropAssertAxiom *cowl_neg_data_prop_assert_axiom(CowlAnyDataPropExp *prop, CowlAnyIndividual *subj, CowlLiteral *obj, CowlVector *annot)

Returns a retained negative data property assertion axiom.

Parameters
  • subj – The assertion subject.

  • prop – The data property.

  • obj – The assertion object.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlDataPropAssertAxiom *cowl_data_prop_assert_axiom_retain(CowlDataPropAssertAxiom *axiom)

Retains the specified axiom.

Parameters

axiom – The axiom.

Returns

Retained axiom.

static inline void cowl_data_prop_assert_axiom_release(CowlDataPropAssertAxiom *axiom)

Releases the specified axiom.

Parameters

axiom – The axiom.

static inline bool cowl_data_prop_assert_axiom_is_negative(CowlDataPropAssertAxiom *axiom)

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

Parameters

axiom – The axiom.

Returns

True if the assertion is negative, false otherwise.

static inline CowlDataPropExp *cowl_data_prop_assert_axiom_get_prop(CowlDataPropAssertAxiom *axiom)

Gets the data property.

Parameters

axiom – The axiom.

Returns

The data property.

static inline CowlIndividual *cowl_data_prop_assert_axiom_get_subject(CowlDataPropAssertAxiom *axiom)

Gets the assertion subject.

Parameters

axiom – The axiom.

Returns

The assertion subject.

static inline CowlLiteral *cowl_data_prop_assert_axiom_get_object(CowlDataPropAssertAxiom *axiom)

Gets the assertion object.

Parameters

axiom – The axiom.

Returns

The assertion object.

static inline CowlVector *cowl_data_prop_assert_axiom_get_annot(CowlDataPropAssertAxiom *axiom)

Gets the annotations of the specified axiom.

Parameters

axiom – The axiom.

Returns

The annotations.

static inline CowlString *cowl_data_prop_assert_axiom_to_string(CowlDataPropAssertAxiom *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_data_prop_assert_axiom_equals(CowlDataPropAssertAxiom *lhs, CowlDataPropAssertAxiom *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_data_prop_assert_axiom_hash(CowlDataPropAssertAxiom *axiom)

Hash function.

Parameters

axiom – The axiom.

Returns

The hash value.

static inline bool cowl_data_prop_assert_axiom_iterate_primitives(CowlDataPropAssertAxiom *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.