OntologyRole
What it is
- A thin subclass of
naas_abi.ontologies.modules.NexusPlatformOntology.OntologyRole. - Provides an overridable
actions()hook intended for custom logic.
Public API
class OntologyRole(_OntologyRole)- Inherits all behavior from the base
_OntologyRole. actions(self)- Placeholder method for implementing role-specific actions.
- Currently does nothing (
pass).
- Inherits all behavior from the base
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.OntologyRole(imported as_OntologyRole).
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.OntologyRole import OntologyRole
role = OntologyRole()
role.actions() # No-op by default
Caveats
actions()is unimplemented; calling it has no effect until overridden.