Skip to content

Interface: SortDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SortDto

Defined in: src/types/sorts.ts:490

optional altLabels?: SortLabel[]

Defined in: src/types/sorts.ts:548

Synonyms (skos:altLabel) — the other words people use for this concept, each of which resolves to it in label search, extraction and NL query.

Written by BulkSortDefinition.altLabels and curated by PatchSortRequest.altLabels / PatchSortRequest.addAltLabels. Each label carries its language.


optional annotations?: Record<string, string>

Defined in: src/types/sorts.ts:518

Custom annotations, as declared — the map CreateSortRequest.annotations wrote and PatchSortRequest.annotations merges into.


optional boundConstraints?: BoundConstraintDto[]

Defined in: src/types/sorts.ts:502

Inter-feature ordering constraints.


optional coextensive?: CoextensiveDefinitionDto[]

Defined in: src/types/sorts.ts:591

Formulas observed coextensive with SortDto.definition on some corpus, each with the number of examples it held over.

These are equivalence hypotheses a curator confirms — never identities the engine asserts.


optional definition?: string | null

Defined in: src/types/sorts.ts:575

The ONE defining formula of a defined sort, rendered (mod_3∘id(day) = 1). undefined for a nominal sort.

Without it a client reading a generated class can only guess its meaning from the name.


optional description?: string | null

Defined in: src/types/sorts.ts:504

Human-readable description.


optional externalMatches?: ExternalMatchDto[]

Defined in: src/types/sorts.ts:596

SKOS external-ontology alignments (BFO/CCO and the like) attached to this sort by the upper-ontology aligner.


optional featureDeclarations?: FeatureDescriptorDto[]

Defined in: src/types/sorts.ts:500

Feature declarations as an array of descriptors.


optional featureEquations?: string[]

Defined in: src/types/sorts.ts:601

Defined (functional) features — feature = function(paths), computed from the term rather than asserted on it, rendered one per entry.


optional hiddenLabels?: SortLabel[]

Defined in: src/types/sorts.ts:554

Search-only labels (skos:hiddenLabel) — misspellings, abbreviations, legacy terms. They resolve like synonyms but are never displayed. Each label carries its language.


id: string

Defined in: src/types/sorts.ts:492

Unique identifier (UUID).


name: string

Defined in: src/types/sorts.ts:494

Sort name (unique within tenant).


optional nameLanguage?: string | null

Defined in: src/types/sorts.ts:559

The language of the preferred label (SortDto.name): a BCP 47 tag in canonical case, or absent when the source states none.


optional needsReview?: boolean

Defined in: src/types/sorts.ts:510

Whether this sort needs human review.


optional origin?: SortOriginDto | null

Defined in: src/types/sorts.ts:506

How this sort was created.


parents: string[]

Defined in: src/types/sorts.ts:498

Parent sort IDs (multiple inheritance).


optional pluginId?: string | null

Defined in: src/types/sorts.ts:529

The plugin that contributed this sort, when a marketplace install created it. undefined for every ordinary sort.

A plugin’s sorts are committed under a namespaced name (plugin:<plugin-name>:<local>) so two plugins never collide on the same local name. This field and SortDto.pluginLocalName are what tie that name back to its author.


optional pluginLocalName?: string | null

Defined in: src/types/sorts.ts:537

The name the plugin author wrote, before namespacing.

GET /api/v1/sorts/tenant/{id}?name_prefix=… matches this form as well as the committed SortDto.name.


optional proposedDefinition?: ProposedSortDefinitionDto | null

Defined in: src/types/sorts.ts:582

A definition proposed for this sort and waiting for review. It is not part of the theory: nothing unfolds it until another steward approves the sort (SortsClient.approveSort), which installs it as SortDto.definition. undefined when nothing waits.


optional related?: string[]

Defined in: src/types/sorts.ts:566

Associative links (skos:related) — sort ids, non-hierarchical.


optional scopeNote?: string | null

Defined in: src/types/sorts.ts:564

Usage guidance (skos:scopeNote) — when to reach for this concept rather than a neighbouring one. The disambiguator for near-homonyms.


optional status?: SortStatusDto | null

Defined in: src/types/sorts.ts:508

Lifecycle status.


tenantId: string

Defined in: src/types/sorts.ts:496

Tenant that owns this sort.


optional worldMode?: WorldModeDto

Defined in: src/types/sorts.ts:512

The world assumption this sort makes — open (default) or closed.