Skip to main content

GraphViewRole

What it is

  • A thin subclass wrapper around naas_abi.ontologies.modules.NexusPlatformOntology.GraphViewRole.
  • Intended as an “action class” extension point; currently contains a stub actions() method.

Public API

  • class GraphViewRole(_GraphViewRole)
    • Extends: naas_abi.ontologies.modules.NexusPlatformOntology.GraphViewRole
    • Purpose: provide a place to implement custom action logic.
    • Methods:
      • actions(self) -> None
        • Stub method meant to be overridden/implemented.
        • Current behavior: does nothing (pass).

Configuration/Dependencies

  • Depends on:
    • naas_abi.ontologies.modules.NexusPlatformOntology.GraphViewRole (imported as _GraphViewRole)

Usage

from naas_abi.ontologies.classes.ontology_naas_ai.nexus.GraphViewRole import GraphViewRole

role = GraphViewRole()
role.actions() # currently no-op

Caveats

  • actions() is not implemented; calling it has no effect unless you add logic.