Data Property Expressions

struct CowlDataPropExp : public CowlObject

Represents a DataPropertyExpression in the OWL 2 specification.

Subclassed by CowlDataProp

Public Static Functions

static inline CowlAnyDataPropExp *cowl_data_prop_exp_retain(CowlAnyDataPropExp *exp)

Retains the specified data property expression.

Parameters

exp – The data property expression.

Returns

Retained data property expression.

static inline void cowl_data_prop_exp_release(CowlAnyDataPropExp *exp)

Releases the specified data property expression.

Parameters

exp – The data property expression.

static inline CowlDataProp *cowl_data_prop_exp_get_prop(CowlAnyDataPropExp *exp)

Gets the underlying data property.

Parameters

exp – The data property expression.

Returns

The data property.

static inline CowlString *cowl_data_prop_exp_to_string(CowlAnyDataPropExp *exp)

Returns the string representation of the specified data property expression.

Note

The returned string is retained, so you are responsible for releasing it.

Parameters

exp – The data property expression.

Returns

String representation, or NULL on error.

static inline bool cowl_data_prop_exp_equals(CowlAnyDataPropExp *lhs, CowlAnyDataPropExp *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_exp_hash(CowlAnyDataPropExp *exp)

Hash function.

Parameters

exp – The data property expression.

Returns

The hash value.

static inline bool cowl_data_prop_exp_iterate_primitives(CowlAnyDataPropExp *exp, CowlPrimitiveFlags flags, CowlIterator *iter)

Iterates over the primitives referenced by the specified data property expression.

Parameters
  • exp – The data property expression.

  • flags – Iteration flags.

  • iter – The iterator.

Returns

True if the iteration was completed, false if it was stopped.

Subclasses