raillabel_providerkit.validation.validate_ontology package

Submodules

raillabel_providerkit.validation.validate_ontology.validate_ontology module

raillabel_providerkit.validation.validate_ontology.validate_ontology.validate_ontology(scene: Scene, ontology_input: dict | Path) list[Issue]

Validate a scene based on the classes and attributes.

Parameters:
  • scene (raillabel.Scene) – The scene containing the annotations.

  • ontology_input (dict or Path) – Ontology YAML-data or file containing a information about all classes and their attributes. The ontology must adhere to the ontology_schema. If a path is provided, the file is loaded as a YAML.

Returns:

list of all ontology errors in the scene. If an empty list is returned, then there are no errors present.

Return type:

list[Issue]

Module contents

Package for validating a scene via an ontology.