Individuals

struct CowlIndividual

Represents an Individual in the OWL 2 specification.

Pseudo-extends: CowlPrimitive

bool cowl_individual_is_named(CowlAnyIndividual *ind)

Returns true if the underlying individual is named.

Parameters:
  • ind – The individual.

Returns:

True if the underlying individual is named, false otherwise.

Named individuals

struct CowlNamedInd

Represents a NamedIndividual in the OWL 2 specification.

Pseudo-extends: CowlIndividual, CowlEntity

CowlNamedInd *cowl_named_ind(CowlIRI *iri)

Returns a named individual.

Note

You must release the returned object via cowl_release().

Parameters:
  • iri – IRI of the individual.

Returns:

Named individual, or NULL on error.

CowlNamedInd *cowl_named_ind_from_string(UString string)

Returns a named individual 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:

Named individual, or NULL on error.

CowlIRI *cowl_named_ind_get_iri(CowlNamedInd *ind)

Gets the IRI of the named individual.

Parameters:
  • ind – The named individual.

Returns:

IRI of the named individual.

cowl_named_ind_from_static(str)

Returns a named individual given the string literal representing its IRI.

Note

You must release the returned object via cowl_release().

Parameters:
  • strchar const [] String literal.

Returns:

CowlNamedInd * Named individual, or NULL on error.

Anonymous individuals

struct CowlAnonInd

Represents an AnonymousIndividual in the OWL 2 specification.

Pseudo-extends: CowlIndividual, CowlPrimitive, CowlAnnotValue

CowlAnonInd *cowl_anon_ind(CowlString *id)

Returns an anonymous individual.

Note

By passing NULL as the identifier, a new identifier is randomly generated.

Note

You must release the returned object via cowl_release().

Parameters:
  • id – Anonymous individual identifier.

Returns:

Anonymous individual, or NULL on error.

CowlAnonInd *cowl_anon_ind_from_string(UString string)

Returns an anonymous individual given the string representation of its identifier.

Note

You must release the returned object via cowl_release().

Parameters:
  • string – Anonymous individual identifier.

Returns:

Anonymous individual, or NULL on error.

CowlString *cowl_anon_ind_get_id(CowlAnonInd *ind)

Gets the node ID of the specified anonymous individual.

Parameters:
  • ind – The anonymous individual.

Returns:

Node ID.

cowl_anon_ind_from_static(str)

Returns an anonymous individual given a string literal representing its identifier.

Note

You must release the returned object via cowl_release().

Parameters:
  • strchar const [] String literal.

Returns:

CowlAnonInd * Anonymous individual, or NULL on error.