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.
Use it
Section titled “Use it”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.0manni term check checks the set as a whole. The schema checks the shape of
one page, which check leaves to it.
Fields
Section titled “Fields”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.
| Field | Type | Required | Location | Notes |
|---|---|---|---|---|
label | string, non-empty | on type: term | page | The one preferred name. skos:prefLabel |
definition | string, non-empty | no | page | What the term means, in full. skos:definition |
abstract | string, non-empty | no | page | The short form, one sentence, for a hover card. No SKOS term of its own, and it narrows skos:definition |
alt-labels | string or list | no | page | Other admitted names, such as synonyms, abbreviations and spelling variants. skos:altLabel |
hidden-labels | string or list | no | page | Names the term must not go by. Search still matches them. skos:hiddenLabel |
broader | string or list | no | page | Labels of the parent terms. skos:broader |
narrower | string or list | no | page | Labels of the child terms. skos:narrower |
related-terms | string or list | no | page | Labels of associated terms. skos:related |
see | string, non-empty | no | page | The label of the entry this one redirects to. The inverse of skos:altLabel |
scope-note | string, non-empty | no | page | How 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.
Mappings
Section titled “Mappings”These tie the term to other vocabularies. None is required.
| Field | Type | Location | Notes |
|---|---|---|---|
notation | string, non-empty | page | A code that identifies the concept in another system. skos:notation |
exact-matches | IRI or list | page | The same concept in another vocabulary. Use it sparingly. skos:exactMatch |
close-matches | IRI or list | page | A near-equivalent concept elsewhere. This is the common case. skos:closeMatch |
broad-matches | IRI or list | page | A broader concept in another vocabulary. skos:broadMatch |
narrow-matches | IRI or list | page | A narrower concept in another vocabulary. skos:narrowMatch |
related-matches | IRI or list | page | An 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.
TBX data categories
Section titled “TBX data categories”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.
| Field | Type | Location | Notes |
|---|---|---|---|
subject-field | string, non-empty | page | The subject field. TBX descrip type="subjectField" |
contexts | string or list | page | Sentences that show the term in use. TBX descrip type="context" |
notes | string or list | page | Free-text notes. TBX note |
sources | string or list | page | Where the information came from. TBX admin type="source" |
customer-subsets | string or list | page | The customers the entry applies to. TBX admin type="customerSubset" |
project-subsets | string or list | page | The projects the entry applies to. TBX admin type="projectSubset" |
cross-references | list of links | page | Links to other entries. TBX ref type="crossReference" |
external-cross-references | list of links | page | Links outside the termbase. TBX xref type="externalCrossReference" |
graphics | list of links | page | Images that illustrate the concept. TBX xref type="xGraphic" |
transactions | list | page | The entry’s history. Each item has a type, and may have a date and a responsibility. TBX transacGrp |
tbx-elements | list of strings | page | TBX 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:
| Field | Type | Location | Notes |
|---|---|---|---|
concept-entry | object | page | The concept level. It holds definition and the fields above. TBX termEntry |
designations | list of objects | page | Detail per designation, in TBX order. Each item requires term. TBX tig, ntig or termSec |
tbx-markup | list of strings | page | The 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:
| Field | TBX termNote or admin type |
|---|---|
administrative-status | administrativeStatus |
part-of-speech | partOfSpeech |
grammatical-gender | grammaticalGender |
grammatical-number | grammaticalNumber |
term-type | termType |
term-location | termLocation |
geographical-usage | geographicalUsage |
register | register |
reading | reading |
reading-note | readingNote |
transfer-comments | transferComment |
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.
Additional properties
Section titled “Additional properties”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.
Example
Section titled “Example”---title: Progressive lensdescription: What a progressive lens is, and when a prescription calls for one.type: termid: progressive-lenslabel: progressive lensalt-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: Varifocaldescription: Varifocal is another name for a progressive lens.type: termid: varifocallabel: varifocalsee: progressive-lens---A common mistake
Section titled “A common mistake”A term page that relies on title for its name fails. title names the page,
and label names the term.
---title: Progressive lensdescription: What a progressive lens is, and when a prescription calls for one.type: termid: progressive-lensdefinition: 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 errorThe 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/Design decisions
Section titled “Design decisions”- Flat at the root, not inside
graph. Thegraphblock 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.
labelis preferred,alt-labelsare admitted, andhidden-labelsare deprecated, which is what SKOS documentshiddenLabelfor. DITA 2.0 removed<glossStatus>along with most of its other glossary metadata. Adesignationsitem’sadministrative-statusoverrides the kind only where TBX names a status the kinds cannot, such assuperseded. - 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 checkandmanni meta queryall read them that way. A concept in several languages is several entries joined onid. - 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
abstractis its own field. seeis a redirect, not a relation. An entry withseenames a term and sends the reader elsewhere. Carrying a definition as well is a contradiction. The open schema leaves it tomanni term check, which reports it assee-not-empty. The strict overlay refuses it.- The id survives a rename.
idcomes from core. A concept identified by its preferred label changes identity when the label is respelled, and cannot hold synonyms without picking a winner. abstractis notdescription.descriptionsays what the page is about.abstractsays 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 buildreads the termbasemanni term checkreads, and each term becomes a concept in the graph’s one concept scheme.label,alt-labels,hidden-labels,broader,narrower,definitionandscope-notemap to their SKOS twins, andrelated-termsmaps toskos:related.notationmaps toskos:notation, and each match field to its SKOS mapping property. Aseeentry becomes an alt-label of its target. The graph vocabulary keeps its own block, and a term page whose block names nolabelis about its term.
Strict overlay
Section titled “Strict overlay”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.
| Field | Strict adds |
|---|---|
label | One line, with no leading or trailing whitespace |
see | One line, with no leading or trailing whitespace, the form a label takes |
subject-field, a designation’s term, a link’s target | One line, with no leading or trailing whitespace |
tbx-elements | Each item starts with < |
administrative-status | preferred, admitted, deprecated, superseded or none |
part-of-speech | adjective, noun, other, verb, adverb or properNoun |
grammatical-gender | masculine, feminine, neuter or other |
grammatical-number | singular, plural, dual, mass or otherNumber |
term-type | fullForm, acronym, abbreviation, shortForm, variant or phrase |
term-location | the TBX-Basic interface picklist, such as menuItem or pushButton |
register | the TBX-Linguist register picklist, such as technicalRegister |
| the entry | on 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.0Each 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: Varifocaldescription: Varifocal is another name for a progressive lens.type: termid: varifocallabel: varifocalsee: progressive-lensdefinition: 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 errorThe open vocabulary accepts the page, so the overlay alone fails it.
Version 1.1.0
Section titled “Version 1.1.0”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.0Version 1.0.0
Section titled “Version 1.0.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