Boolean data ranges

Intersection and union

struct CowlNAryData

Represents DataIntersectionOf and DataUnionOf in the OWL 2 specification.

Pseudo-extends: CowlDataRange

CowlNAryData *cowl_nary_data(CowlNAryType type, CowlVector *operands)

Returns a N-ary data range.

Note

You must release the returned object via cowl_release().

Parameters:
  • type – N-ary data range type.

  • operands – The operands.

Returns:

N-ary data range, or NULL on error.

CowlNAryType cowl_nary_data_get_type(CowlNAryData *range)

Gets the type of the specified N-ary data range.

Parameters:
  • range – The data range.

Returns:

The type.

CowlVector *cowl_nary_data_get_operands(CowlNAryData *range)

Gets the operands of the specified N-ary data range.

Parameters:
  • range – The data range.

Returns:

The operands.

Complement

struct CowlDataCompl

Represents DataComplementOf the OWL 2 specification.

Pseudo-extends: CowlDataRange

CowlDataCompl *cowl_data_compl(CowlAnyDataRange *operand)

Returns the complement of a data range.

Note

You must release the returned object via cowl_release().

Parameters:
  • operand – The data range which this data range is a complement of.

Returns:

Data range complement, or NULL on error.

CowlDataRange *cowl_data_compl_get_operand(CowlDataCompl *range)

Gets the data range which this data range is a complement of.

Parameters:
  • range – The data range complement.

Returns:

The operand.