What is an ontology?
Think of an ontology as the master blueprint for your data labeling tasks. It defines exactly what your team should be labeling and how they should label it. An ontology consists of features which are:- Objects: The items you want to identify (e.g., Car, Pedestrian, Tree).
- Classifications: Questions to categorize the data (e.g., Is the image blurry?, What time of day is it?).
- Relationships: Connections between labeled objects (e.g., a person is walking a dog).
Create your first ontology
Follow these steps to create a new, reusable ontology for your projects.- Go to the Schema tab in your Labelbox workspace and select Ontologies.
- Click the Create button to start the setup process.
- Choose the type of data this ontology will be used for (e.g., Image, Video, Text). This is a critical step. The media type determines which annotation tools (bounding box, polygon, etc.) will be available for you to add.
- In the setup screen, provide the following:
| Item | Description |
|---|---|
| Name | This is the name you will use to look up your ontology later. Give your ontology a descriptive name (e.g., “Vehicle Identification - US Roads”). |
| Objects | Objects in this context are specific items you want to identify and annotate in your data (e.g., car, person, building) Labelbox will search for existing features by name to encourage reuse. Click + Add to create or reuse object features. |
| Classifications | Classifications are questions or attributes used to categorize or describe objets or the overall data (e.g., Is the traffic light red or green?, What is the weather condition?). Click + Add to create or reuse classification tasks. |
| Relationships | Relationships are connections or interactions that exist between different labeled objects (e.g., a driver is inside a car). Click + Add to define relationships between your objects. |
- Click Create ontology to complete the setup.
Attach an ontology to a project
To use an ontology, you must first attach it to a project.- Go to the project’s Settings tab.
- Find the Label editor section and click Edit.
- Use the dropdown menu to select and attach your desired ontology.
Clone an ontology
If you want to build upon an existing ontology without affecting projects that use it, create a copy. This creates a duplicate, independent version that you can freely modify.- Create a new project.
- From the project overview, select Set up ontology.
- Select the ontology you want to copy from the list.
- Click Create copy and select.
- Name your new ontology.
Adding or archiving features in the copied ontology will not impact the original ontology from which the copy was created.However, modifications made to a specific feature included in the ontology will cascade through all ontologies containing the feature, including the original ontology.
Edit your ontology
Navigate to Schema > Ontologies and click on the ontology you wish to modify. To edit your ontologies, you can: Add a new feature: Click the + button under Objects or Classifications and search for the feature you want to add. Remember, this will not automatically require you to rework existing labels. Reorder features: In the edit screen, simply drag and drop the features into the new order you want them to appear for labelers. Archive a feature: If a feature has already been used to create annotations, you cannot delete it, but you can archive it. Archiving removes the feature from the labeler’s view but preserves all historical data.- Go to the Schema tab.
- Click Ontologies and select the ontology you want to edit.
- Click Edit.
- Select the feature you wish to remove.
- Click the settings icon in the top right corner to remove or archive the feature. If a feature has never been used, you can safely remove it permanently.
Archived features are still included in exportsTo ensure that all annotation data can be exported from our application, archiving a feature will not remove it from the export file. If you do not plan on using that data in your downstream systems, you will need to ignore those annotations based on feature schema ID.
Delete your ontology
To keep your workspace clean, you can filter for and delete all unused ontologies and features from the Schema tab.- Go to the **Schema **tab.
- Select Show : Unused.
- Click Delete unused ontologies.
Deleting an ontology is permanent and cannot be undone.