Datatype Restrictions
-
struct CowlDatatypeRestr : public CowlDataRange
Represents a DatatypeRestriction in the OWL 2 specification.
Public Static Functions
-
static inline CowlDatatypeRestr *cowl_datatype_restr(CowlDatatype *datatype, CowlVector *restrictions)
Returns a retained datatype restriction.
- Parameters
datatype – The datatype that this data range restricts.
restrictions – Set of facet restrictions.
- Returns
Retained datatype restriction, or NULL on error.
-
static inline CowlDatatype *cowl_datatype_restr_get_datatype(CowlDatatypeRestr *restr)
Gets the datatype that this data range restricts.
- Parameters
restr – The datatype restriction.
- Returns
The datatype.
-
static inline CowlVector *cowl_datatype_restr_get_restrictions(CowlDatatypeRestr *restr)
Gets the facet restrictions.
- Parameters
restr – The datatype restriction.
- Returns
The facet restrictions.
-
static inline CowlDatatypeRestr *cowl_datatype_restr(CowlDatatype *datatype, CowlVector *restrictions)
-
struct CowlFacetRestr : public CowlObject
Represents a facet restriction used to restrict a particular CowlDatatype.
Public Static Functions
-
static inline CowlFacetRestr *cowl_facet_restr(CowlIRI *facet, CowlLiteral *value)
Returns a retained facet restriction.
- Parameters
facet – The facet.
value – The restriction value.
- Returns
Retained facet restriction, or NULL on error.
-
static inline CowlIRI *cowl_facet_restr_get_facet(CowlFacetRestr *restr)
Gets the facet.
- Parameters
restr – The facet restriction.
- Returns
The facet.
-
static inline CowlLiteral *cowl_facet_restr_get_value(CowlFacetRestr *restr)
Gets the restriction value.
- Parameters
restr – The facet restriction.
- Returns
The restriction value.
-
static inline CowlFacetRestr *cowl_facet_restr(CowlIRI *facet, CowlLiteral *value)