Annotations

struct CowlAnnotation

Represents an Annotation in the OWL 2 specification.

Pseudo-extends: CowlObject

CowlAnnotation *cowl_annotation(CowlAnnotProp *prop, CowlAnyAnnotValue *value, CowlVector *annot)

Returns an annotation.

Note

You must release the returned object via cowl_release().

Parameters:
  • prop – The annotation property.

  • value – The annotation value.

  • annotoptional The annotations.

Returns:

Annotation, or NULL on error.

CowlAnnotProp *cowl_annotation_get_prop(CowlAnnotation *annot)

Gets the annotation property.

Parameters:
  • annot – The annotation.

Returns:

The annotation property.

CowlAnnotValue *cowl_annotation_get_value(CowlAnnotation *annot)

Gets the annotation value.

Parameters:
  • annot – The annotation.

Returns:

The annotation value.

CowlVector *cowl_annotation_get_annot(CowlAnnotation *annot)

Gets the annotations of the specified annotation.

Parameters:
  • annot – The annotation.

Returns:

The annotations, or NULL of the annotation has no annotations.