Skip to content

Interface: VocabularyHierarchy

@kortexya/reasoninglayer


@kortexya/reasoninglayer / VocabularyHierarchy

Defined in: src/types/vocabulary.ts:5279

GET /api/v1/vocabulary/schemes/{scheme_id}/hierarchy: the broader links of one scheme around a concept, or below its top concepts.

A concept with several parents appears once, with every relation that reaches it in via. complete: false with stopReason is a partial answer, not an error.

complete: boolean

Defined in: src/types/vocabulary.ts:5297

Whether every reachable concept is listed.


optional context?: VocabularyContextRef

Defined in: src/types/vocabulary.ts:5283

The stored context of the view.


direction: VocabularyHierarchyDirection

Defined in: src/types/vocabulary.ts:5289

The direction followed.


edges: VocabularyHierarchyEdge[]

Defined in: src/types/vocabulary.ts:5295

Every selected link between two concepts of nodes, by relation id.


nodes: VocabularyHierarchyNode[]

Defined in: src/types/vocabulary.ts:5293

The concepts reached, the starts included, by concept id.


optional root?: string

Defined in: src/types/vocabulary.ts:5287

The start concept (UUID); absent when the scheme’s top concepts are the starts.


schemeId: string

Defined in: src/types/vocabulary.ts:5285

The scheme; only its relations are followed (UUID).


optional stopReason?: VocabularyTraversalStopReason

Defined in: src/types/vocabulary.ts:5299

Why the traversal stopped, when incomplete.


transitive: boolean

Defined in: src/types/vocabulary.ts:5291

Whether links were followed transitively.


view: VocabularyViewRef

Defined in: src/types/vocabulary.ts:5281

The view.