Annotation Properties
-
struct CowlAnnotProp : public CowlEntity
Represents an AnnotationProperty in the OWL 2 specification.
Public Static Functions
-
static inline CowlAnnotProp *cowl_annot_prop(CowlIRI *iri)
Returns a retained annotation property.
- Parameters
iri – IRI of the property.
- Returns
Retained annotation property, or NULL on error.
-
static inline CowlAnnotProp *cowl_annot_prop_from_string(UString string)
Returns a retained annotation property given the string representation of its IRI.
- Parameters
string – String representation of the IRI.
- Returns
Retained annotation property, or NULL on error.
-
static inline CowlAnnotProp *cowl_annot_prop_retain(CowlAnnotProp *prop)
Retains the specified annotation property.
- Parameters
prop – The annotation property.
- Returns
Retained annotation property.
-
static inline void cowl_annot_prop_release(CowlAnnotProp *prop)
Releases the specified annotation property.
- Parameters
prop – The annotation property.
-
static inline CowlIRI *cowl_annot_prop_get_iri(CowlAnnotProp *prop)
Gets the IRI of the specified annotation property.
- Parameters
prop – The annotation property.
- Returns
IRI of the annotation property.
-
static inline CowlString *cowl_annot_prop_to_string(CowlAnnotProp *prop)
Returns the string representation of the specified annotation property.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
prop – The annotation property.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_annot_prop_equals(CowlAnnotProp *lhs, CowlAnnotProp *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_annot_prop_hash(CowlAnnotProp *prop)
Hash function.
- Parameters
prop – The annotation property.
- Returns
The hash value.
-
static inline bool cowl_annot_prop_iterate_primitives(CowlAnnotProp *prop, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over this annotation property.
- Parameters
prop – The annotation property.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
cowl_annot_prop_from_static(CSTR)
Returns a retained annotation property given the static string representation of its IRI.
- Parameters
CSTR – [char const[]] Static string.
- Returns
[CowlAnnotProp *] Retained annotation property, or NULL on error.
-
static inline CowlAnnotProp *cowl_annot_prop(CowlIRI *iri)