IF Commons GitHub

vocabulary

Written to: 2 requirements: 2 proved, 0 partly, 0 failing, 0 with no test recorded. 0002-kanon-content-checks FR-002, 0002-kanon-content-checks FR-003

The checks of a model's vocabulary and relations (commons 0033-kanon FR-028, FR-029): two elements with one id, an element or a relation of a kind that the model's vocabulary does not list, an annotation of Governance whose name it does not list, and a relation whose end is no element or whose ends are in two layers. Pure: it reads the model and returns findings in the form of the import check, so that one baseline holds all of them. A model with no vocabulary has no kind and no name checked; the duplicate ids and the relations are checked for every model.

What is an orphan, a broken external link or a chain of redirects is the host's, not Kanon's. A relation may be cyclic: a cycle is no finding.

import { modelFindings, type LayeredModel } from "@intellectual-frontiers/kanon";
declare const model: LayeredModel;
modelFindings(model).map((f) => f.key);

Source: commons/kanon/src/vocabulary.ts

1 of 1 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

modelFindingsfunction
function modelFindings(model: LayeredModel): readonly Finding[]

Every finding of the model's vocabulary, relations and ids, in the order of the elements, then of the relations.

Imported by 9 tests of the run (9 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.