Classes

struct CowlClass

Represents a Class in the OWL 2 specification.

Pseudo-extends: CowlClsExp, CowlEntity

CowlClass *cowl_class(CowlIRI *iri)

Returns a class.

Note

You must release the returned object via cowl_release().

Parameters:
  • iri – IRI of the class.

Returns:

Class, or NULL on error.

CowlClass *cowl_class_from_string(UString string)

Returns a class 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:

Class, or NULL on error.

CowlClass *cowl_class_from_literal(char const str[])

Returns a class given the string literal representing its IRI.

Note

You must release the returned object via cowl_release().

Parameters:
  • str – String literal.

Returns:

Class, or NULL on error.

CowlClass *cowl_class_from_static(char const str[])

Returns a class given the string literal representing its IRI.

Deprecated:

Use cowl_class_from_literal instead.

Note

You must release the returned object via cowl_release().

Parameters:
  • str – String literal.

Returns:

Class, or NULL on error.

CowlIRI *cowl_class_get_iri(CowlClass *cls)

Gets the IRI of the specified class.

Parameters:
  • cls – The class.

Returns:

IRI of the class.