Knowledge providers

These functions allow the creation of knowledge providers backed by Cowl data structures.

Axiom provider

TmeAxiomProvider *tme_cowl_axiom_provider_alloc(CowlOntology *ontology)

Allocates a new axiom provider backed by a Cowl ontology.

Return

Axiom provider instance.

Parameters
  • ontology: Ontology instance.

void tme_cowl_axiom_provider_free(TmeAxiomProvider *provider)

Deallocates the axiom provider.

Parameters
  • provider: Axiom provider instance.

String provider

TmeStringProvider *tme_cowl_string_provider_alloc(CowlOntology *ontology)

Allocates a new string provider backed by a Cowl ontology.

Return

String provider instance.

Parameters
  • ontology: Ontology instance.

void tme_cowl_string_provider_free(TmeStringProvider *provider)

Deallocates the string provider.

Parameters
  • provider: String provider instance.

void tme_cowl_string_provider_load_strings(TmeStringProvider *provider, CowlOntology *ontology)

Loads strings from the specified Cowl ontology.

Note

This function is automatically called on the ontology referenced when allocating the string provider. It needs to be called manually if multiple ontologies are used to load knowledge into the reasoner.

Parameters
  • provider: String provider instance.

  • ontology: Ontology instance.