Object Property Expressions
-
struct CowlObjPropExp : public CowlObject
Represents an ObjectPropertyExpression in the OWL 2 specification.
Subclassed by CowlInvObjProp, CowlObjProp
Public Functions
-
CowlObjProp *cowl_obj_prop_exp_get_prop(CowlAnyObjPropExp *exp)
Gets the underlying object property.
- Parameters
exp – The object property expression.
- Returns
The object property.
Public Static Functions
-
static inline CowlAnyObjPropExp *cowl_obj_prop_exp_retain(CowlAnyObjPropExp *exp)
Retains the specified object property expression.
- Parameters
exp – The object property expression.
- Returns
Retained object property expression.
-
static inline void cowl_obj_prop_exp_release(CowlAnyObjPropExp *exp)
Releases the specified object property expression.
- Parameters
exp – The object property expression.
-
static inline bool cowl_obj_prop_exp_is_inverse(CowlAnyObjPropExp *exp)
Returns true if the object property expression is inverse.
- Parameters
exp – The object property expression.
- Returns
True if the expression is inverse, false otherwise.
-
static inline CowlString *cowl_obj_prop_exp_to_string(CowlAnyObjPropExp *exp)
Returns the string representation of the specified object property expression.
Note
The returned string is retained, so you are responsible for releasing it.
- Parameters
exp – The object property expression.
- Returns
String representation, or NULL on error.
-
static inline bool cowl_obj_prop_exp_equals(CowlAnyObjPropExp *lhs, CowlAnyObjPropExp *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_exp_hash(CowlAnyObjPropExp *exp)
Hash function.
- Parameters
exp – The object property expression.
- Returns
The hash value.
-
static inline bool cowl_obj_prop_exp_iterate_primitives(CowlAnyObjPropExp *exp, CowlPrimitiveFlags flags, CowlIterator *iter)
Iterates over the primitives referenced by the specified object property expression.
- Parameters
exp – The object property expression.
flags – Iteration flags.
iter – The iterator.
- Returns
True if the iteration was completed, false if it was stopped.
-
CowlObjProp *cowl_obj_prop_exp_get_prop(CowlAnyObjPropExp *exp)
Subclasses