Classes
-
struct CowlClass : public CowlClsExp, public CowlEntity
Represents a Class in the OWL 2 specification.
Public Static Functions
-
static inline CowlClass *cowl_class(CowlIRI *iri)
Returns a retained class.
- Parameters
iri – IRI of the class.
- Returns
Retained class, or NULL on error.
-
static inline CowlClass *cowl_class_from_string(UString string)
Returns a retained class given the string representation of its IRI.
- Parameters
string – String representation of the IRI.
- Returns
Retained class, or NULL on error.
-
static inline CowlClass *cowl_class_retain(CowlClass *cls)
Retains the specified class.
- Parameters
cls – The class.
- Returns
Retained class.
-
static inline void cowl_class_release(CowlClass *cls)
Releases the specified class.
- Parameters
cls – The class.
-
static inline CowlIRI *cowl_class_get_iri(CowlClass *cls)
Gets the IRI of the specified class.
- Parameters
cls – The class.
- Returns
IRI of the class.
-
static inline CowlString *cowl_class_to_string(CowlClass *cls)
Returns the string representation of the specified class.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
cls – The class.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_class_equals(CowlClass *lhs, CowlClass *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_class_hash(CowlClass *cls)
Hash function.
- Parameters
cls – The class.
- Returns
The hash value.
-
static inline bool cowl_class_iterate_primitives(CowlClass *cls, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over this class.
- Parameters
cls – The class.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
static inline CowlClass *cowl_class(CowlIRI *iri)