Class OntologyNode<T>

Type Parameters

  • T extends Record<string, unknown> = Record<string, string>

Hierarchy (View Summary)

Implements

Indexable

  • [x: string]: any

Constructors

Properties

_secret_background: T = ...
data: T = ...
data_meta: DataMeta = {}
edges: OntologyEdge[] = []
expand: number
meta: Meta = ...
parent?: IModel
parentEdges: OntologyEdge[] = []
attributes: string[] = ...
checker: ICheckerSuite = ...
endpoint: string = '/2.1/data'
streamCallback: StreamHandlerCallbacks = ...

Accessors

  • get ontology(): OntologyEdge[]
  • Get the ontology edges of the current object.

    Returns OntologyEdge[]

    The ontology edges of the current object.

    This is here for backwards compatibility.

    Should use edges instead.

  • set ontology(edges: OntologyEdge[]): void
  • Set the ontology edges of the current object.

    Parameters

    Returns void

    This is here for backwards compatibility.

    Should use edges instead.

Methods

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • name: K
    • secret: boolean = false

    Returns undefined | T[K]

  • Type Parameters

    • K extends string | number | symbol

    Returns K[]

  • Parameters

    • OptionalreloadAll: boolean
    • OptionaldefaultExpand: number

    Returns Promise<boolean>

  • Parameters

    • OptionalreloadAll: boolean
    • defaultExpand: number = 0

    Returns Promise<boolean>

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • name: K
    • secret: boolean = false

    Returns void

  • Type Parameters

    • K extends string | number | symbol

    Parameters

    • name: K
    • item: T[K]
    • secret: boolean = false

    Returns void

  • Parameters

    • OptionalcustomKeys: string[]

    Returns Promise<boolean>

  • Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>

    Parameters

    • id: string

    Returns Promise<undefined | Data<T>>

  • Finds instances of the Data model with a specific ID.

    Type Parameters

    • T extends Record<string, unknown> = Record<string, unknown>

    Parameters

    • id: string

      The ID to search for.

    Returns Promise<Data<T>[]>

    A Promise that resolves to an array of Data instances matching the provided ID.

  • Parameters

    • options: {
          body?: JSONObject;
          create?: boolean;
          endpoint: string;
          message: string;
          params?: JSONObject;
          quantity: number | "all";
          readOnly?: boolean;
      }

    Returns Promise<JSONObject[]>

  • Parameters

    • type: undefined | string
    • name: string
    • params: any
    • isStatic: boolean = false

    Returns void