Named Individuals
-
struct CowlNamedInd : public CowlIndividual, public CowlEntity
Represents a NamedIndividual in the OWL 2 specification.
Public Static Functions
-
static inline CowlNamedInd *cowl_named_ind(CowlIRI *iri)
Returns a retained named individual.
- Parameters
iri – IRI of the individual.
- Returns
Retained named individual, or NULL on error.
-
static inline CowlNamedInd *cowl_named_ind_from_string(UString string)
Returns a retained named individual given the string representation of its IRI.
- Parameters
string – String representation of the IRI.
- Returns
Retained named individual, or NULL on error.
-
static inline CowlNamedInd *cowl_named_ind_retain(CowlNamedInd *ind)
Retains the specified named individual.
- Parameters
ind – The named individual.
- Returns
Retained named individual.
-
static inline void cowl_named_ind_release(CowlNamedInd *ind)
Releases the specified named individual.
- Parameters
ind – The named individual.
-
static inline CowlIRI *cowl_named_ind_get_iri(CowlNamedInd *ind)
Gets the IRI of the named individual.
- Parameters
ind – The named individual.
- Returns
IRI of the named individual.
-
static inline CowlString *cowl_named_ind_to_string(CowlNamedInd *ind)
Returns the string representation of the specified named individual.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
ind – The named individual.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_named_ind_equals(CowlNamedInd *lhs, CowlNamedInd *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_named_ind_hash(CowlNamedInd *ind)
Hash function.
- Parameters
ind – The named individual.
- Returns
The hash value.
-
static inline bool cowl_named_ind_iterate_primitives(CowlNamedInd *ind, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over this named individual.
- Parameters
ind – The named individual.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
cowl_named_ind_from_static(CSTR)
Returns a retained named individual given the static string representation of its IRI.
- Parameters
CSTR – [char const[]] Static string.
- Returns
[CowlNamedInd *] Retained named individual, or NULL on error.
-
static inline CowlNamedInd *cowl_named_ind(CowlIRI *iri)