OntologyClassificationLevel Objects
GLOBALOntologyClassificationLevel - Indicates a global, whole-image classification that applies to the entire data unit rather than to a specific object or region.
Classification Objects
Attribute (or multiple, if applicable) that defines metadata
or semantic context for the image, such as scene type, lighting condition,
or general content category.
Attributes:
uidint - Unique identifier for the classification.feature_node_hashstr - Unique hash value identifying the feature node in the ontology tree corresponding to this classification.attributesList[Attribute] - List ofAttributeinstances that define the semantic meaning or properties associated with the classification._levelOntologyClassificationLevel | None - The hierarchical level of this classification (for example:GLOBAL). Optional: defaults to None.
title
str- The title of the classification.
level
children
Sequence[OntologyElement]- The attributes of the classification.
is_global
bool- True if the classification level is global, False otherwise.
create_instance
ClassificationInstance- An instance of ClassificationInstance.
from_dict
ddict - A dictionary containing classification information.
Classification- An instance of Classification.
to_dict
ValueError- If the classification does not have any attributes.
add_attribute
clsType[AttributeType] - The attribute type, one ofRadioAttribute,ChecklistAttribute,TextAttribute.namestr - The user-visible name of the attribute.local_uidOptional[int] - Integer identifier of the attribute. Normally auto-generated; omit this unless the aim is to create an exact clone of an existing ontology.feature_node_hashOptional[str] - Global identifier of the attribute. Normally auto-generated; omit this unless the aim is to create an exact clone of an existing ontology.requiredbool - Whether the label editor would mark this attribute as ‘required’.
AttributeType- The created attribute that can be further specified with Options, where appropriate.
ValueError- If the classification already has an attribute assigned.

