Equivalent and Disjoint Classes

struct CowlNAryClsAxiom : public CowlAxiom

Represents an EquivalentClasses or DisjointClasses axiom in the OWL 2 specification.

Public Static Functions

static inline CowlNAryClsAxiom *cowl_nary_cls_axiom(CowlNAryAxiomType type, CowlVector *classes, CowlVector *annot)

Returns a retained N-ary class expression axiom.

Parameters
  • type – N-ary class expression axiom type.

  • classes – The classes.

  • annot – [optional] The annotations.

Returns

Retained axiom, or NULL on error.

static inline CowlNAryAxiomType cowl_nary_cls_axiom_get_type(CowlNAryClsAxiom *axiom)

Gets the type of the specified N-ary class expression axiom.

Parameters

axiom – The axiom.

Returns

The type.

static inline CowlVector *cowl_nary_cls_axiom_get_classes(CowlNAryClsAxiom *axiom)

Gets the classes of the specified N-ary class expression axiom.

Parameters

axiom – The axiom.

Returns

The classes.

static inline CowlVector *cowl_nary_cls_axiom_get_annot(CowlNAryClsAxiom *axiom)

Gets the annotations of the specified axiom.

Parameters

axiom – The axiom.

Returns

The annotations.

enum CowlNAryAxiomType

Represents the type of CowlNAryClsAxiom, CowlNAryObjPropAxiom, CowlNAryDataPropAxiom and CowlNAryIndAxiom.

Values:

enumerator COWL_NAT_EQUIV

Equivalence.

enumerator COWL_NAT_DISJ

Disjointness.

enumerator COWL_NAT_COUNT

Number of enum values.

enumerator COWL_NAT_FIRST

First enum value.

enumerator COWL_NAT_SAME

Same individuals.

enumerator COWL_NAT_DIFF

Different individuals.