Skip to content

Terminology fields

One term entry can feed the Vale style, a TBX hand-off to a translation system and the graph’s concept scheme. Reach for this page for the name and shape of each field it holds.

A term entry is a record. A term page carries it in its metadata, and a manifest entry holds the same record. Every reader produces it from a body construct or a TBX entry too. The fields sit at the root of the page, flat. They are the built-in manni:terminology:1.2.0 vocabulary.

Ten fields carry the term’s names, its meaning and its place among other terms. They map onto SKOS, and they are the whole of 1.0.0. Six more tie the term to other vocabularies. The rest of the record holds the TBX data categories a translation system exchanges. A page that carries none of them is a 1.0.0 page, and it stays valid.

type:Means
termThe file is one entry. Its record is the file’s metadata.
term-setThe file holds many entries, in its body. Required for a Markdown or MDX definition list and an HTML <dl>, which do not say what they are.

A DITA <glossentry> or <glossgroup>, a DocBook <glossary>, an AsciiDoc [glossary] list and a .. glossary:: directive are read without type: term-set, because each construct declares itself. So is a .tbx file, whose root element names it TBX, and a .flglo file, a MadCap Flare glossary. So is a .ttl or .jsonld file you name, which holds SKOS. type, id and language belong to the manni:core vocabulary, and a term page uses them as any page does.

docs/terms/progressive-lens.md
---
type: term
id: progressive-lens
label: progressive lens
alt-labels: [PAL, graduated lens]
hidden-labels: [no-line bifocal]
broader: [corrective lens]
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.
---
FieldTypeRequiredSKOSWhat it holds
labelstringyesskos:prefLabelThe one preferred name.
definitionstringnoskos:definitionWhat the term means, in full. An entry carries it unless it redirects with see.
abstractstringnononeThe short form, one sentence, for a hover card or a tooltip.
alt-labelsstring or listnoskos:altLabelOther admitted names, such as synonyms, abbreviations and spelling variants.
hidden-labelsstring or listnoskos:hiddenLabelNames the term must not go by, such as deprecated spellings, obsolete forms and misspellings.
broaderstring or listnoskos:broaderLabels or ids of the parent terms.
narrowerstring or listnoskos:narrowerLabels or ids of the child terms.
related-termsstring or listnoskos:relatedLabels or ids of associated terms.
seestringnononeThe label or id of the entry this one redirects to.
scope-notestringnoskos:scopeNoteHow far the term reaches in this set, and where it stops.

A list field takes one string or a list. Readers trim each value and drop empty ones, so " bifocal " and bifocal are the same label. A page with type: term and no label is skipped, with a notice on stderr:

manni: no-label.md:1: skipped a page entry with no term.

A one-value field (definition, abstract, see, scope-note) takes text. Given a list or a mapping, the reader leaves that field out, reads the rest of the entry, and says so on stderr:

manni: varifocal.md:5: ignored see on "varifocal": a see holds one value, not a list.

definition is optional in the schema, so a term page can land before anyone writes its meaning. manni term check reports an entry with neither a definition nor a see as missing-definition, at error. The strict overlay requires one of the two.

These fields say where the term sits outside this termbase. Each match field takes one IRI or a list of them, and each maps to its SKOS property:

FieldTypeSKOSWhat it holds
notationstringskos:notationA code that identifies the concept in another system.
exact-matchesIRI or listskos:exactMatchThe same concept in another vocabulary. Use it sparingly.
close-matchesIRI or listskos:closeMatchA near-equivalent concept elsewhere. This is the common case.
broad-matchesIRI or listskos:broadMatchA broader concept in another vocabulary.
narrow-matchesIRI or listskos:narrowMatchA narrower concept in another vocabulary.
related-matchesIRI or listskos:relatedMatchAn associated concept in another vocabulary.
type: term
id: progressive-lens
label: progressive lens
definition: Corrective lenses whose power increases from the top of the lens to the bottom.
notation: OPT-0412
exact-matches: https://www.wikidata.org/wiki/Q1424588
close-matches:
- http://id.loc.gov/authorities/subjects/sh85107289

A mapping has one kind. An IRI listed under two of the five match fields of one entry is conflicting-matches. A match names a concept in another vocabulary. Inside this termbase the relation is broader, narrower or related-terms, and manni graph check reports a match that points back into the scheme.

A term holds one language. A concept with names in English and German is two terms that share an id. Each names its language, from manni:core:

docs/terms/de/progressive-lens.md
---
type: term
id: progressive-lens
language: de
label: Gleitsichtglas
alt-labels: [Gleitsichtbrille]
definition: Brillenglas mit stufenlos zunehmender Wirkung.
---

A manifest entry carries language beside its fields. A TBX entry reads as one term per language section, each with the entry’s id and the section’s xml:lang. A section without one takes the root element’s. A term that names no language counts as en, in manni term check and in every render.

term check compares names within a language, and joins the languages on id. The rules reference says how each rule reads a set in more than one language.

Version 1.1.0 holds every TBX-Basic and TBX-Linguist data category as a named field. A TBX termbase reads into pages, and the pages write back as TBX without loss.

TBX states a value about the concept, about one language, or about one designation of the term. The level of a value is where it sits in the record:

LevelWhere it sitsTBX element
conceptconcept-entrytermEntry (v2), conceptEntry (v3)
languagethe root of the recordlangSet (v2), langSec (v3)
terma designations itemtig or ntig (v2), termSec (v3)
type: term
id: progressive-lens
language: en
label: progressive lens
alt-labels: [PAL]
hidden-labels: [no-line bifocal]
definition: Corrective lenses whose power increases continuously. # language level
concept-entry: # concept level
subject-field: optics
designations: # term level
- term: progressive lens
part-of-speech: noun
term-type: fullForm
- term: PAL
term-type: acronym
- term: no-line bifocal
administrative-status: superseded

concept-entry says the same thing on every language’s term of the id. When the terms disagree, a TBX render keeps the first term’s value and says so.

These are valid at the root, in concept-entry, and in a designations item:

FieldTypeTBXWhat it holds
definitionstringdescrip type="definition"What the term means at this level. One value.
subject-fieldstringdescrip type="subjectField"The subject field. One value.
contextsstring or listdescrip type="context"Sentences that show the term in use.
notesstring or listnoteFree-text notes.
sourcesstring or listadmin type="source"Where the information came from.
customer-subsetsstring or listadmin type="customerSubset"The customers the entry applies to.
project-subsetsstring or listadmin type="projectSubset"The projects the entry applies to.
cross-referenceslistref type="crossReference"Links to other entries.
external-cross-referenceslistxref type="externalCrossReference"Links outside the termbase, usually URLs.
graphicslistxref type="xGraphic"Images that illustrate the concept.
transactionslisttransacGrpThe entry’s history.
tbx-elementslist of XML stringsanything elsePass-through, in source order.

A link item is a target, or a mapping of target and an optional text:

cross-references:
- spectacle-lens
- target: corrective-lens
text: corrective lens

A transactions item names its type, and may give a date and a responsibility. The date is kept as written:

transactions:
- type: origination
date: 2024-03-01
responsibility: Maya

A designations item names the designation it describes in term. Its other keys are valid only there:

FieldTypeTBXValues TBX names
termstring, requiredtermThe entry’s label, one of its alt-labels or one of its hidden-labels.
administrative-statusstringtermNote type="administrativeStatus"preferred, admitted, deprecated, superseded, none
part-of-speechstringtermNote type="partOfSpeech"adjective, noun, other, verb, adverb, properNoun
grammatical-genderstringtermNote type="grammaticalGender"masculine, feminine, neuter, other
grammatical-numberstringtermNote type="grammaticalNumber"singular, plural, dual, mass, otherNumber
term-typestringtermNote type="termType"fullForm, acronym, abbreviation, shortForm, variant, phrase
term-locationstringtermNote type="termLocation"checkBox, menuItem, pushButton, toolTip and the other interface elements of the TBX-Basic picklist
geographical-usagestringtermNote type="geographicalUsage"A region or a locale.
registerstringtermNote type="register"colloquialRegister, neutralRegister, technicalRegister, in-houseRegister, bench-levelRegister, slangRegister, vulgarRegister
readingstringadmin type="reading"How the designation is read aloud.
reading-notestringadminNote type="readingNote"A note on the reading.
transfer-commentsstring or listtermNote type="transferComment"Notes for the translator.

register, grammatical-number, reading, reading-note and transfer-comments are TBX-Linguist categories. The rest are TBX-Basic. A designation key at the root or in concept-entry is not a terminology field there, and the reader leaves it alone.

A designation that has no item still has the status its kind of label gives it. An item whose term names none of the entry’s labels is ignored, with a notice on stderr:

manni: pal.md:7: ignored designations item "progresive lens" on "progressive lens": it names no label, alt-label or hidden-label.

designations is a list rather than a mapping, so the order of a TBX entry and a homograph both survive. A label no item names follows the items, in label, alt-label, hidden-label order.

A picklist value is kept as written, whether fullForm, Verb or pronoun. The open vocabulary types it as a string, so a TBX file from any vendor reads. The strict overlay, manni:terminology-strict:1.2.0, closes each picklist to the values TBX names:

Terminal window
$ manni meta validate --no-config -s manni:terminology:1.2.0 -s manni:terminology-strict:1.2.0 strict-picklist-verb.md
✗ strict-picklist-verb.md
/designations/0/part-of-speech must be one of: "adjective", "noun", "other", "verb", "adverb", "properNoun" (line 7) [manni:terminology-strict:1.2.0]
manni:terminology-strict:1.2.0 designations/part-of-speech: Strict closes the part of speech to the TBX-Basic picklist.
Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-terminology/
1 file checked, 0 passed, 1 failed, 1 error

The field a name sits in says how it may be used. That is its status, unless a designations item names another:

FieldStatusWhere the status shows
labelpreferredTBX preferredTerm-admn-sts. The casing rules of the Vale style.
alt-labelsadmittedTBX admittedTerm-admn-sts. The casing rules, and the first-use rule for an all-caps acronym.
hidden-labelsdeprecatedTBX deprecatedTerm-admn-sts. Terms.Deprecated in the Vale style, which swaps the name for the label.

TBX names more statuses than there are kinds of label. A TBX reader puts each designation where its status says. It writes administrative-status where the kind alone would not give the status back:

TBX administrativeStatusRead as
preferredTerm-admn-stsThe label. A second preferred designation is an alt-label with administrative-status: preferred.
admittedTerm-admn-stsAn alt-label.
deprecatedTerm-admn-stsA hidden-label.
supersededTerm-admn-stsA hidden-label with administrative-status: superseded.
any other valueAn alt-label, with the value as written.
no statusAn alt-label with administrative-status: none.

When no designation is preferred, the first one is the label, and its item says administrative-status: none. A TBX render writes no status element for none.

Two fields carry what no named field can, so the TBX a term was read from writes back as it was.

tbx-elements holds elements whole, as XML strings in source order, at the level they sat. A TBX reader puts an element there when writing the named field would not reproduce it. That covers a vendor category, an extra attribute, a second value of a one-value category, and a group shaped otherwise than manni writes one:

concept-entry:
subject-field: optics
tbx-elements:
- <descrip type="Client">Acme</descrip>

tbx-markup holds the marked-up form of a value, as inline XML. The named field holds the plain text, which check, Vale and every other render read. A TBX render writes the item in place of the value whose text it matches:

contexts: [Fit the progressive lens first.]
tbx-markup:
- Fit the <hi type="bold">progressive lens</hi> first.

An edited value no longer matches its item, so the stale markup is never written. Two values of one term can read as the same text with different markup, such as a marked-up H<hi type="subscript">2</hi>O and a plain H2O. The reader then keeps one element whole in tbx-elements, never the <term>, so neither value gains the other’s markup. The strict overlay requires each tbx-elements item to start with <.

An entry with see points a reader at the entry that defines the term. It names the term, and carries no definition:

type: term
id: varifocal
label: varifocal
see: progressive-lens

see resolves against labels and ids, ignoring case. An entry with both see and a definition is the see-not-empty finding. A see that names nothing is dangling-reference.

An entry’s id is, in order:

  1. the record’s own id;
  2. the construct’s identifier: <dt id> or <dfn id> in HTML, xml:id on a DocBook <glossentry>, @id on a DITA topic, id on a TBX entry, glossTerm on a Flare GlossaryEntry;
  3. the slug of the preferred label, so progressive lens is progressive-lens.

Every language of a TBX entry takes the entry’s id. An entry without one takes the slug of its first language’s label.

The id is what manni term get and a manifest key name, and what a render into one file per entry names each file after.

manni term check checks the set. The shape of one page is a schema’s job. That schema is the built-in manni:terminology:1.2.0, and manni meta validate -s takes its id. It requires label on a type: term page, and nothing else. A page with neither a definition nor a see passes it, and term check reports that page as missing-definition.

The strict overlay, manni:terminology-strict:1.2.0, requires a definition or a see on a type: term page. Stack it to fail such a page at validation as well:

Terminal window
$ manni meta validate --no-config -s manni:terminology:1.2.0 -s manni:terminology-strict:1.2.0 term-without-definition-or-see.md
✗ term-without-definition-or-see.md
(root) must have required property 'definition' (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/
(root) must have required property 'see' (line 1) [manni:terminology-strict:1.2.0]
manni:terminology-strict:1.2.0 see: Strict holds the redirect target to one line with no surrounding space, the form a label takes.
Guide: https://hawkeyexl.github.io/manni/meta/reference/schemas/manni-terminology/
1 file checked, 0 passed, 1 failed, 2 errors