Skip to main content

OntologyObjectPropertyRole

What it is

  • A thin subclass wrapper around naas_abi.ontologies.modules.NexusPlatformOntology.OntologyObjectPropertyRole.
  • Intended as an “action class” extension point for OntologyObjectPropertyRole.

Public API

  • class OntologyObjectPropertyRole(_OntologyObjectPropertyRole)
    • Inherits all behavior from the upstream _OntologyObjectPropertyRole.
    • actions(self)
      • Placeholder method meant to be overridden/implemented.
      • Current implementation: pass (no behavior).

Configuration/Dependencies

  • Depends on: naas_abi.ontologies.modules.NexusPlatformOntology.OntologyObjectPropertyRole (imported as _OntologyObjectPropertyRole).

Usage

from naas_abi.ontologies.classes.ontology_naas_ai.nexus.OntologyObjectPropertyRole import (
OntologyObjectPropertyRole,
)

role = OntologyObjectPropertyRole()
role.actions() # currently does nothing

Caveats

  • actions() is a stub and performs no work unless you implement it.