RangeClassificationOverlapStrategy
For now, classifications for range spaces are always globalRangeSpace Objects
put_object_instance
object_instance- The object instance to add to the space.ranges- Time ranges where the object should appear. Can be:- A single Range object (Range)
- A list of Range objects for multiple ranges (List[Range])
on_overlap- Strategy for handling existing annotations on overlapping ranges.- āerrorā (default): Raises an error if annotation already exists on overlapping ranges.
- āmergeā: Adds the object to new ranges while keeping existing annotations.
- āreplaceā: Removes object from existing ranges before adding to new ranges.
created_at- Optional timestamp when the annotation was created.created_by- Optional identifier of who created the annotation.last_edited_at- Optional timestamp when the annotation was last edited.last_edited_by- Optional identifier of who last edited the annotation.confidence- Optional confidence score for the annotation (0.0 to 1.0).manual_annotation- Optional flag indicating if this was manually annotated.
LabelRowError- If ranges are invalid or if annotation already exists when on_overlap=āerrorā.
remove_object_instance_from_range
object_instance- The object instance to remove from ranges.ranges- Ranges to remove the object from. Can be:- A single Range object (Range)
- A list of Range objects for multiple ranges (List[Range])
Ranges- List of ranges where the object was actually removed. Empty if the object didnāt exist on any of the specified ranges.
put_classification_instance
classification_instance- The classification instance to add to the space.on_overlap- Strategy for handling existing classifications.- āerrorā (default): Raises an error if classification of the same ontology item already exists.
- āreplaceā: Overwrites existing classifications.
created_at- Optional timestamp when the annotation was created.created_by- Optional identifier of who created the annotation.last_edited_at- Optional timestamp when the annotation was last edited.last_edited_by- Optional identifier of who last edited the annotation.confidence- Optional confidence score for the annotation (0.0 to 1.0).manual_annotation- Optional flag indicating if this was manually annotated.
LabelRowError- If classification already exists when on_overlap=āerrorā.
remove_object_instance
object_hash- The hash identifier of the object instance to remove.
Optional[ObjectInstance]- The removed object instance, or None if the object wasnāt found.
remove_classification_instance
classification_hash- The hash identifier of the classification instance to remove.
Optional[ClassificationInstance]- The removed classification instance, or None if the classification wasnāt found.

