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.
RadioAttribute
). Checklists and text fields stop the nesting of attributes.
Annotation Ontologies
Ontology with Annotation: Creates an Ontology (title=“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. Number: Creates an Ontology with a single numerical input 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. Ensure you replace:<file-path-to-ssh-private-key>
with the pull path to your private key.My test Ontology
with the name of your Ontology.Cute Cat
with the name of your Ontology class.- As well as any other options relevant to your Ontology.