Datatypes

struct CowlDatatype

Represents a Datatype in the OWL 2 specification.

Pseudo-extends: CowlDataRange, CowlEntity

CowlDatatype *cowl_datatype(CowlIRI *iri)

Returns a datatype.

Note

You must release the returned object via cowl_release().

Parameters:
  • iri – IRI of the datatype.

Returns:

Datatype, or NULL on error.

CowlDatatype *cowl_datatype_from_string(UString string)

Returns a datatype given the string representation of its IRI.

Note

You must release the returned object via cowl_release().

Parameters:
  • string – String representation of the IRI.

Returns:

Datatype, or NULL on error.

CowlIRI *cowl_datatype_get_iri(CowlDatatype *dt)

Gets the IRI of the specified datatype.

Parameters:
  • dt – The datatype.

Returns:

The IRI.

cowl_datatype_from_static(str)

Returns a datatype given the string literal representing its IRI.

Note

You must release the returned object via cowl_release().

Parameters:
  • strchar const [] String literal.

Returns:

CowlDatatype * Datatype, or NULL on error.