Skip to content

Interface: PatchSortRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / PatchSortRequest

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

Curate one concept’s vocabulary and lifecycle.

Every field is optional and only present fields mutate, so adding a synonym cannot blank a scope note the caller never read.

altLabels / hiddenLabels REPLACE the set; addAltLabels appends to it. Both exist because a tree view edits a whole set while an “add synonym” box appends one term without re-sending the rest.

This route does not edit feature declarations — the engine refuses a features key rather than dropping it. Add or amend a declaration with SortsClient.bulkCreateSorts, remove one with SortsClient.removeSortFeature, rename one or clear its description or index directive with SortsClient.patchSortFeature.

optional addAltLabels?: SortLabelInput[] | null

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

Append synonyms, keeping the existing ones. A label with the text of a held one and no language there gives it this language.


optional altLabels?: SortLabelInput[] | null

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

Replace the synonym set (skos:altLabel), each label with its language.


optional annotations?: Record<string, string> | null

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

Set custom annotations, merged key by key over the existing map.


optional description?: string | null

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

Set the human-readable definition (skos:definition).


optional hiddenLabels?: SortLabelInput[] | null

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

Replace the search-only label set (skos:hiddenLabel), each label with its language.


optional name?: string | null

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

Rename the concept. skos:prefLabel for a sort IS its name.


optional nameLanguage?: string | null

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

State the language of the preferred label (name), a BCP 47 tag; the empty string withdraws it. A tag that is not well-formed is refused 400 before anything is written.


optional related?: string[] | null

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

Replace the skos:related set. Symmetric — the other side gains the edge too.


optional scopeNote?: string | null

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

Set the scope note. An empty string clears it.


optional worldMode?: WorldModeDto | null

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

Change the sort’s world assumption.

Closing an open sort makes its required features bite and its undeclared features inadmissible — existing terms that break either are not retro-validated, but the next write to them is judged by the new mode.