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 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.