Datatypes
-
struct CowlDatatype : public CowlDataRange, public CowlEntity
Represents a Datatype in the OWL 2 specification.
Public Static Functions
-
static inline CowlDatatype *cowl_datatype(CowlIRI *iri)
Returns a retained datatype.
- Parameters
iri – IRI of the datatype.
- Returns
Retained datatype, or NULL on error.
-
static inline CowlDatatype *cowl_datatype_from_string(UString string)
Returns a retained datatype given the string representation of its IRI.
- Parameters
string – String representation of the IRI.
- Returns
Retained datatype, or NULL on error.
-
static inline CowlDatatype *cowl_datatype_retain(CowlDatatype *dt)
Retains the specified datatype.
- Parameters
dt – The datatype.
- Returns
Retained datatype.
-
static inline void cowl_datatype_release(CowlDatatype *dt)
Releases the specified datatype.
- Parameters
dt – The datatype.
-
static inline CowlIRI *cowl_datatype_get_iri(CowlDatatype *dt)
Gets the IRI of the specified datatype.
- Parameters
dt – The datatype.
- Returns
The IRI.
-
static inline CowlString *cowl_datatype_to_string(CowlDatatype *dt)
Returns the string representation of the specified datatype.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
dt – The datatype.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_datatype_equals(CowlDatatype *lhs, CowlDatatype *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_hash(CowlDatatype *dt)
Hash function.
- Parameters
dt – The datatype.
- Returns
The hash value.
-
static inline bool cowl_datatype_iterate_primitives(CowlDatatype *dt, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over this datatype.
- Parameters
dt – The datatype.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
cowl_datatype_from_static(CSTR)
Returns a retained datatype given the static string representation of its IRI.
- Parameters
CSTR – [char const[]] Static string.
- Returns
[CowlDatatype *] Retained datatype, or NULL on error.
-
static inline CowlDatatype *cowl_datatype(CowlIRI *iri)