Enumeration in Linked Open Knowledge Format (LOKF)
DiataxisMode
The Diátaxis documentation mode of a concept's body - an orthogonal facet describing *how* the prose serves the reader, distinct from the concept's type (what it is *about*). Each value maps to a schema.org term. Optional: an absent value simply means the mode is unclassified, and consumers MUST treat an unknown value the same way rather than fail.
Permissible Values#
| Value | Meaning | Description |
|---|---|---|
| tutorial | schema:LearningResource | Learning-oriented; a lesson that lets a beginner acquire a skill by doing |
| how-to | schema:HowTo | Goal-oriented; directions that guide an already-competent reader through a pr… |
| reference | schema:APIReference | Information-oriented; austere, authoritative description of the machinery |
| explanation | schema:Article | Understanding-oriented; discursive treatment of a subject, that permits refle… |
Slots#
| Name | Description |
|---|---|
| genre | The Diátaxis documentation mode of the concept’s markdown body (tutorial, how… |
Comments#
- Diátaxis is a widely-adopted framework that sorts documentation into four modes along two axes: action vs. cognition (doing vs. thinking) and acquisition vs. application (studying vs. working). Each permissible value carries its quadrant as machine-readable annotations (
diataxis_action_cognition,diataxis_acquisition_application) so tools can reason about the map - e.g. a reader who is working and doing needshow-to.
See Also#
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
LinkML Source#
YAML
name: DiataxisMode
description: 'The Diátaxis documentation mode of a concept''s body - an orthogonal
facet describing *how* the prose serves the reader, distinct from the concept''s
`type` (what it is *about*). Each value maps to a schema.org term. Optional: an
absent value simply means the mode is unclassified, and consumers MUST treat an
unknown value the same way rather than fail.'
comments:
- 'Diátaxis is a widely-adopted framework that sorts documentation into four modes
along two axes: action vs. cognition (doing vs. thinking) and acquisition vs. application
(studying vs. working). Each permissible value carries its quadrant as machine-readable
annotations (`diataxis_action_cognition`, `diataxis_acquisition_application`) so
tools can reason about the map - e.g. a reader who is working and doing needs `how-to`.'
from_schema: https://w3id.org/lokf/schema
see_also:
- https://diataxis.fr/
rank: 1000
permissible_values:
tutorial:
text: tutorial
description: Learning-oriented; a lesson that lets a beginner acquire a skill
by doing.
meaning: schema:LearningResource
annotations:
diataxis_action_cognition:
tag: diataxis_action_cognition
value: action
diataxis_acquisition_application:
tag: diataxis_acquisition_application
value: acquisition
notes:
- Answers "Can you teach me to…?" - reader is *studying* by *doing*. Choose over
how-to when the reader is a novice and the aim is learning, not a specific task.
A tutorial is not the place for explanation - link an Explanation instead.
see_also:
- https://diataxis.fr/tutorials/
aliases:
- lesson
- getting started
how-to:
text: how-to
description: Goal-oriented; directions that guide an already-competent reader
through a problem or towards a result.
meaning: schema:HowTo
annotations:
diataxis_action_cognition:
tag: diataxis_action_cognition
value: action
diataxis_acquisition_application:
tag: diataxis_acquisition_application
value: application
notes:
- Answers "How do I…?" - reader is *working* by *doing*. A recipe, not a lesson;
it assumes competence and solves one real-world problem.
see_also:
- https://diataxis.fr/how-to-guides/
aliases:
- guide
- recipe
- runbook
reference:
text: reference
description: Information-oriented; austere, authoritative description of the machinery.
meaning: schema:APIReference
annotations:
diataxis_action_cognition:
tag: diataxis_action_cognition
value: cognition
diataxis_acquisition_application:
tag: diataxis_acquisition_application
value: application
notes:
- Answers "What is…?" - reader is *working* by *thinking*, consulting facts rather
than performing steps - describe and only describe, no teaching or opinion.
- schema.org has no genre for reference documentation in general; schema:APIReference
is the nearest term but is narrower than the Diátaxis mode, which covers any
technical description of the machinery, not only APIs.
see_also:
- https://diataxis.fr/reference/
aliases:
- specification
- technical description
explanation:
text: explanation
description: Understanding-oriented; discursive treatment of a subject, that permits
reflection and deepens comprehension.
meaning: schema:Article
annotations:
diataxis_action_cognition:
tag: diataxis_action_cognition
value: cognition
diataxis_acquisition_application:
tag: diataxis_acquisition_application
value: acquisition
notes:
- Answers "Why…?" / "Can you tell me about…?" - reader is *studying* by *thinking*.
The mode you can read away from the keyboard, and the place for alternatives,
counter-examples, and context.
see_also:
- https://diataxis.fr/explanation/
aliases:
- discussion
- background
- conceptual guide
- topics