Skip to main content

Ontology Examples

This page provides practical examples of working with ontologies in the Graphora client library.

Creating and Registering an Ontology

The following example demonstrates how to create an ontology definition and register it with Graphora:

Loading an Ontology from a File

You can also load an ontology from a YAML file:

Retrieving an Existing Ontology

You can retrieve a previously registered ontology by its ID:

Updating an Existing Ontology

To update an existing ontology, you can use the same register_ontology method with an updated definition:
These examples demonstrate the basic operations you can perform with ontologies in the Graphora client library. For more detailed information about ontology structure and options, see the Ontology Concepts page.