Object Properties

struct CowlObjProp : public CowlObjPropExp, public CowlEntity

Represents an ObjectProperty in the OWL 2 specification.

Public Static Functions

static inline CowlString *cowl_data_prop_to_string(CowlDataProp *prop)

Returns the string representation of the specified data property.

Note

The returned string is retained, so you are responsible for releasing it.

Parameters

prop – The data property.

Returns

String representation, or NULL on error.

static inline CowlObjProp *cowl_obj_prop(CowlIRI *iri)

Returns a retained object property.

Parameters

iri – IRI of the object property.

Returns

Retained object property, or NULL on error.

static inline CowlObjProp *cowl_obj_prop_from_string(UString string)

Returns a retained object property given the string representation of its IRI.

Parameters

string – String representation of the IRI.

Returns

Retained object property, or NULL on error.

static inline CowlObjProp *cowl_obj_prop_retain(CowlObjProp *prop)

Retains the specified object property.

Parameters

prop – The object property.

Returns

Retained object property.

static inline void cowl_obj_prop_release(CowlObjProp *prop)

Releases the specified object property.

Parameters

prop – The object property.

static inline CowlIRI *cowl_obj_prop_get_iri(CowlObjProp *prop)

Gets the IRI of the specified object property.

Parameters

prop – The object property.

Returns

The IRI.

static inline CowlString *cowl_obj_prop_to_string(CowlObjProp *prop)

Returns the string representation of the specified object property.

Note

The returned string is retained, so you are responsible for releasing it.

Parameters

prop – The object property.

Returns

String representation, or NULL on error.

static inline bool cowl_obj_prop_equals(CowlObjProp *lhs, CowlObjProp *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_obj_prop_hash(CowlObjProp *prop)

Hash function.

Parameters

prop – The property.

Returns

The hash value.

static inline bool cowl_obj_prop_iterate_primitives(CowlObjProp *prop, CowlPrimitiveFlags flags, CowlIterator *iter)

Iterates over this object property.

Parameters
  • prop – The object property.

  • flags – Iteration flags.

  • iter – The iterator.

Returns

True if the iteration was completed, false if it was stopped.

cowl_obj_prop_from_static(CSTR)

Returns a retained object property given the static string representation of its IRI.

Parameters
  • CSTR – [char const[]] Static string.

Returns

[CowlObjProp *] Retained object property, or NULL on error.