Ontology SDK Basics

An Ontology, or labeling protocol, defines the concepts, relationships, and representations in your data. Ontologies are essential for creating object and frame labels by defining what is being labeled.

Before you can apply Classifications to a Collection in Encord Active, the Classifications have to exist in an Ontology in Encord.

Encord supports Classifications with nested attributes up to 7 levels deep using Radio buttons (RadioAttribute). Checklists and text fields stop the nesting of attributes.

Annotation Ontologies

Ontology with Annotation: Creates an Ontology (“My test ontology”) with a single Bounding Box Object (“Cute cat”) in the structure.

Workflow Project with Ontology and Annotations: Creates a Workflow Project (“Cats annotation project”) with a dataset (“MY_CAT_DATASET”) and an ontology.

Classification Ontologies

Use the following example as a guide to creating your Ontology with Classifications using the SDK.

**Radio button: ** Creates an Ontology with 2 radio button lists.

Checklist: Creates an Ontology with 3 options in a checklist.

Text field: Creates an Ontology with a single text field.

Nested attributes: Creates an Ontology with 2 levels of nesting.

Ontologies with Annotations and Classifications

This example explains how to create an Ontology with annotations and classifications.