digestOfconstno test imports itconst digestOf: (of: readonly OntologyFile[]) => Promise<string>The SHA-256 of the ontology's canonical N-Triples (0012-ontology FR-012): it changes with a fact, never with the layout of a module.
Generate the Mizan ontology's Turtle from its TypeScript (commons 0012-ontology FR-011, 0016-ladder).
bun commons/libraries/src/generate-ontology.ts write commons/generated/mizan.auto.ttl bun commons/libraries/src/generate-ontology.ts --check exit 1, writing nothing, where the file is not what the ontology makes
The ontology (commons/ontology/src/mizan/*.ts) is the source, read as the typed values it is; the Turtle is never edited by hand. The ontology is checked first: a rule it breaks stops the run (exit 2) with every finding named.
Spec: 0001-libraries FR-008
digestOfconstno test imports itconst digestOf: (of: readonly OntologyFile[]) => Promise<string>The SHA-256 of the ontology's canonical N-Triples (0012-ontology FR-012): it changes with a fact, never with the layout of a module.
findingsOffunctionno test imports itfunction findingsOf(of: readonly OntologyFile[]): readonly string[]The findings a rule of the kernel finds in the ontology, one sentence each; none where it is sound.
RUNconstno test imports itconst RUN: "bun commons/libraries/src/generate-ontology.ts"The command that writes the file again.
TURTLE_PATHconstno test imports itconst TURTLE_PATH: "generated/mizan.auto.ttl"Where the Turtle is written, from commons' folder.
turtleOffunctionno test imports itfunction turtleOf(of: readonly OntologyFile[], digest: string, source?: string): stringThe ontology as canonical Turtle: every file's individuals, with every file's prefixes.
MIZANconstno test imports itconst MIZAN: OntologyPublicationMizan's own ontology, as it is published (0019-mizan-integrations FR-010 to FR-019).
IFCCMconstno test imports itconst IFCCM: OntologyPublicationThe ontology of Intellectual Frontiers Capabilities Configuration Management (commons 0020-ifccm), as it is published.
IFQSconstno test imports itconst IFQS: OntologyPublicationThe ontology of the Intellectual Frontiers Quality System (commons 0021-ifqs, 0022-trust), as it is published.
OTOconstno test imports itconst OTO: OntologyPublicationThe Operational Truth Ontology (commons ontology 0002-oto), as it is published.
PLANNINGconstno test imports itconst PLANNING: OntologyPublicationThe ontology of Planning (commons 0037-planning), as it is published.
IFRconstno test imports itconst IFR: OntologyPublicationThe ontology of Intellectual Frontiers Releases (commons 0026-works-versioning), as it is published.
KANONconstno test imports itconst KANON: OntologyPublicationThe ontology of Kanon (commons 0033-kanon), as it is published.
publicationsconstno test imports itconst publications: readonly OntologyPublication[]The ontologies of commons that are published, each from its own typed modules: Mizan's, then the ones its specifications define.
exportsOffunctionno test imports itfunction exportsOf(auditDigest: string): Promise<ReadonlyMap<string, string>>The exports of the ontology (0019-mizan-integrations FR-010): everything but its Turtle, by its path from commons' folder.
wantedfunctionno test imports itfunction wanted(): Promise<ReadonlyMap<string, string>>Every file the ontologies make, by its path from commons' folder, in the order they are written.
textOffunctionno test imports itfunction textOf(r: { readonly kind: "ok"; readonly value: string; } | { readonly kind: "err"; readonly error: readonly string[]; }, what: string): stringThe text of an exporter's result, or a thrown sentence naming what the ontology states that the form cannot hold (main turns it into exit 2).