Literal Value Restriction

struct CowlDataHasValue : public CowlClsExp

Represents DataHasValue in the OWL 2 specification.

Public Static Functions

static inline CowlDataHasValue *cowl_data_has_value(CowlAnyDataPropExp *prop, CowlLiteral *value)

Returns a retained literal value restriction.

Parameters
  • prop – The data property expression.

  • value – The restriction value.

Returns

Retained restriction, or NULL on error.

static inline CowlDataHasValue *cowl_data_has_value_retain(CowlDataHasValue *restr)

Retains the specified literal value restriction.

Parameters

restr – The restriction.

Returns

Retained restriction.

static inline void cowl_data_has_value_release(CowlDataHasValue *restr)

Releases the specified literal value restriction.

Parameters

restr – The restriction.

static inline CowlDataPropExp *cowl_data_has_value_get_prop(CowlDataHasValue *restr)

Gets the property of the restriction.

Parameters

restr – The restriction.

Returns

The property.

static inline CowlLiteral *cowl_data_has_value_get_value(CowlDataHasValue *restr)

Gets the value of the restriction.

Parameters

restr – The restriction.

Returns

The value.

static inline CowlString *cowl_data_has_value_to_string(CowlDataHasValue *restr)

Returns the string representation of the specified restriction.

Note

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

Parameters

restr – The restriction.

Returns

String representation, or NULL on error.

static inline bool cowl_data_has_value_equals(CowlDataHasValue *lhs, CowlDataHasValue *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_has_value_hash(CowlDataHasValue *restr)

Hash function.

Parameters

restr – The restriction.

Returns

The hash value.

static inline bool cowl_data_has_value_iterate_primitives(CowlDataHasValue *restr, CowlPrimitiveFlags flags, CowlIterator *iter)

Iterates over the primitives referenced by the specified literal value restriction.

Parameters
  • restr – The restriction.

  • flags – Iteration flags.

  • iter – The iterator.

Returns

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