OntologyModule
What it is
- A thin subclass of
naas_abi.ontologies.modules.NexusPlatformOntology.OntologyModule. - Provides an
actions()hook intended to be implemented with module-specific logic.
Public API
class OntologyModule(_OntologyModule)- Inherits all behavior from the upstream
_OntologyModule. actions(self)- Placeholder method for defining actions.
- Currently does nothing (
pass).
- Inherits all behavior from the upstream
Configuration/Dependencies
- Depends on:
naas_abi.ontologies.modules.NexusPlatformOntology.OntologyModule(imported as_OntologyModule).
Usage
from naas_abi.ontologies.classes.ontology_naas_ai.nexus.OntologyModule import OntologyModule
module = OntologyModule()
module.actions() # no-op by default
Caveats
actions()is unimplemented; it must be overridden or filled in to perform any work.