Skip to content

manni terminology vocabulary

Built-in id: manni:terminology:1.2.0

Published at https://hawkeyexl.github.io/manni/schemas/terminology/1.2.0.json. A $schema that names this URL resolves to the bundled copy, with no network call.

The question it answers: what does this term mean, and what else is it called? Structure gives a page concepts, a list of terms from a glossary. This vocabulary is the glossary. A term entry names its term, defines it, lists the other names it goes by, and places it among other terms. It is the record manni term reads, and any glossary tool, graph builder or style checker can read it too. It also holds every TBX-Basic and TBX-Linguist data category, so a TBX termbase reads into term pages and back without loss. A term can also name the concepts it matches in other vocabularies. Adopt it when a team keeps a glossary and wants one spelling of each term held across pages, style checks and the graph.

Name the id in manni.config.yaml. Terminology is not in the default set, so a run checks it only where the config names it. An override points it at the folder that holds the term pages. An override replaces the set, so this one sets defaults: true. The default set then keeps core, which owns type and id, in front of terminology.

meta:
overrides:
- files: "docs/terms/**"
defaults: true
schemas:
- manni:terminology:1.2.0

manni term check checks the set as a whole. The schema checks the shape of one page, which check leaves to it.

The fields sit at the root of the page, flat, as every house vocabulary’s do. type, id and language belong to core and are not redeclared.

FieldTypeRequiredLocationNotes
labelstring, non-emptyon type: termpageThe one preferred name. skos:prefLabel
definitionstring, non-emptynopageWhat the term means, in full. skos:definition
abstractstring, non-emptynopageThe short form, one sentence, for a hover card. No SKOS term of its own, and it narrows skos:definition
alt-labelsstring or listnopageOther admitted names, such as synonyms, abbreviations and spelling variants. skos:altLabel
hidden-labelsstring or listnopageNames the term must not go by. Search still matches them. skos:hiddenLabel
broaderstring or listnopageLabels of the parent terms. skos:broader
narrowerstring or listnopageLabels of the child terms. skos:narrower
related-termsstring or listnopageLabels of associated terms. skos:related
seestring, non-emptynopageThe label of the entry this one redirects to. The inverse of skos:altLabel
scope-notestring, non-emptynopageHow far the term reaches, and where it stops. skos:scopeNote

Every list takes one non-empty string, or a non-empty list of unique non-empty strings.

A type: term page requires label and nothing else. manni term check reports an entry with neither definition nor see as missing-definition, and the strict overlay requires one of the two.

These tie the term to other vocabularies. None is required.

FieldTypeLocationNotes
notationstring, non-emptypageA code that identifies the concept in another system. skos:notation
exact-matchesIRI or listpageThe same concept in another vocabulary. Use it sparingly. skos:exactMatch
close-matchesIRI or listpageA near-equivalent concept elsewhere. This is the common case. skos:closeMatch
broad-matchesIRI or listpageA broader concept in another vocabulary. skos:broadMatch
narrow-matchesIRI or listpageA narrower concept in another vocabulary. skos:narrowMatch
related-matchesIRI or listpageAn associated concept in another vocabulary. skos:relatedMatch

An IRI is a string in JSON Schema’s uri format. A list of them is non-empty, and its items are unique.

These carry a TBX termbase’s data, one TBX category each. The level of a value is where it sits. The root of the page is the language level, concept-entry the concept level, and a designations item the term level. Every field below is valid at all three levels, and none is required.

FieldTypeLocationNotes
subject-fieldstring, non-emptypageThe subject field. TBX descrip type="subjectField"
contextsstring or listpageSentences that show the term in use. TBX descrip type="context"
notesstring or listpageFree-text notes. TBX note
sourcesstring or listpageWhere the information came from. TBX admin type="source"
customer-subsetsstring or listpageThe customers the entry applies to. TBX admin type="customerSubset"
project-subsetsstring or listpageThe projects the entry applies to. TBX admin type="projectSubset"
cross-referenceslist of linkspageLinks to other entries. TBX ref type="crossReference"
external-cross-referenceslist of linkspageLinks outside the termbase. TBX xref type="externalCrossReference"
graphicslist of linkspageImages that illustrate the concept. TBX xref type="xGraphic"
transactionslistpageThe entry’s history. Each item has a type, and may have a date and a responsibility. TBX transacGrp
tbx-elementslist of stringspageTBX elements no named field maps, whole, in source order

definition is valid at the two inner levels as well. A link is a target string, or a mapping with a target and an optional text. A list of links and transactions take a list. A text field that takes a list also takes one string.

Three blocks sit at the root:

FieldTypeLocationNotes
concept-entryobjectpageThe concept level. It holds definition and the fields above. TBX termEntry
designationslist of objectspageDetail per designation, in TBX order. Each item requires term. TBX tig, ntig or termSec
tbx-markuplist of stringspageThe marked-up form of any value whose text it matches, as inline XML

A designations item names the designation it describes in term. It holds the fields above, and these, which are valid nowhere else:

FieldTBX termNote or admin type
administrative-statusadministrativeStatus
part-of-speechpartOfSpeech
grammatical-gendergrammaticalGender
grammatical-numbergrammaticalNumber
term-typetermType
term-locationtermLocation
geographical-usagegeographicalUsage
registerregister
readingreading
reading-notereadingNote
transfer-commentstransferComment

Each holds a string, and transfer-comments a string or a list. A picklist value is a string here, kept as written. The strict overlay closes the picklists. The terminology fields page has the values TBX names and how a TBX file reads into them.

type: term marks an entry, and turns on the label requirement. type: term-set marks a file whose body holds many entries, and imposes nothing on the file’s own metadata. Files without the vocabulary’s fields pass. The terminology fields page covers how manni term reads each construct.

The Location column is the x-manni-location mark each field carries. page means the value belongs in the document’s own metadata and reaches delivered output. external means it belongs in the collection’s external-metadata manifest. A term’s names and meaning are what a reader or an agent fetching the page acts on, so every field is page. See field location for how the marks are used.

Allowed. The root is open, so a generator’s keys and the other vocabularies’ keys pass beside terminology’s. concept-entry and a designations item are open too. Terminology checks only the keys it claims, and the label rule on type: term.

---
title: Progressive lens
description: What a progressive lens is, and when a prescription calls for one.
type: term
id: progressive-lens
label: progressive lens
alt-labels: [PAL, graduated lens]
hidden-labels: [no-line bifocal]
broader: [corrective lens]
related-terms: [bifocal]
abstract: Lenses that correct presbyopia without a visible line.
definition: >-
Corrective lenses whose optical power increases continuously from the top of
the lens to the bottom, correcting presbyopia without the visible boundary a
bifocal carries.
---

A redirect entry names its term and carries see in place of a definition.

---
title: Varifocal
description: Varifocal is another name for a progressive lens.
type: term
id: varifocal
label: varifocal
see: progressive-lens
---

A term page that relies on title for its name fails. title names the page, and label names the term.

---
title: Progressive lens
description: What a progressive lens is, and when a prescription calls for one.
type: term
id: progressive-lens
definition: Corrective lenses whose power increases from the top to the bottom.
---
$ manni meta validate page.md --no-config -s manni:core:1.0.0 -s manni:terminology:1.2.0
✗ page.md
(root) must have required property 'label' (line 1) [manni:terminology:1.2.0]
manni:terminology:1.2.0 label: The one preferred name of the term (skos:prefLabel).
Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-terminology/
1 file checked, 0 passed, 1 failed, 1 error

The exit code is 1. A designations item without its term fails at the item:

✗ page.md
/designations/0 must have required property 'term' (line 9) [manni:terminology:1.2.0]
manni:terminology:1.2.0 designations/term: The designation this item describes.
Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-terminology/
  • Flat at the root, not inside graph. The graph block is the family’s one exception to flat keys. A second exception makes it a pattern. A record that exists only inside another tool’s envelope also makes that tool a dependency of writing a definition.
  • The kind of label is the status. label is preferred, alt-labels are admitted, and hidden-labels are deprecated, which is what SKOS documents hiddenLabel for. DITA 2.0 removed <glossStatus> along with most of its other glossary metadata. A designations item’s administrative-status overrides the kind only where TBX names a status the kinds cannot, such as superseded.
  • The level is the position. TBX states a value about the concept, one language or one designation. The record puts each where it applies, rather than tagging each value with a level.
  • A term per language. The labels stay plain strings, because the graph, Vale, manni term check and manni meta query all read them that way. A concept in several languages is several entries joined on id.
  • Lossless before tidy. A picklist value is kept as written, and what no field names rides in tbx-elements. Strict is where values are policed, so reading a vendor’s termbase never rejects one.
  • Two lengths of definition. A rendered entry wants the full text, and a hover card wants a sentence. Kubernetes, mdbook-termlink and GitLab each split the definition independently, so abstract is its own field.
  • see is a redirect, not a relation. An entry with see names a term and sends the reader elsewhere. Carrying a definition as well is a contradiction. The open schema leaves it to manni term check, which reports it as see-not-empty. The strict overlay refuses it.
  • The id survives a rename. id comes from core. A concept identified by its preferred label changes identity when the label is respelled, and cannot hold synonyms without picking a winner.
  • abstract is not description. description says what the page is about. abstract says what the term is. They coincide on a well-written term page and diverge on a manifest entry or a definition-list entry, which have no page.
  • The root fields feed the graph. manni graph build reads the termbase manni term check reads, and each term becomes a concept in the graph’s one concept scheme. label, alt-labels, hidden-labels, broader, narrower, definition and scope-note map to their SKOS twins, and related-terms maps to skos:related. notation maps to skos:notation, and each match field to its SKOS mapping property. A see entry becomes an alt-label of its target. The graph vocabulary keeps its own block, and a term page whose block names no label is about its term.

Strict overlay id: manni:terminology-strict:1.2.0

Published at https://hawkeyexl.github.io/manni/schemas/terminology-strict/1.2.0.json. The overlay holds only what strict adds. It narrows the form of a value that is present. On a type: term page it requires a definition or a see. A page with none of the vocabulary’s fields still passes it.

FieldStrict adds
labelOne line, with no leading or trailing whitespace
seeOne line, with no leading or trailing whitespace, the form a label takes
subject-field, a designation’s term, a link’s targetOne line, with no leading or trailing whitespace
tbx-elementsEach item starts with <
administrative-statuspreferred, admitted, deprecated, superseded or none
part-of-speechadjective, noun, other, verb, adverb or properNoun
grammatical-gendermasculine, feminine, neuter or other
grammatical-numbersingular, plural, dual, mass or otherNumber
term-typefullForm, acronym, abbreviation, shortForm, variant or phrase
term-locationthe TBX-Basic interface picklist, such as menuItem or pushButton
registerthe TBX-Linguist register picklist, such as technicalRegister
the entryon type: term, a definition or a see, and never both

strict: true does not reach this overlay, because the vocabulary is not in the default set. List both ids to adopt it:

meta:
schemas:
- manni:terminology:1.2.0
- manni:terminology-strict:1.2.0

Each schema is checked on its own, and a finding names the one that produced it. A strict-only failure reads as one. This redirect also carries a definition.

---
title: Varifocal
description: Varifocal is another name for a progressive lens.
type: term
id: varifocal
label: varifocal
see: progressive-lens
definition: A progressive lens, under the name opticians in the UK use.
---
$ manni meta validate page.md --no-config -s manni:core:1.0.0 -s manni:terminology:1.2.0 -s manni:terminology-strict:1.2.0
✗ page.md
(root) must NOT be valid (line 1) [manni:terminology-strict:1.2.0]
manni:terminology-strict:1.2.0
Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-terminology/
1 file checked, 0 passed, 1 failed, 1 error

The open vocabulary accepts the page, so the overlay alone fails it.

Built-in id: manni:terminology:1.1.0

Strict overlay id: manni:terminology-strict:1.1.0

Published at https://hawkeyexl.github.io/manni/schemas/terminology/1.1.0.json and https://hawkeyexl.github.io/manni/schemas/terminology-strict/1.1.0.json. Version 1.1.0 claims every field 1.2.0 claims except notation and the five match fields. It requires a definition or a see on a type: term page, and its strict overlay requires no key.

Both ids still resolve, and a page that names one keeps it. Every 1.1.0 page is valid 1.2.0, so moving a set to 1.2.0 changes only the ids it names. A set that stays on 1.1.0 lists them:

meta:
schemas:
- manni:terminology:1.1.0
- manni:terminology-strict:1.1.0

Built-in id: manni:terminology:1.0.0

Strict overlay id: manni:terminology-strict:1.0.0

Published at https://hawkeyexl.github.io/manni/schemas/terminology/1.0.0.json and https://hawkeyexl.github.io/manni/schemas/terminology-strict/1.0.0.json. Version 1.0.0 claims the ten SKOS fields and validates them as 1.1.0 does. It claims none of the TBX data categories, so it checks nothing about them. Its strict overlay narrows label, see and the entry rule.

Both ids still resolve, and a page that names one keeps it. Every 1.0.0 page is valid 1.1.0, so moving a set to 1.1.0 changes only the ids it names. A set that stays on 1.0.0 lists them:

meta:
schemas:
- manni:terminology:1.0.0
- manni:terminology-strict:1.0.0