shtukbasehub

Common ontology

A project's ontology on one map: what layers it consists of, how the layers are linked and by what laws. The ontology page, the ontology of the "Base structure" layer and the build of two ontology lenses.

Packageontologyv0.2.113 files

Common ontology

The package places the page Project ontology (two groups of layers, the law of links, bridges between layers) and the ontology of the "Base structure" layer itself, /base/ontology/base.md, and builds two lenses from the base's markdown:

  • build: /base/ontology/layers.html: layers, their types and bridges, contours by layer, where things live. No kit needed.
  • graph: /base/ontology/graph.html: one graph of types and links of all layers, with the kit embedded in the file. The kit comes from the lenses package (.shtukbase/packages/lenses/kit/); the variable SHTUK_KIT can point to another copy. The graph takes its style and skins (the Kit / Draft switch) the same way as lib/kit.css: from the kit-style package through the kit build.

Where the boundary is

  • Here are the common map of the project and its lenses.
  • The ontology of a single layer (/<layer>/ontology.md) is placed by the layer's package.
  • The "Where things live" map is the layers package; the lens format and the kit are the lenses package.

The package has no norms: ontology pages describe, they do not require. The build code is TypeScript for Bun, with no external dependencies: actions/build.ts and actions/graph.ts with modules in actions/lib/ (render_ontology.ts, render_layer_ontology.ts, lenshead.ts, lenscommon.ts, mdlite.ts) and templates in actions/lib/templates/. The header of pages is read by Bun.YAML. The actions are run by the shtuk run tool from the project root; the only parameter is --out <file>.