Datatype Definitions
-
struct CowlDatatypeDefAxiom : public CowlAxiom
Represents a DatatypeDefinition axiom in the OWL 2 specification.
Public Static Functions
-
static inline CowlDatatypeDefAxiom *cowl_datatype_def_axiom(CowlDatatype *dt, CowlAnyDataRange *range, CowlVector *annot)
Returns a retained datatype definition axiom.
- Parameters
dt – The defined datatype.
range – Range of the defined datatype.
annot – [optional] The annotations.
- Returns
Retained axiom, or NULL on error.
-
static inline CowlDatatypeDefAxiom *cowl_datatype_def_axiom_retain(CowlDatatypeDefAxiom *axiom)
Retains the specified axiom.
- Parameters
axiom – The axiom.
- Returns
Retained axiom.
-
static inline void cowl_datatype_def_axiom_release(CowlDatatypeDefAxiom *axiom)
Releases the specified axiom.
- Parameters
axiom – The axiom.
-
static inline CowlDatatype *cowl_datatype_def_axiom_get_datatype(CowlDatatypeDefAxiom *axiom)
Gets the defined datatype.
- Parameters
axiom – The axiom.
- Returns
The datatype.
-
static inline CowlDataRange *cowl_datatype_def_axiom_get_range(CowlDatatypeDefAxiom *axiom)
Gets the range of the defined datatype.
- Parameters
axiom – The axiom.
- Returns
The range.
-
static inline CowlVector *cowl_datatype_def_axiom_get_annot(CowlDatatypeDefAxiom *axiom)
Gets the annotations of the specified axiom.
- Parameters
axiom – The axiom.
- Returns
The annotations.
-
static inline CowlString *cowl_datatype_def_axiom_to_string(CowlDatatypeDefAxiom *axiom)
Returns the string representation of the specified axiom.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
axiom – The axiom.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_datatype_def_axiom_equals(CowlDatatypeDefAxiom *lhs, CowlDatatypeDefAxiom *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_datatype_def_axiom_hash(CowlDatatypeDefAxiom *axiom)
Hash function.
- Parameters
axiom – The axiom.
- Returns
The hash value.
-
static inline bool cowl_datatype_def_axiom_iterate_primitives(CowlDatatypeDefAxiom *axiom, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over the primitives referenced by the specified axiom.
- Parameters
axiom – The axiom.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
static inline CowlDatatypeDefAxiom *cowl_datatype_def_axiom(CowlDatatype *dt, CowlAnyDataRange *range, CowlVector *annot)