@ontology-kit/okb 0.0.0-stage → 0.1.0-bootstrap.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +26 -2
  3. package/bin/okb.js +8 -0
  4. package/dist/checks.d.ts +33 -0
  5. package/dist/checks.js +966 -0
  6. package/dist/cli.d.ts +2 -0
  7. package/dist/cli.js +718 -0
  8. package/dist/clidocs.d.ts +6 -0
  9. package/dist/clidocs.js +90 -0
  10. package/dist/clock.d.ts +2 -0
  11. package/dist/clock.js +16 -0
  12. package/dist/commands.d.ts +28 -0
  13. package/dist/commands.js +622 -0
  14. package/dist/export.d.ts +54 -0
  15. package/dist/export.js +290 -0
  16. package/dist/families.d.ts +20 -0
  17. package/dist/families.js +51 -0
  18. package/dist/help.d.ts +2 -0
  19. package/dist/help.js +57 -0
  20. package/dist/markdown.d.ts +60 -0
  21. package/dist/markdown.js +310 -0
  22. package/dist/metakb.d.ts +164 -0
  23. package/dist/metakb.js +130 -0
  24. package/dist/naming.d.ts +20 -0
  25. package/dist/naming.js +140 -0
  26. package/dist/ops/admin.d.ts +16 -0
  27. package/dist/ops/admin.js +119 -0
  28. package/dist/ops/classes.d.ts +21 -0
  29. package/dist/ops/classes.js +105 -0
  30. package/dist/ops/common.d.ts +6 -0
  31. package/dist/ops/common.js +4 -0
  32. package/dist/ops/instances.d.ts +8 -0
  33. package/dist/ops/instances.js +70 -0
  34. package/dist/ops/links.d.ts +9 -0
  35. package/dist/ops/links.js +85 -0
  36. package/dist/ops/naming.d.ts +4 -0
  37. package/dist/ops/naming.js +70 -0
  38. package/dist/ops/scope.d.ts +29 -0
  39. package/dist/ops/scope.js +124 -0
  40. package/dist/ops/slots.d.ts +31 -0
  41. package/dist/ops/slots.js +186 -0
  42. package/dist/ops/values.d.ts +20 -0
  43. package/dist/ops/values.js +151 -0
  44. package/dist/ops.d.ts +14 -0
  45. package/dist/ops.js +14 -0
  46. package/dist/provenance.d.ts +53 -0
  47. package/dist/provenance.js +296 -0
  48. package/dist/quotes.d.ts +14 -0
  49. package/dist/quotes.js +104 -0
  50. package/dist/render.d.ts +30 -0
  51. package/dist/render.js +413 -0
  52. package/dist/review.d.ts +10 -0
  53. package/dist/review.js +145 -0
  54. package/dist/site.d.ts +6 -0
  55. package/dist/site.js +6 -0
  56. package/dist/skills.d.ts +52 -0
  57. package/dist/skills.js +120 -0
  58. package/dist/status.d.ts +18 -0
  59. package/dist/status.js +59 -0
  60. package/dist/types.d.ts +12 -0
  61. package/dist/types.js +5 -0
  62. package/dist/version.d.ts +1 -0
  63. package/dist/version.js +7 -0
  64. package/meta-kb/data/edges.json +3172 -0
  65. package/meta-kb/data/manifest.json +19 -0
  66. package/meta-kb/data/nodes.json +3546 -0
  67. package/package.json +71 -3
  68. package/skills/build-domain-kb-from-docs/SKILL.md +87 -0
  69. package/skills/ontology-coach/SKILL.md +100 -0
  70. package/skills/ontology-review/SKILL.md +66 -0
@@ -0,0 +1,3546 @@
1
+ [
2
+ {
3
+ "type": "MetaKB",
4
+ "id": "metakb",
5
+ "version": "2.4.2",
6
+ "formatVersion": "okb-lpg/2",
7
+ "description": "Rules, method and vocabulary for building ontologies, derived from Ontology 101 (Noy & McGuinness 2001) and Gruber (1993)."
8
+ },
9
+ {
10
+ "type": "Source",
11
+ "id": "src.o101",
12
+ "title": "Ontology Development 101: A Guide to Creating Your First Ontology",
13
+ "authors": "Noy, N.F. and McGuinness, D.L.",
14
+ "year": 2001,
15
+ "url": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf",
16
+ "shortName": "Ontology 101"
17
+ },
18
+ {
19
+ "type": "Source",
20
+ "id": "src.g93",
21
+ "title": "A Translation Approach to Portable Ontology Specifications",
22
+ "authors": "Gruber, T.R.",
23
+ "year": 1993,
24
+ "venue": "Knowledge Acquisition 5(2):199-220",
25
+ "shortName": "Gruber 1993"
26
+ },
27
+ {
28
+ "type": "SourceLocation",
29
+ "id": "loc.o101.why-share",
30
+ "section": "§1 Why develop an ontology?",
31
+ "page": 1,
32
+ "quote": "To share common understanding of the structure of information among people or software agents",
33
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=1"
34
+ },
35
+ {
36
+ "type": "SourceLocation",
37
+ "id": "loc.o101.not-a-goal",
38
+ "section": "§1 Why develop an ontology?",
39
+ "page": 2,
40
+ "quote": "Often an ontology of the domain is not a goal in itself.",
41
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=2"
42
+ },
43
+ {
44
+ "type": "SourceLocation",
45
+ "id": "loc.o101.structural-not-operational",
46
+ "section": "§1 About this guide",
47
+ "page": 2,
48
+ "quote": "a programmer makes design decisions based on the operational properties of a class, whereas an ontology designer makes these decisions based on the structural properties of a class.",
49
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=2"
50
+ },
51
+ {
52
+ "type": "SourceLocation",
53
+ "id": "loc.o101.no-single-methodology",
54
+ "section": "§1 About this guide",
55
+ "page": 3,
56
+ "quote": "there is no single correct ontology-design methodology and we did not attempt to define one.",
57
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
58
+ },
59
+ {
60
+ "type": "SourceLocation",
61
+ "id": "loc.o101.def-ontology",
62
+ "section": "§2 What is in an ontology?",
63
+ "page": 3,
64
+ "quote": "an ontology is a formal explicit description of concepts in a domain of discourse (classes (sometimes called concepts)), properties of each concept describing various features and attributes of the concept (slots (sometimes called roles or properties)), and restrictions on slots (facets (sometimes called role restrictions)).",
65
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
66
+ },
67
+ {
68
+ "type": "SourceLocation",
69
+ "id": "loc.o101.def-kb",
70
+ "section": "§2 What is in an ontology?",
71
+ "page": 3,
72
+ "quote": "An ontology together with a set of individual instances of classes constitutes a knowledge base. In reality, there is a fine line where the ontology ends and the knowledge base begins.",
73
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
74
+ },
75
+ {
76
+ "type": "SourceLocation",
77
+ "id": "loc.o101.classes-focus",
78
+ "section": "§2 What is in an ontology?",
79
+ "page": 3,
80
+ "quote": "Classes are the focus of most ontologies. Classes describe concepts in the domain.",
81
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
82
+ },
83
+ {
84
+ "type": "SourceLocation",
85
+ "id": "loc.o101.subclasses",
86
+ "section": "§2 What is in an ontology?",
87
+ "page": 3,
88
+ "quote": "A class can have subclasses that represent concepts that are more specific than the superclass.",
89
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
90
+ },
91
+ {
92
+ "type": "SourceLocation",
93
+ "id": "loc.o101.slots-describe",
94
+ "section": "§2 What is in an ontology?",
95
+ "page": 3,
96
+ "quote": "Slots describe properties of classes and instances",
97
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
98
+ },
99
+ {
100
+ "type": "SourceLocation",
101
+ "id": "loc.o101.in-practice",
102
+ "section": "§2 What is in an ontology?",
103
+ "page": 3,
104
+ "quote": "In practical terms, developing an ontology includes: defining classes in the ontology, arranging the classes in a taxonomic (subclass–superclass) hierarchy, defining slots and describing allowed values for these slots, filling in the values for slots for instances.",
105
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=3"
106
+ },
107
+ {
108
+ "type": "SourceLocation",
109
+ "id": "loc.o101.rule-alternatives",
110
+ "section": "§3 A Simple Knowledge-Engineering Methodology",
111
+ "page": 4,
112
+ "quote": "There is no one correct way to model a domain— there are always viable alternatives. The best solution almost always depends on the application that you have in mind and the extensions that you anticipate.",
113
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=4"
114
+ },
115
+ {
116
+ "type": "SourceLocation",
117
+ "id": "loc.o101.rule-iterative",
118
+ "section": "§3 A Simple Knowledge-Engineering Methodology",
119
+ "page": 4,
120
+ "quote": "Ontology development is necessarily an iterative process.",
121
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=4"
122
+ },
123
+ {
124
+ "type": "SourceLocation",
125
+ "id": "loc.o101.rule-nouns-verbs",
126
+ "section": "§3 A Simple Knowledge-Engineering Methodology",
127
+ "page": 4,
128
+ "quote": "Concepts in the ontology should be close to objects (physical or logical) and relationships in your domain of interest. These are most likely to be nouns (objects) or verbs (relationships) in sentences that describe your domain.",
129
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=4"
130
+ },
131
+ {
132
+ "type": "SourceLocation",
133
+ "id": "loc.o101.evaluate",
134
+ "section": "§3 A Simple Knowledge-Engineering Methodology",
135
+ "page": 4,
136
+ "quote": "After we define an initial version of the ontology, we can evaluate and debug it by using it in applications or problem-solving methods or by discussing it with experts in the field, or both.",
137
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=4"
138
+ },
139
+ {
140
+ "type": "SourceLocation",
141
+ "id": "loc.o101.step1",
142
+ "section": "§3 Step 1. Determine the domain and scope",
143
+ "page": 5,
144
+ "quote": "We suggest starting the development of an ontology by defining its domain and scope. That is, answer several basic questions: What is the domain that the ontology will cover? For what we are going to use the ontology? For what types of questions the information in the ontology should provide answers? Who will use and maintain the ontology?",
145
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
146
+ },
147
+ {
148
+ "type": "SourceLocation",
149
+ "id": "loc.o101.scope-changes",
150
+ "section": "§3 Step 1. Determine the domain and scope",
151
+ "page": 5,
152
+ "quote": "The answers to these questions may change during the ontology-design process, but at any given time they help limit the scope of the model.",
153
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
154
+ },
155
+ {
156
+ "type": "SourceLocation",
157
+ "id": "loc.o101.cq",
158
+ "section": "§3 Step 1, Competency questions",
159
+ "page": 5,
160
+ "quote": "One of the ways to determine the scope of the ontology is to sketch a list of questions that a knowledge base based on the ontology should be able to answer, competency questions",
161
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
162
+ },
163
+ {
164
+ "type": "SourceLocation",
165
+ "id": "loc.o101.cq-litmus",
166
+ "section": "§3 Step 1, Competency questions",
167
+ "page": 5,
168
+ "quote": "These questions will serve as the litmus test later: Does the ontology contain enough information to answer these types of questions?",
169
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
170
+ },
171
+ {
172
+ "type": "SourceLocation",
173
+ "id": "loc.o101.cq-sketch",
174
+ "section": "§3 Step 1, Competency questions",
175
+ "page": 5,
176
+ "quote": "These competency questions are just a sketch and do not need to be exhaustive.",
177
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
178
+ },
179
+ {
180
+ "type": "SourceLocation",
181
+ "id": "loc.o101.step2",
182
+ "section": "§3 Step 2. Consider reusing existing ontologies",
183
+ "page": 5,
184
+ "quote": "It is almost always worth considering what someone else has done and checking if we can refine and extend existing sources for our particular domain and task.",
185
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
186
+ },
187
+ {
188
+ "type": "SourceLocation",
189
+ "id": "loc.o101.step2-requirement",
190
+ "section": "§3 Step 2. Consider reusing existing ontologies",
191
+ "page": "5-6",
192
+ "quote": "Reusing existing ontologies may be a requirement if our system needs to interact with other applications that have already committed to particular ontologies or controlled vocabularies.",
193
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=5"
194
+ },
195
+ {
196
+ "type": "SourceLocation",
197
+ "id": "loc.o101.step3",
198
+ "section": "§3 Step 3. Enumerate important terms",
199
+ "page": 6,
200
+ "quote": "It is useful to write down a list of all terms we would like either to make statements about or to explain to a user.",
201
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=6"
202
+ },
203
+ {
204
+ "type": "SourceLocation",
205
+ "id": "loc.o101.step3-no-worry",
206
+ "section": "§3 Step 3. Enumerate important terms",
207
+ "page": 6,
208
+ "quote": "Initially, it is important to get a comprehensive list of terms without worrying about overlap between concepts they represent, relations among the terms, or any properties that the concepts may have, or whether the concepts are classes or slots.",
209
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=6"
210
+ },
211
+ {
212
+ "type": "SourceLocation",
213
+ "id": "loc.o101.intertwined",
214
+ "section": "§3 Step 3. Enumerate important terms",
215
+ "page": 6,
216
+ "quote": "The next two steps—developing the class hierarchy and defining properties of concepts (slots)—are closely intertwined. It is hard to do one of them first and then do the other.",
217
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=6"
218
+ },
219
+ {
220
+ "type": "SourceLocation",
221
+ "id": "loc.o101.top-down",
222
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
223
+ "page": 6,
224
+ "quote": "A top-down development process starts with the definition of the most general concepts in the domain and subsequent specialization of the concepts.",
225
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=6"
226
+ },
227
+ {
228
+ "type": "SourceLocation",
229
+ "id": "loc.o101.bottom-up",
230
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
231
+ "page": 7,
232
+ "quote": "A bottom-up development process starts with the definition of the most specific classes, the leaves of the hierarchy, with subsequent grouping of these classes into more general concepts.",
233
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=7"
234
+ },
235
+ {
236
+ "type": "SourceLocation",
237
+ "id": "loc.o101.combination",
238
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
239
+ "page": 7,
240
+ "quote": "A combination development process is a combination of the top-down and bottom-up approaches: We define the more salient concepts first and then generalize and specialize them appropriately.",
241
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=7"
242
+ },
243
+ {
244
+ "type": "SourceLocation",
245
+ "id": "loc.o101.no-best-approach",
246
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
247
+ "page": 7,
248
+ "quote": "None of these three methods is inherently better than any of the others. The approach to take depends strongly on the personal view of the domain.",
249
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=7"
250
+ },
251
+ {
252
+ "type": "SourceLocation",
253
+ "id": "loc.o101.combination-easiest",
254
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
255
+ "page": 7,
256
+ "quote": "The combination approach is often the easiest for many ontology developers, since the concepts “in the middle” tend to be the more descriptive concepts in the domain",
257
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=7"
258
+ },
259
+ {
260
+ "type": "SourceLocation",
261
+ "id": "loc.o101.select-classes",
262
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
263
+ "page": 7,
264
+ "quote": "From the list created in Step 3, we select the terms that describe objects having independent existence rather than terms that describe these objects.",
265
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=7"
266
+ },
267
+ {
268
+ "type": "SourceLocation",
269
+ "id": "loc.o101.isa-test",
270
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
271
+ "page": 8,
272
+ "quote": "We organize the classes into a hierarchical taxonomy by asking if by being an instance of one class, the object will necessarily (i.e., by definition) be an instance of some other class.",
273
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
274
+ },
275
+ {
276
+ "type": "SourceLocation",
277
+ "id": "loc.o101.superclass",
278
+ "section": "§3 Step 4. Define the classes and the class hierarchy",
279
+ "page": 8,
280
+ "quote": "If a class A is a superclass of class B, then every instance of B is also an instance of A In other words, the class B represents a concept that is a “kind of” A.",
281
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
282
+ },
283
+ {
284
+ "type": "SourceLocation",
285
+ "id": "loc.o101.step5",
286
+ "section": "§3 Step 5. Define the properties of classes—slots",
287
+ "page": 8,
288
+ "quote": "The classes alone will not provide enough information to answer the competency questions from Step 1.",
289
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
290
+ },
291
+ {
292
+ "type": "SourceLocation",
293
+ "id": "loc.o101.remaining-terms",
294
+ "section": "§3 Step 5. Define the properties of classes—slots",
295
+ "page": 8,
296
+ "quote": "Most of the remaining terms are likely to be properties of these classes.",
297
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
298
+ },
299
+ {
300
+ "type": "SourceLocation",
301
+ "id": "loc.o101.slot-kinds",
302
+ "section": "§3 Step 5. Define the properties of classes—slots",
303
+ "page": 8,
304
+ "quote": "In general, there are several types of object properties that can become slots in an ontology: “intrinsic” properties such as the flavor of a wine; “extrinsic” properties such as a wine’s name, and area it comes from; parts, if the object is structured; these can be both physical and abstract “parts” (e.g., the courses of a meal) relationships to other individuals;",
305
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
306
+ },
307
+ {
308
+ "type": "SourceLocation",
309
+ "id": "loc.o101.slots-attached",
310
+ "section": "§3 Step 5. Define the properties of classes—slots",
311
+ "page": 8,
312
+ "quote": "For each property in the list, we must determine which class it describes. These properties become slots attached to classes.",
313
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=8"
314
+ },
315
+ {
316
+ "type": "SourceLocation",
317
+ "id": "loc.o101.inherit",
318
+ "section": "§3 Step 5. Define the properties of classes—slots",
319
+ "page": 9,
320
+ "quote": "All subclasses of a class inherit the slot of that class.",
321
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
322
+ },
323
+ {
324
+ "type": "SourceLocation",
325
+ "id": "loc.o101.most-general",
326
+ "section": "§3 Step 5. Define the properties of classes—slots",
327
+ "page": 9,
328
+ "quote": "A slot should be attached at the most general class that can have that property.",
329
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
330
+ },
331
+ {
332
+ "type": "SourceLocation",
333
+ "id": "loc.o101.step6",
334
+ "section": "§3 Step 6. Define the facets of the slots",
335
+ "page": 9,
336
+ "quote": "Slots can have different facets describing the value type, allowed values, the number of the values (cardinality), and other features of the values the slot can take.",
337
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
338
+ },
339
+ {
340
+ "type": "SourceLocation",
341
+ "id": "loc.o101.cardinality",
342
+ "section": "§3 Step 6, Slot cardinality",
343
+ "page": 9,
344
+ "quote": "Slot cardinality defines how many values a slot can have. Some systems distinguish only between single cardinality (allowing at most one value) and multiple cardinality (allowing any number of values).",
345
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
346
+ },
347
+ {
348
+ "type": "SourceLocation",
349
+ "id": "loc.o101.min-max",
350
+ "section": "§3 Step 6, Slot cardinality",
351
+ "page": 9,
352
+ "quote": "Minimum cardinality of N means that a slot must have at least N values.",
353
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
354
+ },
355
+ {
356
+ "type": "SourceLocation",
357
+ "id": "loc.o101.max",
358
+ "section": "§3 Step 6, Slot cardinality",
359
+ "page": 9,
360
+ "quote": "Maximum cardinality of M means that a slot can have at most M values.",
361
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
362
+ },
363
+ {
364
+ "type": "SourceLocation",
365
+ "id": "loc.o101.max-zero",
366
+ "section": "§3 Step 6, Slot cardinality",
367
+ "page": 9,
368
+ "quote": "Sometimes it may be useful to set the maximum cardinality to 0. This setting would indicate that the slot cannot have any values for a particular subclass.",
369
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
370
+ },
371
+ {
372
+ "type": "SourceLocation",
373
+ "id": "loc.o101.value-type",
374
+ "section": "§3 Step 6, Slot-value type",
375
+ "page": 9,
376
+ "quote": "A value-type facet describes what types of values can fill in the slot.",
377
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
378
+ },
379
+ {
380
+ "type": "SourceLocation",
381
+ "id": "loc.o101.enumerated",
382
+ "section": "§3 Step 6, Slot-value type",
383
+ "page": 9,
384
+ "quote": "Enumerated slots specify a list of specific allowed values for the slot.",
385
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=9"
386
+ },
387
+ {
388
+ "type": "SourceLocation",
389
+ "id": "loc.o101.instance-type",
390
+ "section": "§3 Step 6, Slot-value type",
391
+ "page": 10,
392
+ "quote": "Instance-type slots allow definition of relationships between individuals. Slots with value type Instance must also define a list of allowed classes from which the instances can come.",
393
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=10"
394
+ },
395
+ {
396
+ "type": "SourceLocation",
397
+ "id": "loc.o101.range",
398
+ "section": "§3 Step 6, Domain and range of a slot",
399
+ "page": 10,
400
+ "quote": "Allowed classes for slots of type Instance are often called a range of a slot.",
401
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=10"
402
+ },
403
+ {
404
+ "type": "SourceLocation",
405
+ "id": "loc.o101.domain",
406
+ "section": "§3 Step 6, Domain and range of a slot",
407
+ "page": 10,
408
+ "quote": "The classes to which a slot is attached or a classes which property a slot describes, are called the domain of the slot.",
409
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=10"
410
+ },
411
+ {
412
+ "type": "SourceLocation",
413
+ "id": "loc.o101.dr-most-general",
414
+ "section": "§3 Step 6, Domain and range of a slot",
415
+ "page": 10,
416
+ "quote": "When defining a domain or a range for a slot, find the most general classes or class that can be respectively the domain or the range for the slots.",
417
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=10"
418
+ },
419
+ {
420
+ "type": "SourceLocation",
421
+ "id": "loc.o101.dr-not-overly-general",
422
+ "section": "§3 Step 6, Domain and range of a slot",
423
+ "page": 10,
424
+ "quote": "do not define a domain and range that is overly general: all the classes in the domain of a slot should be described by the slot and instances of all the classes in the range of a slot should be potential fillers for the slot. Do not choose an overly general class for range (i.e., one would not want to make the range THING) but one would want to choose a class that will cover all fillers",
425
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=10"
426
+ },
427
+ {
428
+ "type": "SourceLocation",
429
+ "id": "loc.o101.dr-remove-subclass",
430
+ "section": "§3 Step 6, Domain and range of a slot",
431
+ "page": 11,
432
+ "quote": "If a list of classes defining a range or a domain of a slot includes a class and its subclass, remove the subclass.",
433
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=11"
434
+ },
435
+ {
436
+ "type": "SourceLocation",
437
+ "id": "loc.o101.dr-all-subclasses",
438
+ "section": "§3 Step 6, Domain and range of a slot",
439
+ "page": 11,
440
+ "quote": "If a list of classes defining a range or a domain of a slot contains all subclasses of a class A, but not the class A itself, the range should contain only the class A and not the subclasses.",
441
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=11"
442
+ },
443
+ {
444
+ "type": "SourceLocation",
445
+ "id": "loc.o101.dr-all-but-few",
446
+ "section": "§3 Step 6, Domain and range of a slot",
447
+ "page": 11,
448
+ "quote": "If a list of classes defining a range or a domain of a slot contains all but a few subclasses of a class A, consider if the class A would make a more appropriate range definition.",
449
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=11"
450
+ },
451
+ {
452
+ "type": "SourceLocation",
453
+ "id": "loc.o101.attach-can-have",
454
+ "section": "§3 Step 6, Domain and range of a slot",
455
+ "page": 11,
456
+ "quote": "On the other hand, we must ensure that each class to which we attach the slot can indeed have the property that the slot represents.",
457
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=11"
458
+ },
459
+ {
460
+ "type": "SourceLocation",
461
+ "id": "loc.o101.step7",
462
+ "section": "§3 Step 7. Create instances",
463
+ "page": 11,
464
+ "quote": "Defining an individual instance of a class requires (1) choosing a class, (2) creating an individual instance of that class, and (3) filling in the slot values.",
465
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=11"
466
+ },
467
+ {
468
+ "type": "SourceLocation",
469
+ "id": "loc.o101.stand-back",
470
+ "section": "§4 Defining classes and a class hierarchy",
471
+ "page": 12,
472
+ "quote": "After defining a considerable number of new classes, it is helpful to stand back and check if the emerging hierarchy conforms to these guidelines.",
473
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=12"
474
+ },
475
+ {
476
+ "type": "SourceLocation",
477
+ "id": "loc.o101.singular-plural-avoid",
478
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
479
+ "page": 12,
480
+ "quote": "The best way to avoid such an error is always to use either singular or plural in naming classes",
481
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=12"
482
+ },
483
+ {
484
+ "type": "SourceLocation",
485
+ "id": "loc.o101.is-a",
486
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
487
+ "page": 12,
488
+ "quote": "The class hierarchy represents an “is-a” relation: a class A is a subclass of B if every instance of A is also an instance of B.",
489
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=12"
490
+ },
491
+ {
492
+ "type": "SourceLocation",
493
+ "id": "loc.o101.singular-plural",
494
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
495
+ "page": 12,
496
+ "quote": "A common modeling mistake is to include both a singular and a plural version of the same concept in the hierarchy making the former a subclass of the latter. For example, it is wrong to define a class Wines and a class Wine as a subclass of Wines.",
497
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=12"
498
+ },
499
+ {
500
+ "type": "SourceLocation",
501
+ "id": "loc.o101.transitive",
502
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
503
+ "page": 13,
504
+ "quote": "A subclass relationship is transitive: If B is a subclass of A and C is a subclass of B, then C is a subclass of A",
505
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
506
+ },
507
+ {
508
+ "type": "SourceLocation",
509
+ "id": "loc.o101.chardonnay-direct",
510
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
511
+ "page": 13,
512
+ "quote": "In our example, Chardonnay is a direct subclass of White wine and is not a direct subclass of Wine.",
513
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
514
+ },
515
+ {
516
+ "type": "SourceLocation",
517
+ "id": "loc.o101.direct-subclass",
518
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
519
+ "page": 13,
520
+ "quote": "A direct subclass is the “closest” subclass of the class: there are no classes between a class and its direct subclass in a hierarchy.",
521
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
522
+ },
523
+ {
524
+ "type": "SourceLocation",
525
+ "id": "loc.o101.evolution",
526
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
527
+ "page": 13,
528
+ "quote": "Maintaining a consistent class hierarchy may become challenging as domains evolve.",
529
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
530
+ },
531
+ {
532
+ "type": "SourceLocation",
533
+ "id": "loc.o101.class-not-name",
534
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
535
+ "page": 13,
536
+ "quote": "Classes represent concepts in the domain and not the words that denote these concepts.",
537
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
538
+ },
539
+ {
540
+ "type": "SourceLocation",
541
+ "id": "loc.o101.synonyms",
542
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
543
+ "page": 13,
544
+ "quote": "the following rule should always be followed: Synonyms for the same concept do not represent different classes",
545
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
546
+ },
547
+ {
548
+ "type": "SourceLocation",
549
+ "id": "loc.o101.synonym-list",
550
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
551
+ "page": 13,
552
+ "quote": "Many systems allow associating a list of synonyms, translations, or presentation names with a class. If a system does not allow these associations, synonyms could always be listed in the class documentation.",
553
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
554
+ },
555
+ {
556
+ "type": "SourceLocation",
557
+ "id": "loc.o101.cycles",
558
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
559
+ "page": 13,
560
+ "quote": "We should avoid cycles in the class hierarchy. We say that there is a cycle in a hierarchy when some class A has a subclass B and at the same time B is a superclass of A. Creating such a cycle in a hierarchy amounts to declaring that the classes A and B are equivalent",
561
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
562
+ },
563
+ {
564
+ "type": "SourceLocation",
565
+ "id": "loc.o101.subclass-must",
566
+ "section": "§4.1 Ensuring that the class hierarchy is correct",
567
+ "page": 13,
568
+ "quote": "Indeed, since B is a subclass of A, all B’s instances must be instances of the class A.",
569
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=13"
570
+ },
571
+ {
572
+ "type": "SourceLocation",
573
+ "id": "loc.o101.siblings-def",
574
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
575
+ "page": 14,
576
+ "quote": "Siblings in the hierarchy are classes that are direct subclasses of the same class",
577
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
578
+ },
579
+ {
580
+ "type": "SourceLocation",
581
+ "id": "loc.o101.siblings-generality",
582
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
583
+ "page": 14,
584
+ "quote": "All the siblings in the hierarchy (except for the ones at the root) must be at the same level of generality. For example, White wine and Chardonnay should not be subclasses of the same class (say, Wine).",
585
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
586
+ },
587
+ {
588
+ "type": "SourceLocation",
589
+ "id": "loc.o101.root-exception",
590
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
591
+ "page": 14,
592
+ "quote": "The concepts at the root of the hierarchy however (which are often represented as direct subclasses of some very general class, such as Thing) represent major divisions of the domain and do not have to be similar concepts.",
593
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
594
+ },
595
+ {
596
+ "type": "SourceLocation",
597
+ "id": "loc.o101.how-many",
598
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
599
+ "page": 14,
600
+ "quote": "There are no hard rules for the number of direct subclasses that a class should have. However, many well-structured ontologies have between two and a dozen direct subclasses.",
601
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
602
+ },
603
+ {
604
+ "type": "SourceLocation",
605
+ "id": "loc.o101.one-child",
606
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
607
+ "page": 14,
608
+ "quote": "If a class has only one direct subclass there may be a modeling problem or the ontology is not complete.",
609
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
610
+ },
611
+ {
612
+ "type": "SourceLocation",
613
+ "id": "loc.o101.dozen",
614
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
615
+ "page": 14,
616
+ "quote": "If there are more than a dozen subclasses for a given class then additional intermediate categories may be necessary.",
617
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=14"
618
+ },
619
+ {
620
+ "type": "SourceLocation",
621
+ "id": "loc.o101.no-artificial",
622
+ "section": "§4.2 Analyzing siblings in a class hierarchy",
623
+ "page": 15,
624
+ "quote": "However, if no natural classes exist to group concepts in the long list of siblings, there is no need to create artificial classes—just leave the classes the way they are.",
625
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=15"
626
+ },
627
+ {
628
+ "type": "SourceLocation",
629
+ "id": "loc.o101.multiple-inheritance",
630
+ "section": "§4.3 Multiple inheritance",
631
+ "page": 15,
632
+ "quote": "Most knowledge-representation systems allow multiple inheritance in the class hierarchy: a class can be a subclass of several classes.",
633
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=15"
634
+ },
635
+ {
636
+ "type": "SourceLocation",
637
+ "id": "loc.o101.multiple-inherit-slots",
638
+ "section": "§4.3 Multiple inheritance",
639
+ "page": 16,
640
+ "quote": "The Port class will inherit its slots and their facets from both its parents.",
641
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
642
+ },
643
+ {
644
+ "type": "SourceLocation",
645
+ "id": "loc.o101.new-class-hard",
646
+ "section": "§4.4 When to introduce a new class (or not)",
647
+ "page": 16,
648
+ "quote": "One of the hardest decisions to make during modeling is when to introduce a new class or when to represent a distinction through different property values.",
649
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
650
+ },
651
+ {
652
+ "type": "SourceLocation",
653
+ "id": "loc.o101.new-class-rule",
654
+ "section": "§4.4 When to introduce a new class (or not)",
655
+ "page": 16,
656
+ "quote": "Subclasses of a class usually (1) have additional properties that the superclass does not have, or (2) restrictions different from those of the superclass, or (3) participate in different relationships than the superclasses",
657
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
658
+ },
659
+ {
660
+ "type": "SourceLocation",
661
+ "id": "loc.o101.new-class-practical",
662
+ "section": "§4.4 When to introduce a new class (or not)",
663
+ "page": 16,
664
+ "quote": "In practical terms, each subclass should either have new slots added to it, or have new slot values defined, or override some facets for the inherited slots.",
665
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
666
+ },
667
+ {
668
+ "type": "SourceLocation",
669
+ "id": "loc.o101.terminological",
670
+ "section": "§4.4 When to introduce a new class (or not)",
671
+ "page": 16,
672
+ "quote": "Classes in terminological hierarchies do not have to introduce new properties",
673
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
674
+ },
675
+ {
676
+ "type": "SourceLocation",
677
+ "id": "loc.o101.expert-distinction",
678
+ "section": "§4.4 When to introduce a new class (or not)",
679
+ "page": 16,
680
+ "quote": "Another reason to introduce new classes without any new properties is to model concepts among which domain experts commonly make a distinction even though we may have decided not to model the distinction itself.",
681
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
682
+ },
683
+ {
684
+ "type": "SourceLocation",
685
+ "id": "loc.o101.not-each-restriction",
686
+ "section": "§4.4 When to introduce a new class (or not)",
687
+ "page": 16,
688
+ "quote": "Finally, we should not create subclasses of a class for each additional restriction.",
689
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=16"
690
+ },
691
+ {
692
+ "type": "SourceLocation",
693
+ "id": "loc.o101.balance",
694
+ "section": "§4.4 When to introduce a new class (or not)",
695
+ "page": 17,
696
+ "quote": "When defining a class hierarchy, our goal is to strike a balance between creating new classes useful for class organization and creating too many classes.",
697
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=17"
698
+ },
699
+ {
700
+ "type": "SourceLocation",
701
+ "id": "loc.o101.class-or-value",
702
+ "section": "§4.5 A new class or a property value?",
703
+ "page": 17,
704
+ "quote": "If the concepts with different slot values become restrictions for different slots in other classes, then we should create a new class for the distinction. Otherwise, we represent the distinction in a slot value.",
705
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=17"
706
+ },
707
+ {
708
+ "type": "SourceLocation",
709
+ "id": "loc.o101.class-or-value-kinds",
710
+ "section": "§4.5 A new class or a property value?",
711
+ "page": 17,
712
+ "quote": "If a distinction is important in the domain and we think of the objects with different values for the distinction as different kinds of objects, then we should create a new class for the distinction.",
713
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=17"
714
+ },
715
+ {
716
+ "type": "SourceLocation",
717
+ "id": "loc.o101.stable-membership",
718
+ "section": "§4.5 A new class or a property value?",
719
+ "page": 17,
720
+ "quote": "A class to which an individual instance belongs should not change often. Usually when we use extrinsic rather than intrinsic properties of concepts to differentiate among classes, instances of those classes will have to migrate often from one class to another.",
721
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=17"
722
+ },
723
+ {
724
+ "type": "SourceLocation",
725
+ "id": "loc.o101.numbers-are-values",
726
+ "section": "§4.5 A new class or a property value?",
727
+ "page": 17,
728
+ "quote": "Usually numbers, colors, locations are slot values and do not cause the creation of new classes.",
729
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=17"
730
+ },
731
+ {
732
+ "type": "SourceLocation",
733
+ "id": "loc.o101.instance-or-class",
734
+ "section": "§4.6 An instance or a class?",
735
+ "page": 18,
736
+ "quote": "Deciding whether a particular concept is a class in an ontology or an individual instance depends on what the potential applications of the ontology are.",
737
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
738
+ },
739
+ {
740
+ "type": "SourceLocation",
741
+ "id": "loc.o101.granularity",
742
+ "section": "§4.6 An instance or a class?",
743
+ "page": 18,
744
+ "quote": "The level of granularity is in turn determined by a potential application of the ontology.",
745
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
746
+ },
747
+ {
748
+ "type": "SourceLocation",
749
+ "id": "loc.o101.cq-individuals",
750
+ "section": "§4.6 An instance or a class?",
751
+ "page": 18,
752
+ "quote": "the most specific concepts that will constitute answers to those questions are very good candidates for individuals in the knowledge base.",
753
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
754
+ },
755
+ {
756
+ "type": "SourceLocation",
757
+ "id": "loc.o101.instances-most-specific",
758
+ "section": "§4.6 An instance or a class?",
759
+ "page": 18,
760
+ "quote": "Individual instances are the most specific concepts represented in a knowledge base.",
761
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
762
+ },
763
+ {
764
+ "type": "SourceLocation",
765
+ "id": "loc.o101.natural-hierarchy",
766
+ "section": "§4.6 An instance or a class?",
767
+ "page": 18,
768
+ "quote": "If concepts form a natural hierarchy, then we should represent them as classes",
769
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
770
+ },
771
+ {
772
+ "type": "SourceLocation",
773
+ "id": "loc.o101.abstract",
774
+ "section": "§4.6 An instance or a class?",
775
+ "page": 18,
776
+ "quote": "Protégé-2000 allows users to specify some classes as Abstract, signifying that the class cannot have any direct instances.",
777
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=18"
778
+ },
779
+ {
780
+ "type": "SourceLocation",
781
+ "id": "loc.o101.no-sub-instance",
782
+ "section": "§4.6 An instance or a class?",
783
+ "page": 19,
784
+ "quote": "Only classes can be arranged in a hierarchy—knowledge-representation systems do not have a notion of sub-instance.",
785
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=19"
786
+ },
787
+ {
788
+ "type": "SourceLocation",
789
+ "id": "loc.o101.classes-without-instances",
790
+ "section": "§4.6 An instance or a class?",
791
+ "page": 19,
792
+ "quote": "we should define these terms as classes even though they may not have any instances of their own.",
793
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=19"
794
+ },
795
+ {
796
+ "type": "SourceLocation",
797
+ "id": "loc.o101.limit-scope",
798
+ "section": "§4.7 Limiting the scope",
799
+ "page": 19,
800
+ "quote": "The ontology should not contain all the possible information about the domain: you do not need to specialize (or generalize) more than you need for your application (at most one extra level each way).",
801
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=19"
802
+ },
803
+ {
804
+ "type": "SourceLocation",
805
+ "id": "loc.o101.limit-properties",
806
+ "section": "§4.7 Limiting the scope",
807
+ "page": 19,
808
+ "quote": "The ontology should not contain all the possible properties of and distinctions among classes in the hierarchy.",
809
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=19"
810
+ },
811
+ {
812
+ "type": "SourceLocation",
813
+ "id": "loc.o101.record-decisions",
814
+ "section": "§4.7 Limiting the scope",
815
+ "page": 20,
816
+ "quote": "However, we should record such design decision in the documentation for the benefit of the users who will be looking at this ontology and who may not be aware of the application we had in mind.",
817
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=20"
818
+ },
819
+ {
820
+ "type": "SourceLocation",
821
+ "id": "loc.o101.disjoint",
822
+ "section": "§4.8 Disjoint subclasses",
823
+ "page": 20,
824
+ "quote": "Classes are disjoint if they cannot have any instances in common.",
825
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=20"
826
+ },
827
+ {
828
+ "type": "SourceLocation",
829
+ "id": "loc.o101.disjoint-validate",
830
+ "section": "§4.8 Disjoint subclasses",
831
+ "page": 20,
832
+ "quote": "Specifying that classes are disjoint enables the system to validate the ontology better. If we declare the Red wine and the White wine classes to be disjoint and later create a class that is a subclass of both Riesling (a subclass of White wine) and Port (a subclass of Red wine), a system can indicate that there is a modeling error.",
833
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=20"
834
+ },
835
+ {
836
+ "type": "SourceLocation",
837
+ "id": "loc.o101.inverse",
838
+ "section": "§5.1 Inverse slots",
839
+ "page": 20,
840
+ "quote": "Storing the information “in both directions” is redundant. When we know that a wine is produced by a winery, an application using the knowledge base can always infer the value for the inverse relation that the winery produces the wine. However, from the knowledge-acquisition perspective it is convenient to have both pieces of information explicitly available.",
841
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=20"
842
+ },
843
+ {
844
+ "type": "SourceLocation",
845
+ "id": "loc.o101.inverse-auto",
846
+ "section": "§5.1 Inverse slots",
847
+ "page": 20,
848
+ "quote": "The knowledge-acquisition system could then automatically fill in the value for the inverse relation insuring consistency of the knowledge base.",
849
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=20"
850
+ },
851
+ {
852
+ "type": "SourceLocation",
853
+ "id": "loc.o101.inverse-figure",
854
+ "section": "§5.1 Inverse slots, Figure 9",
855
+ "page": 21,
856
+ "quote": "The slot produces for the class Winery is an inverse of the slot maker for the class Wine.",
857
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
858
+ },
859
+ {
860
+ "type": "SourceLocation",
861
+ "id": "loc.o101.defaults",
862
+ "section": "§5.2 Default values",
863
+ "page": 21,
864
+ "quote": "If a particular slot value is the same for most instances of a class, we can define this value to be a default value for the slot.",
865
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
866
+ },
867
+ {
868
+ "type": "SourceLocation",
869
+ "id": "loc.o101.defaults-convenience",
870
+ "section": "§5.2 Default values",
871
+ "page": 21,
872
+ "quote": "We can then change the value to any other value that the facets will allow. That is, default values are there for convenience: they do not enforce any new restrictions on the model or change the model in any way.",
873
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
874
+ },
875
+ {
876
+ "type": "SourceLocation",
877
+ "id": "loc.o101.fixed-values",
878
+ "section": "§5.2 Default values",
879
+ "page": 21,
880
+ "quote": "Slot values cannot be changed. For example, we can say that the slot sugar has value SWEET for the Dessert wine class. Then all the subclasses and instances of the Dessert wine class will have the SWEET value for the slot sugar. This value cannot be changed in any of the subclasses or instances of the class.",
881
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
882
+ },
883
+ {
884
+ "type": "SourceLocation",
885
+ "id": "loc.o101.naming-why",
886
+ "section": "§6 What's in a name?",
887
+ "page": 21,
888
+ "quote": "Defining naming conventions for concepts in an ontology and then strictly adhering to these conventions not only makes the ontology easier to understand but also helps avoid some common modeling mistakes.",
889
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
890
+ },
891
+ {
892
+ "type": "SourceLocation",
893
+ "id": "loc.o101.naming",
894
+ "section": "§6 What's in a name?",
895
+ "page": 21,
896
+ "quote": "However, we need to Define a naming convention for classes and slots and adhere to it.",
897
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=21"
898
+ },
899
+ {
900
+ "type": "SourceLocation",
901
+ "id": "loc.o101.name-spaces",
902
+ "section": "§6 What's in a name?",
903
+ "page": 22,
904
+ "quote": "Does the system have the same name space for classes, slots, and instances? That is, does the system allow having a class and a slot with the same name (such as a class winery and a slot winery)? Is the system case-sensitive?",
905
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=22"
906
+ },
907
+ {
908
+ "type": "SourceLocation",
909
+ "id": "loc.o101.capitalization",
910
+ "section": "§6.1 Capitalization and delimiters",
911
+ "page": 22,
912
+ "quote": "it is common to capitalize class names and use lower case for slot names (assuming the system is case-sensitive).",
913
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=22"
914
+ },
915
+ {
916
+ "type": "SourceLocation",
917
+ "id": "loc.o101.other-systems",
918
+ "section": "§6.1 Capitalization and delimiters",
919
+ "page": 22,
920
+ "quote": "It is however, important to consider other systems with which your system may interact.",
921
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=22"
922
+ },
923
+ {
924
+ "type": "SourceLocation",
925
+ "id": "loc.o101.singular-plural-consistent",
926
+ "section": "§6.2 Singular or plural",
927
+ "page": 22,
928
+ "quote": "No alternative is better or worse than the other (although singular for class names is used more often in practice). However, whatever the choice, it should be consistent throughout the whole ontology.",
929
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=22"
930
+ },
931
+ {
932
+ "type": "SourceLocation",
933
+ "id": "loc.o101.prefix-suffix",
934
+ "section": "§6.3 Prefix and suffix conventions",
935
+ "page": 22,
936
+ "quote": "Two common practices are to add a has- or a suffix –of to slot names.",
937
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=22"
938
+ },
939
+ {
940
+ "type": "SourceLocation",
941
+ "id": "loc.o101.things-to-consider",
942
+ "section": "§6.4 Other naming considerations",
943
+ "page": 23,
944
+ "quote": "Here are a few more things to consider when defining naming conventions:",
945
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
946
+ },
947
+ {
948
+ "type": "SourceLocation",
949
+ "id": "loc.o101.no-type-words",
950
+ "section": "§6.4 Other naming considerations",
951
+ "page": 23,
952
+ "quote": "Do not add strings such as “class”, “property”, “slot”, and so on to concept names.",
953
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
954
+ },
955
+ {
956
+ "type": "SourceLocation",
957
+ "id": "loc.o101.abbreviations",
958
+ "section": "§6.4 Other naming considerations",
959
+ "page": 23,
960
+ "quote": "It is usually a good idea to avoid abbreviations in concept names (that is, use Cabernet Sauvignon rather than Cab)",
961
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
962
+ },
963
+ {
964
+ "type": "SourceLocation",
965
+ "id": "loc.o101.subclass-names",
966
+ "section": "§6.4 Other naming considerations",
967
+ "page": 23,
968
+ "quote": "Names of direct subclasses of a class should either all include or not include the name of the superclass.",
969
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
970
+ },
971
+ {
972
+ "type": "SourceLocation",
973
+ "id": "loc.o101.diagnostics",
974
+ "section": "§7 Other Resources",
975
+ "page": 23,
976
+ "quote": "An ontology designer may want to run Chimaera diagnostics over the evolving ontology to determine the conformance to common ontology-modeling practices.",
977
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
978
+ },
979
+ {
980
+ "type": "SourceLocation",
981
+ "id": "loc.o101.no-single-correct",
982
+ "section": "§8 Conclusions",
983
+ "page": 23,
984
+ "quote": "there is no single correct ontology for any domain.",
985
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
986
+ },
987
+ {
988
+ "type": "SourceLocation",
989
+ "id": "loc.o101.pudding",
990
+ "section": "§8 Conclusions",
991
+ "page": 23,
992
+ "quote": "we can assess the quality of our ontology only by using it in applications for which we designed it.",
993
+ "deepLink": "https://protege.stanford.edu/publications/ontology_development/ontology101.pdf#page=23"
994
+ },
995
+ {
996
+ "type": "SourceLocation",
997
+ "id": "loc.g93.conceptualization",
998
+ "section": "§1 Introduction",
999
+ "page": 2,
1000
+ "quote": "A conceptualization is an abstract, simplified view of the world that we wish to represent for some purpose."
1001
+ },
1002
+ {
1003
+ "type": "SourceLocation",
1004
+ "id": "loc.g93.definition",
1005
+ "section": "§1 Introduction",
1006
+ "page": 2,
1007
+ "quote": "An ontology is an explicit specification of a conceptualization."
1008
+ },
1009
+ {
1010
+ "type": "SourceLocation",
1011
+ "id": "loc.g93.definitions-text",
1012
+ "section": "§1 Introduction",
1013
+ "page": 3,
1014
+ "quote": "definitions associate the names of entities in the universe of discourse (e.g., classes, relations, functions, or other objects) with human-readable text describing what the names are meant to denote, and formal axioms that constrain the interpretation and well-formed use of these terms."
1015
+ },
1016
+ {
1017
+ "type": "SourceLocation",
1018
+ "id": "loc.g93.knowledge-level",
1019
+ "section": "§1 Introduction",
1020
+ "page": 3,
1021
+ "quote": "Ideally, shared terms should be defined at the knowledge level, independent of specific representation languages."
1022
+ },
1023
+ {
1024
+ "type": "SourceLocation",
1025
+ "id": "loc.g93.consistency-not-completeness",
1026
+ "section": "§2 Ontologies and knowledge sharing",
1027
+ "page": 5,
1028
+ "quote": "a commitment to a common ontology is a guarantee of consistency, but not completeness, with respect to queries and assertions using the vocabulary defined"
1029
+ },
1030
+ {
1031
+ "type": "SourceLocation",
1032
+ "id": "loc.g93.documentation",
1033
+ "section": "§3.1 Syntax and semantics",
1034
+ "page": 8,
1035
+ "quote": "The natural language text is not parsed or translated, but is passed on to those systems that have a place for documentation (surprisingly, many representation systems do not!)."
1036
+ },
1037
+ {
1038
+ "type": "Principle",
1039
+ "id": "principle.no-single-correct-model",
1040
+ "name": "There is no single correct model",
1041
+ "statement": "There is no one correct way to model a domain; there are always viable alternatives, and the best one depends on the application you have in mind and the extensions you expect.",
1042
+ "plainLanguage": "Two careful people will build two different ontologies of the same thing, and both can be good. Stop looking for the right answer and look for the one that fits your purpose. When you get stuck, go back to your competency questions."
1043
+ },
1044
+ {
1045
+ "type": "Principle",
1046
+ "id": "principle.iterate",
1047
+ "name": "Build it iteratively",
1048
+ "statement": "Ontology development is necessarily an iterative process: start with a rough first pass, then revise and refine it.",
1049
+ "plainLanguage": "Your first version will be wrong in places, and that's expected. Get a rough version working end to end (scope → classes → slots → a few instances), test it against your questions, then go back and fix it."
1050
+ },
1051
+ {
1052
+ "type": "Principle",
1053
+ "id": "principle.nouns-and-verbs",
1054
+ "name": "Model what's really in the domain",
1055
+ "statement": "Concepts in the ontology should be close to objects (physical or logical) and relationships in your domain of interest; these are most likely to be nouns (objects) or verbs (relationships) in sentences that describe your domain.",
1056
+ "plainLanguage": "Write a few plain sentences about your domain. The nouns are usually your classes and the verbs are usually your relationships. If a class isn't something people in the domain would recognize, be suspicious of it."
1057
+ },
1058
+ {
1059
+ "type": "Principle",
1060
+ "id": "principle.purpose-driven",
1061
+ "name": "An ontology exists to serve a purpose",
1062
+ "statement": "An ontology is usually not a goal in itself; its quality can only be assessed by using it in the applications it was designed for.",
1063
+ "plainLanguage": "You aren't cataloguing everything that's true about a domain. You're building something that can answer specific questions for specific people. If a detail doesn't help answer one of your questions, leave it out."
1064
+ },
1065
+ {
1066
+ "type": "Principle",
1067
+ "id": "principle.structure-not-behavior",
1068
+ "name": "Think in structure, not behavior",
1069
+ "statement": "A programmer makes design decisions based on the operational properties of a class, whereas an ontology designer makes these decisions based on the structural properties of a class.",
1070
+ "plainLanguage": "If you write software, be careful: an ontology class is not a code class. You aren't grouping things by what they do or which code they share. You're grouping them by what they are. 'Is every X necessarily a Y?' is the only question that makes X a subclass of Y."
1071
+ },
1072
+ {
1073
+ "type": "Principle",
1074
+ "id": "principle.knowledge-level",
1075
+ "name": "Model the domain, not the database",
1076
+ "statement": "Shared terms should ideally be defined at the knowledge level, independent of any specific representation language or system.",
1077
+ "plainLanguage": "Decide what your concepts mean before you think about how they'll be stored. The toolkit saves your ontology as graph (LPG) JSON, but you should never make a modeling choice because it's convenient for a graph database. The graph is just the storage format."
1078
+ },
1079
+ {
1080
+ "type": "Principle",
1081
+ "id": "principle.document-meaning",
1082
+ "name": "Write down what every term means",
1083
+ "statement": "Definitions associate the names of entities with human-readable text describing what the names are meant to denote, and formal constraints on their use.",
1084
+ "plainLanguage": "A class name alone is ambiguous: does 'Order' mean a purchase or a sequence? Give every class and slot a one-sentence description. The structure tells a machine how to use a term, and the description tells a person what it means."
1085
+ },
1086
+ {
1087
+ "type": "Concept",
1088
+ "id": "concept.ontology",
1089
+ "name": "Ontology",
1090
+ "definition": "A formal, explicit description of the concepts in a domain (classes), the properties of each concept (slots), and restrictions on those properties (facets). Gruber's shorter version: an explicit specification of a conceptualization.",
1091
+ "plainLanguage": "A shared, precise vocabulary for one subject: what kinds of things exist, how they relate, and which statements about them make sense. It's written down so that people and software use the words the same way.",
1092
+ "example": "The wine ontology says there are Wines, Wineries and Grapes; that a Red Wine is a kind of Wine; that every Wine has a body (light, medium or full) and a maker that is a Winery.",
1093
+ "inThisToolkit": "Your Class, Slot and CompetencyQuestion nodes plus the Ontology node that records scope and conventions.",
1094
+ "origin": "source"
1095
+ },
1096
+ {
1097
+ "type": "Concept",
1098
+ "id": "concept.conceptualization",
1099
+ "name": "Conceptualization",
1100
+ "definition": "An abstract, simplified view of the world that we wish to represent for some purpose.",
1101
+ "plainLanguage": "The picture of the domain in your head: which things you think matter and how you think they fit together. The ontology is you writing that picture down explicitly.",
1102
+ "example": "A sommelier and a wine-label printer have different conceptualizations of wine. One cares about pairings and the other about label sizes.",
1103
+ "inThisToolkit": "Step 1 (scope) is where you make your conceptualization explicit.",
1104
+ "origin": "source"
1105
+ },
1106
+ {
1107
+ "type": "Concept",
1108
+ "id": "concept.knowledge-base",
1109
+ "name": "Knowledge base",
1110
+ "definition": "An ontology together with a set of individual instances of classes. The line between where the ontology ends and the knowledge base begins is a fine one.",
1111
+ "plainLanguage": "The ontology is the empty form: which fields exist and what's allowed in them. The knowledge base is the form filled in with real things.",
1112
+ "example": "The ontology defines the Wine class and its slots; adding 'Château Morgon Beaujolais' with body=light turns it into a knowledge base.",
1113
+ "inThisToolkit": "The same nodes.json/edges.json hold both. Instance nodes are the knowledge-base part.",
1114
+ "origin": "source"
1115
+ },
1116
+ {
1117
+ "type": "Concept",
1118
+ "id": "concept.class",
1119
+ "name": "Class",
1120
+ "aliases": [
1121
+ "concept",
1122
+ "type",
1123
+ "category"
1124
+ ],
1125
+ "definition": "A description of a concept in the domain. A class represents the set of all things of that kind; classes are the focus of most ontologies.",
1126
+ "plainLanguage": "A kind of thing, like 'Wine' or 'Winery'. It's the category, not any particular one. Classes are usually nouns that name things with an independent existence.",
1127
+ "example": "The class Wine represents all wines. Bordeaux is a class of the more specific Bordeaux wines.",
1128
+ "inThisToolkit": "A node of type Class, created with `okb class add`.",
1129
+ "origin": "source"
1130
+ },
1131
+ {
1132
+ "type": "Concept",
1133
+ "id": "concept.instance",
1134
+ "name": "Instance",
1135
+ "aliases": [
1136
+ "individual"
1137
+ ],
1138
+ "definition": "An individual member of a class, and the most specific kind of concept represented in a knowledge base.",
1139
+ "plainLanguage": "One specific, real thing, like this particular wine. An instance belongs to a class, but nothing can be a 'kind of' an instance.",
1140
+ "example": "Château Morgon Beaujolais is an instance of the class Beaujolais.",
1141
+ "inThisToolkit": "A node of type Instance with an INSTANCE_OF edge to its class. Created with `okb instance add`.",
1142
+ "origin": "source"
1143
+ },
1144
+ {
1145
+ "type": "Concept",
1146
+ "id": "concept.subclass",
1147
+ "name": "Subclass / superclass (is-a)",
1148
+ "aliases": [
1149
+ "is-a",
1150
+ "kind-of",
1151
+ "specialization",
1152
+ "parent",
1153
+ "child"
1154
+ ],
1155
+ "definition": "Class B is a subclass of class A if every instance of B is necessarily an instance of A; B represents a concept that is a 'kind of' A.",
1156
+ "plainLanguage": "Ask: 'Is every B, by definition, also an A?' If yes, B is a subclass of A. If the answer is 'usually', 'is part of' or 'is related to', it is NOT a subclass.",
1157
+ "example": "Every Pinot Noir is necessarily a Red Wine, so Pinot Noir is a subclass of Red Wine. A Wheel is part of a Car, but a Wheel is not a kind of Car.",
1158
+ "inThisToolkit": "An IS_A edge from the subclass to the superclass (`okb class add PinotNoir --parent RedWine`).",
1159
+ "origin": "source"
1160
+ },
1161
+ {
1162
+ "type": "Concept",
1163
+ "id": "concept.direct-subclass",
1164
+ "name": "Direct subclass",
1165
+ "definition": "The closest subclass of a class: there are no classes between it and the parent in the hierarchy.",
1166
+ "plainLanguage": "Its immediate child, as opposed to a grandchild.",
1167
+ "example": "Chardonnay is a direct subclass of White Wine and an indirect subclass of Wine.",
1168
+ "inThisToolkit": "An IS_A edge you actually wrote. Indirect subclasses are worked out automatically.",
1169
+ "origin": "source"
1170
+ },
1171
+ {
1172
+ "type": "Concept",
1173
+ "id": "concept.transitivity",
1174
+ "name": "Transitivity (of is-a)",
1175
+ "definition": "The subclass relationship is transitive: if B is a subclass of A and C is a subclass of B, then C is a subclass of A.",
1176
+ "plainLanguage": "Kind-of relationships chain together. You only need to state the direct parent, and everything further up follows automatically.",
1177
+ "example": "Chardonnay ⊂ White Wine ⊂ Wine, so Chardonnay is a Wine.",
1178
+ "inThisToolkit": "okb follows IS_A chains when it checks inheritance, disjointness and slot values. Don't add shortcut edges (see rule hier-no-redundant-isa).",
1179
+ "origin": "source"
1180
+ },
1181
+ {
1182
+ "type": "Concept",
1183
+ "id": "concept.class-hierarchy",
1184
+ "name": "Class hierarchy (taxonomy)",
1185
+ "definition": "The classes arranged by subclass–superclass (is-a) relations.",
1186
+ "plainLanguage": "The family tree of your classes, from general at the top to specific at the bottom.",
1187
+ "example": "Wine → Red Wine → Bordeaux → Médoc → Pauillac.",
1188
+ "inThisToolkit": "`okb tree` prints it; `okb diagram` draws it.",
1189
+ "origin": "source"
1190
+ },
1191
+ {
1192
+ "type": "Concept",
1193
+ "id": "concept.sibling",
1194
+ "name": "Siblings",
1195
+ "definition": "Classes that are direct subclasses of the same class.",
1196
+ "plainLanguage": "Classes that share the same parent. Like same-level headings in a book outline, siblings should be about equally general.",
1197
+ "example": "Red Wine, White Wine and Rosé Wine are siblings under Wine.",
1198
+ "inThisToolkit": "Several classes with IS_A edges to the same parent.",
1199
+ "origin": "source"
1200
+ },
1201
+ {
1202
+ "type": "Concept",
1203
+ "id": "concept.multiple-inheritance",
1204
+ "name": "Multiple inheritance",
1205
+ "definition": "A class that is a subclass of several classes, inheriting slots and facets from all of its parents.",
1206
+ "plainLanguage": "A class can have more than one parent when it really is a kind of each of them. It's allowed and sometimes the right answer, so write down why you did it.",
1207
+ "example": "Port is both a Red Wine and a Dessert Wine.",
1208
+ "inThisToolkit": "Two or more IS_A edges from the same class (`--parent RedWine --parent DessertWine`).",
1209
+ "origin": "source"
1210
+ },
1211
+ {
1212
+ "type": "Concept",
1213
+ "id": "concept.abstract-class",
1214
+ "name": "Abstract class",
1215
+ "definition": "A class that cannot have any direct instances; only its subclasses can.",
1216
+ "plainLanguage": "A grouping class that exists to organize other classes. Nothing is ever 'just' one of these without also belonging to a more specific subclass.",
1217
+ "example": "In Ontology 101, every wine-region class is abstract.",
1218
+ "inThisToolkit": "Class property `abstract: true` (`okb class add ... --abstract`).",
1219
+ "origin": "source"
1220
+ },
1221
+ {
1222
+ "type": "Concept",
1223
+ "id": "concept.terminological-hierarchy",
1224
+ "name": "Terminological hierarchy",
1225
+ "definition": "A reference hierarchy of terms whose classes do not have to introduce new properties; it is organized as a hierarchy for navigation and to let users pick a level of generality.",
1226
+ "plainLanguage": "Sometimes the hierarchy itself is the point, like a classification of diseases or product categories. In that case it's fine for subclasses to add nothing new.",
1227
+ "example": "A classification of diseases in a medical-records ontology.",
1228
+ "inThisToolkit": "Class property `terminological: true` (or on the Ontology node for the whole ontology). It switches off the 'subclass adds nothing new' warning.",
1229
+ "origin": "source"
1230
+ },
1231
+ {
1232
+ "type": "Concept",
1233
+ "id": "concept.slot",
1234
+ "name": "Slot",
1235
+ "aliases": [
1236
+ "property",
1237
+ "relationship",
1238
+ "role",
1239
+ "attribute",
1240
+ "datatype property",
1241
+ "object property"
1242
+ ],
1243
+ "definition": "A property of a class describing features and attributes of its instances. Slots can hold simple values (like a name) or relationships to other individuals (like a maker).",
1244
+ "plainLanguage": "A field every member of a class has. There are two kinds. A property holds a plain value, such as a name, a year or one of a fixed list. A relationship points at another thing: a wine's maker is a Winery. 'Slot' is Ontology 101's word for both. OWL calls them datatype properties and object properties, and a graph database stores them as node properties and relationship types.",
1245
+ "example": "Wine has slots color, body, flavor, sugar, name, maker and grape.",
1246
+ "inThisToolkit": "A node of type Slot, attached to classes with HAS_SLOT edges. `okb property add body --on Wine ...` creates a property; `okb relationship add maker --from Wine --to Winery` creates a relationship (a Slot with value type Instance, stored as edges of type MAKER).",
1247
+ "origin": "source"
1248
+ },
1249
+ {
1250
+ "type": "Concept",
1251
+ "id": "concept.intrinsic-extrinsic",
1252
+ "name": "Intrinsic vs. extrinsic property",
1253
+ "definition": "Intrinsic properties belong to the thing itself (a wine's flavor); extrinsic properties are assigned from outside (a wine's name, the area it comes from).",
1254
+ "plainLanguage": "A rough test (the toolkit's, not Ontology 101's): would the property stay the same if nobody was looking? Flavor would, so it's intrinsic. A name, a location, or whether it's currently chilled is extrinsic. Extrinsic properties make poor classes because things move in and out of them.",
1255
+ "example": "Chilled Wine should not be a class: a bottle goes in and out of the fridge. 'chilled' is a slot.",
1256
+ "inThisToolkit": "It matters when you decide between a class and a slot value (decision guide class-or-value).",
1257
+ "origin": "source"
1258
+ },
1259
+ {
1260
+ "type": "Concept",
1261
+ "id": "concept.inheritance",
1262
+ "name": "Slot inheritance",
1263
+ "definition": "All subclasses of a class inherit the slots of that class.",
1264
+ "plainLanguage": "Attach a slot once, as high in the tree as it applies, and every class below gets it for free.",
1265
+ "example": "Because body is attached to Wine, Red Wine and Pauillac have a body slot too.",
1266
+ "inThisToolkit": "okb works out inherited slots automatically; `okb show <Class>` lists them.",
1267
+ "origin": "source"
1268
+ },
1269
+ {
1270
+ "type": "Concept",
1271
+ "id": "concept.facet",
1272
+ "name": "Facet",
1273
+ "aliases": [
1274
+ "role restriction",
1275
+ "slot constraint"
1276
+ ],
1277
+ "definition": "A restriction on a slot: its value type, allowed values, number of values (cardinality), and other features of the values it can take.",
1278
+ "plainLanguage": "The rules for filling in a field: what kind of value goes in it, which values are allowed, and how many.",
1279
+ "example": "body: value type Enumerated, allowed values {light, medium, full}, cardinality single.",
1280
+ "inThisToolkit": "Properties on the Slot node: valueType, allowedValues, cardinality, minCardinality, maxCardinality, default.",
1281
+ "origin": "source"
1282
+ },
1283
+ {
1284
+ "type": "Concept",
1285
+ "id": "concept.value-type",
1286
+ "name": "Value type",
1287
+ "definition": "A facet describing what types of values can fill a slot: String, Number (Integer/Float), Boolean, Enumerated (a fixed list of symbols) or Instance (a relationship to another individual).",
1288
+ "plainLanguage": "Is it text, a number, yes/no, one of a fixed list of words, or a link to another thing?",
1289
+ "example": "name: String; price: Float; sparkling: Boolean; flavor: Enumerated {strong, moderate, delicate}; maker: Instance of Winery.",
1290
+ "inThisToolkit": "Slot.valueType, one of String, Integer, Float, Number, Boolean, Enumerated, Instance.",
1291
+ "origin": "source"
1292
+ },
1293
+ {
1294
+ "type": "Concept",
1295
+ "id": "concept.cardinality",
1296
+ "name": "Cardinality",
1297
+ "definition": "How many values a slot can have: single (at most one) or multiple, optionally with an explicit minimum and maximum.",
1298
+ "plainLanguage": "'Exactly one', 'zero or one', 'at least one', or 'any number'. Minimum 1 means the field is required. Maximum 0 on a subclass means 'this subclass never has this field'.",
1299
+ "example": "A wine has one body (single). A winery produces many wines (multiple). grape has minimum 1, because every wine is made of at least one grape.",
1300
+ "inThisToolkit": "Slot.cardinality ('single' | 'multiple'), Slot.minCardinality, Slot.maxCardinality. A class can override them in facetOverrides.",
1301
+ "origin": "source"
1302
+ },
1303
+ {
1304
+ "type": "Concept",
1305
+ "id": "concept.domain",
1306
+ "name": "Domain (of a slot)",
1307
+ "definition": "The classes to which a slot is attached, i.e. the classes whose property the slot describes.",
1308
+ "plainLanguage": "Which kinds of things have this field.",
1309
+ "example": "Winery is the domain of produces.",
1310
+ "inThisToolkit": "HAS_SLOT edges from each domain class to the slot.",
1311
+ "origin": "source"
1312
+ },
1313
+ {
1314
+ "type": "Concept",
1315
+ "id": "concept.range",
1316
+ "name": "Range (of a slot)",
1317
+ "definition": "For slots of value type Instance, the allowed classes that values must come from.",
1318
+ "plainLanguage": "For a field that points at another thing, what kind of thing it's allowed to point at.",
1319
+ "example": "Wine is the range of produces; Winery is the range of maker.",
1320
+ "inThisToolkit": "RANGE edges from the slot to each allowed class (`okb relationship add maker --from Wine --to Winery`).",
1321
+ "origin": "source"
1322
+ },
1323
+ {
1324
+ "type": "Concept",
1325
+ "id": "concept.inverse-slots",
1326
+ "name": "Inverse slots",
1327
+ "definition": "Two slots describing the same relationship from opposite directions. Storing both is redundant, but convenient for entering data, and a tool can fill in the inverse automatically to keep them consistent.",
1328
+ "plainLanguage": "'Wine → maker → Winery' and 'Winery → produces → Wine' are the same fact seen from each end. Declare them as inverses and okb keeps the two sides in sync.",
1329
+ "example": "maker (on Wine) and produces (on Winery).",
1330
+ "inThisToolkit": "An INVERSE_OF edge between the two slots (`okb relationship inverse maker produces`). Each fact is stored once, as a MAKER edge from wine to winery; `produces` reads those edges backwards. In a graph every edge can be followed from either end, so storing both directions would duplicate data.",
1331
+ "origin": "source"
1332
+ },
1333
+ {
1334
+ "type": "Concept",
1335
+ "id": "concept.default-value",
1336
+ "name": "Default value",
1337
+ "definition": "A value filled in automatically for new instances because it is the same for most of them; it can be changed to any value the facets allow and adds no restriction to the model.",
1338
+ "plainLanguage": "A starting suggestion that you can override.",
1339
+ "example": "If most wines you describe are full-bodied, body defaults to full.",
1340
+ "inThisToolkit": "Slot.default, or a per-class default in Class.defaults.",
1341
+ "origin": "source"
1342
+ },
1343
+ {
1344
+ "type": "Concept",
1345
+ "id": "concept.fixed-value",
1346
+ "name": "Fixed (class-level) slot value",
1347
+ "definition": "A slot value stated for a class that all of its subclasses and instances have and cannot change.",
1348
+ "plainLanguage": "A fact about the whole class, not a starting suggestion. Every Dessert Wine is sweet, full stop.",
1349
+ "example": "sugar = SWEET for Dessert Wine.",
1350
+ "inThisToolkit": "Class.fixedValues for property values; for relationships, an edge of the relationship's type from the class node, e.g. (RedWine)-[:GOES_WELL_WITH]->(RedMeat) (`okb class fix DessertWine sugar=sweet`).",
1351
+ "origin": "source"
1352
+ },
1353
+ {
1354
+ "type": "Concept",
1355
+ "id": "concept.facet-override",
1356
+ "name": "Facet override (restriction on a subclass)",
1357
+ "definition": "A subclass restricting an inherited slot's facets more tightly, such as fewer allowed values or a different maximum cardinality.",
1358
+ "plainLanguage": "The subclass inherits the field but tightens its rules.",
1359
+ "example": "Single-varietal wines restrict grape to maximum cardinality 1.",
1360
+ "inThisToolkit": "Class.facetOverrides: {<slot id>: {allowedValues | minCardinality | maxCardinality | range}}.",
1361
+ "origin": "source"
1362
+ },
1363
+ {
1364
+ "type": "Concept",
1365
+ "id": "concept.disjoint",
1366
+ "name": "Disjoint classes",
1367
+ "definition": "Classes that cannot have any instances in common. Declaring them lets a system catch a class or instance placed under both.",
1368
+ "plainLanguage": "'Nothing can be both.' Declaring it lets okb catch mistakes like a wine that is both red and white.",
1369
+ "example": "Red Wine and White Wine are disjoint. Dessert Wine and White Wine are not (a sweet Riesling is both).",
1370
+ "inThisToolkit": "A DISJOINT_WITH edge (`okb class disjoint RedWine WhiteWine RoseWine`).",
1371
+ "origin": "source"
1372
+ },
1373
+ {
1374
+ "type": "Concept",
1375
+ "id": "concept.synonym",
1376
+ "name": "Synonym",
1377
+ "definition": "A different name for the same concept. Synonyms are not different classes; they can be recorded as a list attached to the class.",
1378
+ "plainLanguage": "Shrimp and Prawn are two words for one thing, so they belong in one class with the other name listed as a synonym.",
1379
+ "example": "One class named Shrimp, with synonyms [Prawn, Crevette].",
1380
+ "inThisToolkit": "Class.synonyms (`okb class add Shrimp --synonym Prawn`).",
1381
+ "origin": "source"
1382
+ },
1383
+ {
1384
+ "type": "Concept",
1385
+ "id": "concept.naming-convention",
1386
+ "name": "Naming convention",
1387
+ "definition": "An agreed scheme for naming classes and slots (capitalization, word delimiters, singular vs. plural, prefixes/suffixes), chosen once and followed throughout.",
1388
+ "plainLanguage": "Decide once how names look, for example classes in PascalCase and singular, slots in camelCase, and then never deviate.",
1389
+ "example": "Classes: RedWine, Winery. Slots: tanninLevel, maker.",
1390
+ "inThisToolkit": "Ontology.conventions, set with `okb convention`. okb checks every name against it.",
1391
+ "origin": "source"
1392
+ },
1393
+ {
1394
+ "type": "Concept",
1395
+ "id": "concept.competency-question",
1396
+ "name": "Competency question",
1397
+ "definition": "A question the knowledge base built on the ontology should be able to answer. Together they sketch the scope, and later serve as the litmus test for whether the ontology contains enough information.",
1398
+ "plainLanguage": "Before building anything, write down the actual questions you want answered. They tell you what to include, what to leave out, and when you're done.",
1399
+ "example": "'Does Cabernet Sauvignon go well with seafood?' 'What is the best choice of wine for grilled meat?'",
1400
+ "inThisToolkit": "CompetencyQuestion nodes (`okb cq add`). NEEDS edges link each question to the classes and slots that answer it.",
1401
+ "origin": "source"
1402
+ },
1403
+ {
1404
+ "type": "Concept",
1405
+ "id": "concept.scope",
1406
+ "name": "Scope",
1407
+ "definition": "The domain an ontology covers, what it will be used for, which questions it should answer, and who will use and maintain it.",
1408
+ "plainLanguage": "The fence around your project. It's what lets you say 'that's out of scope' with confidence.",
1409
+ "example": "Wine & food pairing: in scope. Winery inventory and restaurant staffing: out of scope.",
1410
+ "inThisToolkit": "The Ontology node: domain, purpose, users, maintainers, outOfScope (`okb scope`).",
1411
+ "origin": "source"
1412
+ },
1413
+ {
1414
+ "type": "Concept",
1415
+ "id": "concept.design-decision",
1416
+ "name": "Design decision (record)",
1417
+ "definition": "A written note of a modeling choice and the reason for it, for people who reuse the ontology without knowing the application it was designed for.",
1418
+ "plainLanguage": "When you deliberately leave something out, or pick between two reasonable options, write one sentence on what you chose and why. Future readers, including you in six months, will need it. (Ontology 101 asks for this for scope decisions; the toolkit suggests it for any choice a reader wouldn't expect.)",
1419
+ "example": "'Experimenter is NOT modeled as a subclass of Biological Organism, because we never run experiments on experimenters.'",
1420
+ "inThisToolkit": "DesignDecision nodes with ABOUT edges (`okb decision add`).",
1421
+ "origin": "source"
1422
+ },
1423
+ {
1424
+ "type": "Concept",
1425
+ "id": "concept.development-approach",
1426
+ "name": "Top-down / bottom-up / combination",
1427
+ "definition": "Three ways to grow a class hierarchy: start from the most general concepts and specialize (top-down), start from the most specific and group them (bottom-up), or start from the most salient concepts and go both ways (combination).",
1428
+ "plainLanguage": "Start wherever your head naturally is. Many people find the middle easiest ('Red Wine', 'Bordeaux') and work up and down from there.",
1429
+ "example": "Top-down: Wine → Red Wine → Syrah. Bottom-up: Pauillac, Margaux → Médoc → Bordeaux. Combination: Wine and Margaux, then Médoc in the middle.",
1430
+ "inThisToolkit": "Decision guide `decision.approach`.",
1431
+ "origin": "source"
1432
+ },
1433
+ {
1434
+ "type": "Concept",
1435
+ "id": "concept.lpg",
1436
+ "name": "Labeled property graph (LPG)",
1437
+ "definition": "The storage format used by this toolkit: nodes and edges that each carry a type label and a set of key/value properties.",
1438
+ "plainLanguage": "Your ontology is saved as two JSON lists, nodes and edges, which is how graph databases like Neo4j and Neptune think. Classes, slots and instances are nodes. Structural links (IS_A, HAS_SLOT...) and relationship values ((wine)-[:MAKER]->(winery)) are edges. `okb export` writes the data the way a graph database expects it: instances as nodes labeled with their classes. It's still just the storage format, so model the meaning first (see principle.knowledge-level).",
1439
+ "example": "{\"type\": \"Class\", \"id\": \"c.red-wine\", \"name\": \"RedWine\"} and {\"from\": \"c.red-wine\", \"type\": \"IS_A\", \"to\": \"c.wine\"}",
1440
+ "inThisToolkit": "nodes.json and edges.json in your ontology folder. See docs/FORMAT.md.",
1441
+ "origin": "operational"
1442
+ },
1443
+ {
1444
+ "type": "Concept",
1445
+ "id": "concept.edge-property",
1446
+ "name": "Edge property (relationship property)",
1447
+ "aliases": [
1448
+ "relationship property",
1449
+ "link property",
1450
+ "qualifier"
1451
+ ],
1452
+ "definition": "A property stored on one relationship edge rather than on either end: a fact about the link itself, such as the condition under which one component is preferred over another. Declared once per relationship (name, value type, allowed values, required) and checked like a slot facet. An edge may also carry a `rule` reference to the Rule node whose quote justifies it.",
1453
+ "plainLanguage": "Some facts belong to the connection, not to either thing it connects. 'Use Radio instead of Segmented Control *when there are 2 to 7 options*': the condition isn't a property of Radio or of Segmented Control, it's a property of that recommendation.",
1454
+ "example": "(Radio)-[:PREFERRED_OVER {condition: \"2 to 7 options\", rule: \"rule.use-radio-for-2-7-options\"}]->(SegmentedControl)",
1455
+ "inThisToolkit": "`okb relationship property preferredOver condition --type String --required`, then `okb link Radio preferredOver SegmentedControl condition=\"2 to 7 options\" --rule <rule id>`. The frame model in Ontology 101 has no equivalent; see decision.edge-or-class for when a qualifier should become its own class instead.",
1456
+ "origin": "operational"
1457
+ },
1458
+ {
1459
+ "type": "Concept",
1460
+ "id": "concept.modality",
1461
+ "name": "Modality (MUST / SHOULD / MAY)",
1462
+ "definition": "How strong a rule is. The toolkit takes each rule's modality from the wording of the passage it cites: 'must', 'should always', 'it is wrong' → MUST; 'should', or a plain imperative guideline → SHOULD; 'consider', 'may', 'can', 'there may be' → MAY.",
1463
+ "plainLanguage": "MUST findings are errors to fix. SHOULD findings are warnings: fix them or record why not. MAY findings are hints worth a look.",
1464
+ "example": "'Slots with value type Instance must also define a list of allowed classes' → MUST. 'If a class has only one direct subclass there may be a modeling problem' → MAY.",
1465
+ "inThisToolkit": "Rule.modality in the meta-KB; `okb validate` maps MUST→error, SHOULD→warning, MAY→info unless a rule states a documented override.",
1466
+ "origin": "operational"
1467
+ },
1468
+ {
1469
+ "type": "Concept",
1470
+ "id": "concept.prescriptive-vs-descriptive",
1471
+ "name": "Prescriptive vs descriptive statements (Rule vs fact)",
1472
+ "aliases": [
1473
+ "requirement vs behavior",
1474
+ "rule vs behavior"
1475
+ ],
1476
+ "definition": "A prescriptive statement says what any implementation must, should or may do; it is a Rule, with a modality. A descriptive statement says what one implementation does; it is an ordinary Instance of a domain class (for example a Behavior), with no modality. A descriptive fact can meet a prescriptive rule, and the FULFILLS edge records that.",
1477
+ "plainLanguage": "'Interactive components MUST support keyboard navigation' tells you what is required, of everything. 'Button handles Enter and Space' tells you what one component does. Keep them apart: the first is a Rule, the second is a fact about Button. Then you can ask which facts meet which rules.",
1478
+ "example": "(Rule: Interactive components MUST support keyboard navigation) <-[:FULFILLS]- (Behavior: Button activates on Enter and Space)",
1479
+ "inThisToolkit": "Rules: `okb rule add`. Descriptive facts: `okb instance add --of <your Behavior class>`. Link them with `okb fulfills <instance> <rule>`.",
1480
+ "origin": "operational"
1481
+ },
1482
+ {
1483
+ "type": "Concept",
1484
+ "id": "concept.rule-qualifier",
1485
+ "name": "Qualifier values on a Rule",
1486
+ "aliases": [
1487
+ "rule qualifier",
1488
+ "rule condition"
1489
+ ],
1490
+ "definition": "Slot values stored on a Rule (`Rule.values{slotId: value}`) that say when or for whom it applies, such as the state of the governed node (condition) or the input device (inputModality). The slots are defined by the ontology and declared to apply to Rules (`appliesToRules`), so every rule can carry them and nothing else can; no class is involved. Values are validated like instance slot values (allowed values, cardinality). Rules have no inheritance: each rule states its own values, and a refining rule does not inherit its broader rule's.",
1491
+ "plainLanguage": "A rule often holds only in some situations: 'while the component is open', 'for keyboard users'. Store that as values on the rule, using slots you define, so you can filter rules by situation. The same slots can sit on descriptive facts, so a rule and the fact that fulfills it can be compared on the same terms.",
1492
+ "example": "Rule 'Menus close on Escape' with condition = open and inputModality = keyboard.",
1493
+ "inThisToolkit": "`okb slot add condition --on-rules --type Enumerated --values open,disabled` (add `--on Behavior` as well to share the slot with a descriptive class), then `okb rule add ... --value condition=open`. Checked by slot-values-respect-facets; exported as properties of the OkbRule node.",
1494
+ "origin": "operational"
1495
+ },
1496
+ {
1497
+ "type": "Concept",
1498
+ "id": "concept.rule-refines",
1499
+ "name": "Refines (Rule to Rule)",
1500
+ "aliases": [
1501
+ "REFINES",
1502
+ "narrows"
1503
+ ],
1504
+ "definition": "An edge from a rule to a broader rule that it narrows by adding a part, condition, key or case. Stored in one direction (specific → broad). The optional `adds` property names what the narrower rule adds, so a verifier can check that the detail appears in its quote. Refinement cannot loop.",
1505
+ "plainLanguage": "A broad rule ('interactive components support keyboard navigation') can have component rules that say how, for one component ('Menu moves focus with the arrow keys'). The component rule REFINES the broad one. It is not a subclass: it adds a requirement to the broad rule's setting.",
1506
+ "example": "(Menu rule)-[:REFINES {adds: \"arrow keys move focus\"}]->(keyboard navigation rule)",
1507
+ "inThisToolkit": "`okb rule refines <rule> <broader> --adds \"...\"` or `okb rule add ... --refines <broader> --adds \"...\"`.",
1508
+ "origin": "operational"
1509
+ },
1510
+ {
1511
+ "type": "Concept",
1512
+ "id": "concept.rule-fulfills",
1513
+ "name": "Fulfills (fact to Rule)",
1514
+ "aliases": [
1515
+ "FULFILLS",
1516
+ "meets",
1517
+ "satisfies"
1518
+ ],
1519
+ "definition": "An edge from a descriptive fact (an Instance, such as a Behavior) to the Rule it meets. Many facts may fulfill one rule, because there is often more than one way to meet it. Read backwards it is 'is fulfilled by', not 'requires'. Stored in one direction.",
1520
+ "plainLanguage": "A rule says what's needed; a fact says what one implementation does. FULFILLS connects the two, so you can ask 'how does Button meet the keyboard rule?' or 'which rules does nothing fulfill yet?'.",
1521
+ "example": "(Button activates on Enter and Space)-[:FULFILLS]->(Interactive components support keyboard navigation)",
1522
+ "inThisToolkit": "`okb fulfills <instance> <rule>`.",
1523
+ "origin": "operational"
1524
+ },
1525
+ {
1526
+ "type": "Concept",
1527
+ "id": "concept.authored-rule",
1528
+ "name": "Authored rule",
1529
+ "aliases": [
1530
+ "owner-written rule"
1531
+ ],
1532
+ "definition": "A Rule written by the ontology's owner rather than extracted from a document (`authored: true`, `extracted: false`). Every rule needs provenance, authored or extracted: an authored rule cites its sentence in an owner-written file registered as a Source, and goes through the same verification.",
1533
+ "plainLanguage": "Sometimes the owner knows a principle the documentation never states in one place. Write it down in a file, register the file as a Source, and cite the sentence. It then has the same quote and check trail as any other rule. Being authored is a label, not an exemption.",
1534
+ "example": "'Interactive components MUST support keyboard navigation in their operable conditions' cited from principles.md.",
1535
+ "inThisToolkit": "`okb rule add --authored --cites <quote id> ...`. Shown in `okb rule list` and `okb show`; exported as `authored` on the OkbRule node. prov-cites-quote and prov-verified apply to it unchanged.",
1536
+ "origin": "operational"
1537
+ },
1538
+ {
1539
+ "type": "Rule",
1540
+ "id": "rule.hier-is-a-means-kind-of",
1541
+ "key": "hier-is-a-means-kind-of",
1542
+ "modality": "MUST",
1543
+ "basis": "direct",
1544
+ "check": "judgment",
1545
+ "severity": "error",
1546
+ "fromStep": 4,
1547
+ "statement": "An IS_A link from B to A must mean that every instance of B is necessarily an instance of A.",
1548
+ "plainLanguage": "Only use 'is a' for 'is a kind of'. 'Is part of', 'is made by', 'is related to' and 'is usually' are not is-a.",
1549
+ "review": "For each IS_A edge, say out loud: 'Every <child> is, by definition, a <parent>.' If you hesitate, or the honest word is 'part of' / 'has' / 'usually', it is not an is-a.",
1550
+ "fix": "Replace the IS_A with a slot (e.g. partOf, madeBy) or move the class under its real parent."
1551
+ },
1552
+ {
1553
+ "type": "Rationale",
1554
+ "id": "rat.hier-is-a-means-kind-of",
1555
+ "explanation": "This is the definition of the subclass relation; everything else (inheritance, disjointness, transitivity) depends on it holding."
1556
+ },
1557
+ {
1558
+ "type": "Rule",
1559
+ "id": "rule.hier-no-cycles",
1560
+ "key": "hier-no-cycles",
1561
+ "modality": "SHOULD_NOT",
1562
+ "basis": "direct",
1563
+ "check": "mechanical",
1564
+ "severity": "error",
1565
+ "severityReason": "The source says cycles 'should' be avoided because a cycle declares the classes equivalent. The checker can't tell an intended equivalence from a mistake, and okb has no equivalence construct, so a cycle is treated as an error: merge the classes and keep the other name as a synonym.",
1566
+ "fromStep": 4,
1567
+ "statement": "The class hierarchy should not contain cycles (A is a subclass of B and B is, directly or indirectly, a subclass of A).",
1568
+ "plainLanguage": "A class can't be its own ancestor. If A is a kind of B and B is a kind of A, they're the same class.",
1569
+ "fix": "If they're the same concept, merge them (keep one name, add the other as a synonym). If not, remove the IS_A edge that's wrong."
1570
+ },
1571
+ {
1572
+ "type": "Rationale",
1573
+ "id": "rat.hier-no-cycles",
1574
+ "explanation": "A cycle amounts to declaring the classes equivalent: all instances of A are instances of B and vice versa."
1575
+ },
1576
+ {
1577
+ "type": "Rule",
1578
+ "id": "rule.hier-no-singular-plural-pair",
1579
+ "key": "hier-no-singular-plural-pair",
1580
+ "modality": "MUST_NOT",
1581
+ "basis": "direct",
1582
+ "check": "heuristic",
1583
+ "severity": "error",
1584
+ "fromStep": 4,
1585
+ "statement": "The hierarchy must not make the singular and plural versions of the same concept subclasses of one another (such as Wine as a subclass of Wines).",
1586
+ "plainLanguage": "'Wine' is not a kind of 'Wines'. Pick singular or plural for every class name and use only that form.",
1587
+ "fix": "Delete one of the two classes and move its children and instances to the other."
1588
+ },
1589
+ {
1590
+ "type": "Rationale",
1591
+ "id": "rat.hier-no-singular-plural-pair",
1592
+ "explanation": "The source calls this a common modeling mistake and says it is wrong: a single Wine is not a kind of Wines. okb reports a singular/plural pair that is NOT linked as a warning only: that's the naming-consistency concern, not this rule's."
1593
+ },
1594
+ {
1595
+ "type": "Rule",
1596
+ "id": "rule.hier-no-synonym-classes",
1597
+ "key": "hier-no-synonym-classes",
1598
+ "modality": "MUST_NOT",
1599
+ "basis": "direct",
1600
+ "check": "heuristic",
1601
+ "severity": "error",
1602
+ "fromStep": 4,
1603
+ "statement": "Synonyms for the same concept must not be represented as different classes.",
1604
+ "plainLanguage": "Shrimp and Prawn are one class with two names, not two classes.",
1605
+ "review": "Scan class names for pairs a domain expert would call 'the same thing'.",
1606
+ "fix": "Merge the classes: keep one, add the other name to its synonyms, and move edges over."
1607
+ },
1608
+ {
1609
+ "type": "Rationale",
1610
+ "id": "rat.hier-no-synonym-classes",
1611
+ "explanation": "Classes represent concepts, not the words for them; the source states this rule 'should always be followed'. okb catches a class whose name matches another class's name or listed synonym; true synonyms with unrelated spellings need a human eye."
1612
+ },
1613
+ {
1614
+ "type": "Rule",
1615
+ "id": "rule.hier-siblings-same-generality",
1616
+ "key": "hier-siblings-same-generality",
1617
+ "modality": "MUST",
1618
+ "basis": "direct",
1619
+ "check": "judgment",
1620
+ "severity": "error",
1621
+ "fromStep": 4,
1622
+ "statement": "All siblings in the hierarchy, except those at the root, must be at the same level of generality.",
1623
+ "plainLanguage": "Classes that share a parent should be about equally specific, like chapter headings in the same book. White Wine and Chardonnay shouldn't both sit directly under Wine.",
1624
+ "review": "For each parent with 2+ children, ask: 'Is any of these a kind of another one?' and 'Would an expert put these on the same level?'",
1625
+ "fix": "Move the more specific class under the more general sibling."
1626
+ },
1627
+ {
1628
+ "type": "Rationale",
1629
+ "id": "rat.hier-siblings-same-generality",
1630
+ "explanation": "Siblings at mismatched generality mean the hierarchy has skipped a level; the more specific one usually belongs under the more general one."
1631
+ },
1632
+ {
1633
+ "type": "Rule",
1634
+ "id": "rule.hier-no-redundant-isa",
1635
+ "key": "hier-no-redundant-isa",
1636
+ "modality": "SHOULD_NOT",
1637
+ "basis": "interpretive",
1638
+ "check": "mechanical",
1639
+ "severity": "warning",
1640
+ "fromStep": 4,
1641
+ "statement": "A class should not have a direct IS_A edge to an ancestor it already reaches through another parent.",
1642
+ "plainLanguage": "If Chardonnay is a White Wine, and White Wine is a Wine, don't also link Chardonnay directly to Wine. That link is already implied.",
1643
+ "fix": "Remove the direct edge to the higher ancestor."
1644
+ },
1645
+ {
1646
+ "type": "Rationale",
1647
+ "id": "rat.hier-no-redundant-isa",
1648
+ "explanation": "Subclassing is transitive, so the shortcut edge adds nothing. It also makes the class a sibling of its own parent, which is exactly the mismatched-generality mistake the source's White Wine / Chardonnay example warns about."
1649
+ },
1650
+ {
1651
+ "type": "Rule",
1652
+ "id": "rule.hier-single-child",
1653
+ "key": "hier-single-child",
1654
+ "modality": "MAY",
1655
+ "basis": "direct",
1656
+ "check": "mechanical",
1657
+ "severity": "info",
1658
+ "fromStep": 4,
1659
+ "statement": "A class with only one direct subclass may indicate a modeling problem or an incomplete ontology.",
1660
+ "plainLanguage": "A parent with one child is like a bulleted list with one bullet. Either a sibling is missing, or the child isn't really different from the parent.",
1661
+ "review": "Is something missing next to the only child? If not, is the child really different from its parent?",
1662
+ "fix": "Add the missing sibling(s), or remove the child and fold it into the parent. If neither applies, record a design decision."
1663
+ },
1664
+ {
1665
+ "type": "Rationale",
1666
+ "id": "rat.hier-single-child",
1667
+ "explanation": "If the only subclass is effectively equivalent to its parent, it adds no information; if it isn't, its siblings are probably missing."
1668
+ },
1669
+ {
1670
+ "type": "Rule",
1671
+ "id": "rule.hier-too-many-children",
1672
+ "key": "hier-too-many-children",
1673
+ "modality": "MAY",
1674
+ "basis": "direct",
1675
+ "check": "mechanical",
1676
+ "severity": "info",
1677
+ "fromStep": 4,
1678
+ "statement": "A class with more than a dozen direct subclasses may need additional intermediate categories.",
1679
+ "plainLanguage": "A long flat list of children usually hides natural groups. Look for them, but don't invent groups that don't exist in the domain.",
1680
+ "review": "Do domain experts group these children somehow (by color, region, size...)? If yes, add those groups as intermediate classes.",
1681
+ "fix": "Add intermediate classes for natural groupings, or record a design decision that none exist."
1682
+ },
1683
+ {
1684
+ "type": "Rationale",
1685
+ "id": "rat.hier-too-many-children",
1686
+ "explanation": "Many well-structured ontologies have between two and a dozen direct subclasses; but if no natural grouping exists, the source says to leave the list as it is."
1687
+ },
1688
+ {
1689
+ "type": "Rule",
1690
+ "id": "rule.hier-subclass-adds-something",
1691
+ "key": "hier-subclass-adds-something",
1692
+ "modality": "SHOULD",
1693
+ "basis": "direct",
1694
+ "check": "heuristic",
1695
+ "severity": "warning",
1696
+ "fromStep": 6,
1697
+ "statement": "Each subclass should add something its superclass doesn't have: new slots, new slot values, overridden facets, or different relationships. Classes in terminological hierarchies, and distinctions experts commonly make, are exceptions.",
1698
+ "plainLanguage": "If you can't say anything about the subclass that isn't also true of its parent, it may not need to exist.",
1699
+ "review": "What can you say about this class that you can't say about its parent? If the answer is 'experts always distinguish these', mark it terminological or record that decision.",
1700
+ "fix": "Add the slot, value, restriction or relationship that makes it different; or mark it `terminological`; or merge it into its parent."
1701
+ },
1702
+ {
1703
+ "type": "Rationale",
1704
+ "id": "rat.hier-subclass-adds-something",
1705
+ "explanation": "The source says we introduce a new class 'usually only when there is something that we can say about this class that we cannot say about the superclass'. okb looks for own slots, fixed values, defaults, facet overrides, being the range or value of some slot, and disjointness declarations. It skips classes marked terminological or covered by a design decision."
1706
+ },
1707
+ {
1708
+ "type": "Rule",
1709
+ "id": "rule.hier-no-subclass-per-restriction",
1710
+ "key": "hier-no-subclass-per-restriction",
1711
+ "modality": "SHOULD_NOT",
1712
+ "basis": "direct",
1713
+ "check": "judgment",
1714
+ "severity": "warning",
1715
+ "fromStep": 4,
1716
+ "statement": "Do not create a subclass for each additional restriction; strike a balance between useful organization and too many classes.",
1717
+ "plainLanguage": "Red, white and rosé are natural classes of wine. 'Delicate Wine', 'Moderate Wine' and 'Strong Wine' are just flavor values.",
1718
+ "review": "For each class created mainly to hold one value of one slot, ask whether it's really just that slot's value.",
1719
+ "fix": "Replace the class with a slot value on the parent."
1720
+ },
1721
+ {
1722
+ "type": "Rationale",
1723
+ "id": "rat.hier-no-subclass-per-restriction",
1724
+ "explanation": "A hierarchy with a class per restriction becomes deeply nested and hard to navigate."
1725
+ },
1726
+ {
1727
+ "type": "Rule",
1728
+ "id": "rule.hier-class-or-value",
1729
+ "key": "hier-class-or-value",
1730
+ "modality": "SHOULD",
1731
+ "basis": "direct",
1732
+ "check": "judgment",
1733
+ "severity": "warning",
1734
+ "fromStep": 4,
1735
+ "statement": "Create a new class for a distinction if objects with different values are thought of as different kinds of things, or if the distinction restricts slots in other classes; otherwise represent it as a slot value.",
1736
+ "plainLanguage": "In a wine-pairing ontology, red vs. white wine is a class split because it changes which foods go with the wine. In an ontology for a wine-label factory, the same color distinction is just a value.",
1737
+ "review": "Use decision guide decision.class-or-value on each suspicious class/value.",
1738
+ "fix": "Convert between class and slot value as the decision guide suggests, and record the decision."
1739
+ },
1740
+ {
1741
+ "type": "Rationale",
1742
+ "id": "rat.hier-class-or-value",
1743
+ "explanation": "The decision depends on the scope: the same distinction can be a class in one ontology and a value in another."
1744
+ },
1745
+ {
1746
+ "type": "Rule",
1747
+ "id": "rule.hier-stable-membership",
1748
+ "key": "hier-stable-membership",
1749
+ "modality": "SHOULD",
1750
+ "basis": "direct",
1751
+ "check": "judgment",
1752
+ "severity": "warning",
1753
+ "fromStep": 4,
1754
+ "statement": "The class an individual belongs to should not change often; avoid classes defined by extrinsic properties that instances move in and out of.",
1755
+ "plainLanguage": "'Chilled Wine' is a bad class: the same bottle would keep switching classes. Use a slot ('chilled: true/false').",
1756
+ "review": "Could a given instance leave this class and come back tomorrow?",
1757
+ "fix": "Turn the class into a Boolean or Enumerated slot on the parent."
1758
+ },
1759
+ {
1760
+ "type": "Rationale",
1761
+ "id": "rat.hier-stable-membership",
1762
+ "explanation": "Classes built on extrinsic properties force instances to migrate between classes."
1763
+ },
1764
+ {
1765
+ "type": "Rule",
1766
+ "id": "rule.inst-are-leaves",
1767
+ "key": "inst-are-leaves",
1768
+ "modality": "MUST_NOT",
1769
+ "basis": "interpretive",
1770
+ "check": "mechanical",
1771
+ "severity": "error",
1772
+ "fromStep": 4,
1773
+ "statement": "Instances must not be arranged in a hierarchy: only classes can have subclasses or instances.",
1774
+ "plainLanguage": "Nothing can be a 'kind of' one particular thing. If you need children, make it a class.",
1775
+ "fix": "Turn the instance into a class, or link it with a slot instead of IS_A/INSTANCE_OF."
1776
+ },
1777
+ {
1778
+ "type": "Rationale",
1779
+ "id": "rat.inst-are-leaves",
1780
+ "explanation": "Individual instances are the most specific concepts in a knowledge base; there is no notion of a sub-instance. That nothing can be an instance of an instance follows from the same point: only classes have members."
1781
+ },
1782
+ {
1783
+ "type": "Rule",
1784
+ "id": "rule.inst-natural-hierarchy-as-classes",
1785
+ "key": "inst-natural-hierarchy-as-classes",
1786
+ "modality": "SHOULD",
1787
+ "basis": "direct",
1788
+ "check": "judgment",
1789
+ "severity": "warning",
1790
+ "fromStep": 4,
1791
+ "statement": "If concepts form a natural hierarchy, represent them as classes, even if some have no instances of their own.",
1792
+ "plainLanguage": "Wine regions nest (France → Bourgogne → Côtes d'Or), so they are all classes, not a mix of classes and instances.",
1793
+ "review": "Are any instances 'inside' other instances in the domain (regions, org units, categories)?",
1794
+ "fix": "Make them classes (often abstract)."
1795
+ },
1796
+ {
1797
+ "type": "Rationale",
1798
+ "id": "rat.inst-natural-hierarchy-as-classes",
1799
+ "explanation": "Only classes can be arranged in a hierarchy, and the source finds the class/instance line arbitrary when concepts nest."
1800
+ },
1801
+ {
1802
+ "type": "Rule",
1803
+ "id": "rule.inst-granularity",
1804
+ "key": "inst-granularity",
1805
+ "modality": "SHOULD",
1806
+ "basis": "interpretive",
1807
+ "check": "judgment",
1808
+ "severity": "warning",
1809
+ "fromStep": 7,
1810
+ "statement": "Choose the level at which classes end and instances begin from the application: the most specific things that answer your competency questions are good candidates for instances.",
1811
+ "plainLanguage": "For wine pairing, 'Sterling Vineyards Merlot' is an instance. For a cellar inventory, each bottle might be.",
1812
+ "review": "What are the most specific things that appear in answers to your competency questions? Those should be instances.",
1813
+ "fix": "Move the class/instance boundary up or down and record the decision."
1814
+ },
1815
+ {
1816
+ "type": "Rationale",
1817
+ "id": "rat.inst-granularity",
1818
+ "explanation": "The source says the lowest level of granularity 'is in turn determined by a potential application', and calls the answers to competency questions 'very good candidates' for individuals. Those are descriptive; turning them into a SHOULD is the toolkit's reading."
1819
+ },
1820
+ {
1821
+ "type": "Rule",
1822
+ "id": "rule.inst-not-of-abstract",
1823
+ "key": "inst-not-of-abstract",
1824
+ "modality": "MUST_NOT",
1825
+ "basis": "direct",
1826
+ "check": "mechanical",
1827
+ "severity": "error",
1828
+ "fromStep": 7,
1829
+ "statement": "An abstract class must not have direct instances.",
1830
+ "plainLanguage": "Instances of an abstract class have to belong to one of its subclasses.",
1831
+ "fix": "Point the instance at the right subclass, or remove `abstract` from the class."
1832
+ },
1833
+ {
1834
+ "type": "Rationale",
1835
+ "id": "rat.inst-not-of-abstract",
1836
+ "explanation": "Being abstract means the class cannot have any direct instances."
1837
+ },
1838
+ {
1839
+ "type": "Rule",
1840
+ "id": "rule.slot-attach-most-general",
1841
+ "key": "slot-attach-most-general",
1842
+ "modality": "SHOULD",
1843
+ "basis": "direct",
1844
+ "check": "mechanical",
1845
+ "severity": "warning",
1846
+ "fromStep": 5,
1847
+ "statement": "A slot should be attached at the most general class that can have the property. Don't attach it to a class and its subclass, and if it's on every direct subclass of A, attach it to A instead.",
1848
+ "plainLanguage": "Put a slot as high up the tree as it truly applies, once. Children inherit it.",
1849
+ "fix": "Remove the HAS_SLOT edges on the subclasses and attach the slot to the parent."
1850
+ },
1851
+ {
1852
+ "type": "Rationale",
1853
+ "id": "rat.slot-attach-most-general",
1854
+ "explanation": "Subclasses inherit slots, so attaching to both parent and child is redundant. Listing every child instead of the parent is the same set of classes but harder to maintain. The source states these rules for domain lists."
1855
+ },
1856
+ {
1857
+ "type": "Rule",
1858
+ "id": "rule.slot-domain-fits-all",
1859
+ "key": "slot-domain-fits-all",
1860
+ "modality": "MUST",
1861
+ "basis": "direct",
1862
+ "check": "judgment",
1863
+ "severity": "error",
1864
+ "fromStep": 5,
1865
+ "statement": "Every class a slot is attached to must be able to have the property the slot represents.",
1866
+ "plainLanguage": "Don't push a slot up so high that it lands on classes it doesn't describe. tanninLevel belongs on Red Wine, not Wine, because white wines aren't described by tannin.",
1867
+ "review": "For each slot, check every class it's inherited by. Does each one really have this property?",
1868
+ "fix": "Move the slot down to the most general class for which it is always meaningful."
1869
+ },
1870
+ {
1871
+ "type": "Rationale",
1872
+ "id": "rat.slot-domain-fits-all",
1873
+ "explanation": "Too general a domain lets meaningless values in."
1874
+ },
1875
+ {
1876
+ "type": "Rule",
1877
+ "id": "rule.slot-range-remove-subclass",
1878
+ "key": "slot-range-remove-subclass",
1879
+ "modality": "SHOULD",
1880
+ "basis": "direct",
1881
+ "check": "mechanical",
1882
+ "severity": "warning",
1883
+ "fromStep": 6,
1884
+ "statement": "If a slot's range includes a class and its subclass, remove the subclass.",
1885
+ "plainLanguage": "Range 'Wine, Red Wine' is just 'Wine'. Red Wine is already included.",
1886
+ "fix": "Delete the RANGE edge to the subclass."
1887
+ },
1888
+ {
1889
+ "type": "Rationale",
1890
+ "id": "rat.slot-range-remove-subclass",
1891
+ "explanation": "The subclass adds no information; the range already implicitly includes it."
1892
+ },
1893
+ {
1894
+ "type": "Rule",
1895
+ "id": "rule.slot-range-collapse-subclasses",
1896
+ "key": "slot-range-collapse-subclasses",
1897
+ "modality": "SHOULD",
1898
+ "basis": "direct",
1899
+ "check": "mechanical",
1900
+ "severity": "warning",
1901
+ "fromStep": 6,
1902
+ "statement": "If a slot's range lists all subclasses of a class A but not A itself, the range should contain only A.",
1903
+ "plainLanguage": "Range 'Red Wine, White Wine, Rosé Wine' should just be 'Wine'.",
1904
+ "fix": "Replace the RANGE edges with one edge to A."
1905
+ },
1906
+ {
1907
+ "type": "Rationale",
1908
+ "id": "rat.slot-range-collapse-subclasses",
1909
+ "explanation": "It's the same set of allowed classes, stated once, and it stays correct when a new subclass is added."
1910
+ },
1911
+ {
1912
+ "type": "Rule",
1913
+ "id": "rule.slot-range-all-but-few",
1914
+ "key": "slot-range-all-but-few",
1915
+ "modality": "MAY",
1916
+ "basis": "direct",
1917
+ "check": "heuristic",
1918
+ "severity": "info",
1919
+ "fromStep": 6,
1920
+ "statement": "If a slot's range lists all but a few subclasses of a class A, consider whether A would be a more appropriate range.",
1921
+ "plainLanguage": "Listing nearly every child is often a sign the parent is what you meant.",
1922
+ "fix": "Consider using A as the range; if the excluded subclasses really can't be values, keep the list and record why."
1923
+ },
1924
+ {
1925
+ "type": "Rationale",
1926
+ "id": "rat.slot-range-all-but-few",
1927
+ "explanation": "Stated by the source as something to consider, not a requirement."
1928
+ },
1929
+ {
1930
+ "type": "Rule",
1931
+ "id": "rule.slot-range-not-too-general",
1932
+ "key": "slot-range-not-too-general",
1933
+ "modality": "SHOULD_NOT",
1934
+ "basis": "direct",
1935
+ "check": "heuristic",
1936
+ "severity": "warning",
1937
+ "fromStep": 6,
1938
+ "statement": "A slot's range should not be overly general (such as Thing): instances of every class in the range should be potential values.",
1939
+ "plainLanguage": "'maker: Thing' says nothing. 'maker: Winery' says what fills it.",
1940
+ "fix": "Narrow the range to the most general class that covers all real values."
1941
+ },
1942
+ {
1943
+ "type": "Rationale",
1944
+ "id": "rat.slot-range-not-too-general",
1945
+ "explanation": "An overly general range stops being informative and lets invalid values in. okb flags ranges named Thing/Entity/Object/Item and ranges that are the single root above every class."
1946
+ },
1947
+ {
1948
+ "type": "Rule",
1949
+ "id": "rule.slot-value-type-declared",
1950
+ "key": "slot-value-type-declared",
1951
+ "modality": "MUST",
1952
+ "basis": "operational",
1953
+ "check": "mechanical",
1954
+ "severity": "error",
1955
+ "fromStep": 5,
1956
+ "statement": "Every slot must declare a value type (String, Integer, Float, Number, Boolean, Enumerated or Instance).",
1957
+ "plainLanguage": "okb needs to know what kind of value goes in a field before it can check your data.",
1958
+ "fix": "`okb slot set <slot> --type <Type>`."
1959
+ },
1960
+ {
1961
+ "type": "Rationale",
1962
+ "id": "rat.slot-value-type-declared",
1963
+ "explanation": "The source describes value type as one facet a slot 'can' have; the toolkit requires it so that instance values can be checked mechanically. That makes this a toolkit rule, not the source's."
1964
+ },
1965
+ {
1966
+ "type": "Rule",
1967
+ "id": "rule.slot-instance-needs-range",
1968
+ "key": "slot-instance-needs-range",
1969
+ "modality": "MUST",
1970
+ "basis": "direct",
1971
+ "check": "mechanical",
1972
+ "severity": "error",
1973
+ "fromStep": 6,
1974
+ "statement": "Slots with value type Instance must define a list of allowed classes (a range).",
1975
+ "plainLanguage": "A field that points at other things has to say what kind of things.",
1976
+ "fix": "`okb slot set <slot> --range <Class>`."
1977
+ },
1978
+ {
1979
+ "type": "Rationale",
1980
+ "id": "rat.slot-instance-needs-range",
1981
+ "explanation": "Without a range, any individual could be a value and nothing can be checked."
1982
+ },
1983
+ {
1984
+ "type": "Rule",
1985
+ "id": "rule.slot-enum-needs-values",
1986
+ "key": "slot-enum-needs-values",
1987
+ "modality": "MUST",
1988
+ "basis": "interpretive",
1989
+ "check": "mechanical",
1990
+ "severity": "error",
1991
+ "fromStep": 6,
1992
+ "statement": "Enumerated slots must list their allowed values.",
1993
+ "plainLanguage": "'One of a fixed list' needs the list.",
1994
+ "fix": "`okb slot set <slot> --values a,b,c`."
1995
+ },
1996
+ {
1997
+ "type": "Rationale",
1998
+ "id": "rat.slot-enum-needs-values",
1999
+ "explanation": "The source defines enumerated slots as ones that specify a list of allowed values; an enumerated slot without the list isn't one."
2000
+ },
2001
+ {
2002
+ "type": "Rule",
2003
+ "id": "rule.slot-cardinality-declared",
2004
+ "key": "slot-cardinality-declared",
2005
+ "modality": "SHOULD",
2006
+ "basis": "operational",
2007
+ "check": "mechanical",
2008
+ "severity": "warning",
2009
+ "fromStep": 6,
2010
+ "statement": "Every slot should declare its cardinality (single or multiple).",
2011
+ "plainLanguage": "Decide whether this field holds one value or many. It's easy to forget and hard to fix later.",
2012
+ "fix": "`okb slot set <slot> --card single` (or multiple)."
2013
+ },
2014
+ {
2015
+ "type": "Rationale",
2016
+ "id": "rat.slot-cardinality-declared",
2017
+ "explanation": "The source says slots 'can' have cardinality facets and that some systems only distinguish single from multiple; it never requires every slot to declare one. The toolkit asks for it explicitly (instead of silently defaulting) because single vs. multiple is easy to forget and hard to fix once instances exist. A toolkit rule, not the source's."
2018
+ },
2019
+ {
2020
+ "type": "Rule",
2021
+ "id": "rule.slot-cardinality-coherent",
2022
+ "key": "slot-cardinality-coherent",
2023
+ "modality": "MUST",
2024
+ "basis": "interpretive",
2025
+ "check": "mechanical",
2026
+ "severity": "error",
2027
+ "fromStep": 6,
2028
+ "statement": "Cardinality facets must be coherent: minimum ≤ maximum, neither negative, and single cardinality means a maximum of 1.",
2029
+ "plainLanguage": "'At least 3 and at most 1' can never be satisfied.",
2030
+ "fix": "Fix the numbers with `okb slot set`."
2031
+ },
2032
+ {
2033
+ "type": "Rationale",
2034
+ "id": "rat.slot-cardinality-coherent",
2035
+ "explanation": "Follows from the source's definitions of minimum, maximum and single cardinality."
2036
+ },
2037
+ {
2038
+ "type": "Rule",
2039
+ "id": "rule.slot-values-respect-facets",
2040
+ "key": "slot-values-respect-facets",
2041
+ "modality": "MUST",
2042
+ "basis": "interpretive",
2043
+ "check": "mechanical",
2044
+ "severity": "error",
2045
+ "fromStep": 7,
2046
+ "statement": "Every slot value must satisfy the slot's facets: its value type, allowed values, range, and minimum and maximum cardinality (including overrides on the instance's classes).",
2047
+ "plainLanguage": "The data has to follow the rules you set: body must be light, medium or full; a wine needs at least one grape; a maker has to be a Winery.",
2048
+ "fix": "Correct the value, or loosen the facet if the data shows the rule was wrong (and record why)."
2049
+ },
2050
+ {
2051
+ "type": "Rationale",
2052
+ "id": "rat.slot-values-respect-facets",
2053
+ "explanation": "Only minimum cardinality is worded as a 'must' in the source ('a slot must have at least N values'). The other facets are definitions of what 'can fill in the slot' (value type, allowed values, allowed classes, 'at most M values'), and subclasses may 'override some facets'. The toolkit infers that values outside those definitions are errors, because a facet nothing enforces constrains nothing."
2054
+ },
2055
+ {
2056
+ "type": "Rule",
2057
+ "id": "rule.slot-value-slot-applies",
2058
+ "key": "slot-value-slot-applies",
2059
+ "modality": "MUST",
2060
+ "basis": "interpretive",
2061
+ "check": "mechanical",
2062
+ "severity": "error",
2063
+ "fromStep": 7,
2064
+ "statement": "An instance (or class) may only have values for slots attached to its class or inherited from an ancestor.",
2065
+ "plainLanguage": "A Winery can't have a tanninLevel: that slot belongs to Red Wine and its subclasses.",
2066
+ "fix": "Attach the slot to the right class, or remove the value."
2067
+ },
2068
+ {
2069
+ "type": "Rationale",
2070
+ "id": "rat.slot-value-slot-applies",
2071
+ "explanation": "The source attaches each property to the class it describes, and subclasses inherit it. Treating any other value as an error is the toolkit's closed-world reading of that: the source doesn't say values for unattached slots are forbidden, but a value no class declares can't be checked or queried reliably."
2072
+ },
2073
+ {
2074
+ "type": "Rule",
2075
+ "id": "rule.slot-default-allowed",
2076
+ "key": "slot-default-allowed",
2077
+ "modality": "MUST",
2078
+ "basis": "interpretive",
2079
+ "check": "mechanical",
2080
+ "severity": "error",
2081
+ "fromStep": 6,
2082
+ "statement": "A default value must be a value the slot's facets allow.",
2083
+ "plainLanguage": "The default for body can't be 'sparkly' if the allowed values are light, medium and full.",
2084
+ "fix": "Change the default or the allowed values."
2085
+ },
2086
+ {
2087
+ "type": "Rationale",
2088
+ "id": "rat.slot-default-allowed",
2089
+ "explanation": "Defaults can be changed to 'any other value that the facets will allow', so the default must itself be one of them."
2090
+ },
2091
+ {
2092
+ "type": "Rule",
2093
+ "id": "rule.slot-fixed-not-overridden",
2094
+ "key": "slot-fixed-not-overridden",
2095
+ "modality": "MUST_NOT",
2096
+ "basis": "direct",
2097
+ "check": "mechanical",
2098
+ "severity": "error",
2099
+ "fromStep": 6,
2100
+ "statement": "A fixed slot value set on a class must not be changed by any of its subclasses or instances.",
2101
+ "plainLanguage": "If every Dessert Wine is sweet, no dessert wine may say sugar=dry.",
2102
+ "fix": "Remove the conflicting value, or turn the fixed value into a default if it really can vary."
2103
+ },
2104
+ {
2105
+ "type": "Rationale",
2106
+ "id": "rat.slot-fixed-not-overridden",
2107
+ "explanation": "Unlike defaults, class-level slot values cannot be changed in subclasses or instances."
2108
+ },
2109
+ {
2110
+ "type": "Rule",
2111
+ "id": "rule.slot-inverse-consistent",
2112
+ "key": "slot-inverse-consistent",
2113
+ "modality": "SHOULD",
2114
+ "basis": "interpretive",
2115
+ "check": "heuristic",
2116
+ "severity": "warning",
2117
+ "fromStep": 6,
2118
+ "statement": "Inverse slots should mirror each other: the range of one should match the domain of the other.",
2119
+ "plainLanguage": "If maker goes Wine → Winery, produces should go Winery → Wine.",
2120
+ "fix": "Adjust the range or domain of one slot so they match (`okb slot set <slot> --range ...` / `--on ...`)."
2121
+ },
2122
+ {
2123
+ "type": "Rationale",
2124
+ "id": "rat.slot-inverse-consistent",
2125
+ "explanation": "Inverse slots describe one relation from both ends (maker on Wine, produces on Winery). That the range of one should line up with the domain of the other is the toolkit's inference from 'one relation, two ends'; the source doesn't state it. Values can't disagree in okb, because each fact is stored as a single edge that both slots read."
2126
+ },
2127
+ {
2128
+ "type": "Rule",
2129
+ "id": "rule.slot-edge-properties",
2130
+ "key": "slot-edge-properties",
2131
+ "modality": "MUST",
2132
+ "basis": "operational",
2133
+ "check": "mechanical",
2134
+ "severity": "error",
2135
+ "fromStep": 6,
2136
+ "statement": "Properties on relationship edges must be declared on the relationship and must match their declared type, allowed values and required-ness; an edge's `rule` must point at a Rule node.",
2137
+ "plainLanguage": "If PREFERRED_OVER edges carry a condition, declare `condition` once, and every edge's condition gets checked like any other value.",
2138
+ "fix": "`okb relationship property <rel> <name> --type ...` to declare; `okb link <from> <rel> <to> name=value` to set."
2139
+ },
2140
+ {
2141
+ "type": "Rationale",
2142
+ "id": "rat.slot-edge-properties",
2143
+ "explanation": "Ontology 101's frame model has no properties on relationships (a qualified relation would be reified as its own class). Labeled property graphs support them natively, so the toolkit allows them and gives them facets, so they get the same checking as slots. A toolkit rule, not the source's. Undeclared properties are reported as warnings (usually a hand edit or a typo); wrong types, missing required values and broken rule references are errors."
2144
+ },
2145
+ {
2146
+ "type": "Rule",
2147
+ "id": "rule.disjoint-no-shared-members",
2148
+ "key": "disjoint-no-shared-members",
2149
+ "modality": "MUST_NOT",
2150
+ "basis": "direct",
2151
+ "check": "mechanical",
2152
+ "severity": "error",
2153
+ "fromStep": 4,
2154
+ "statement": "No class or instance may fall under two classes declared disjoint, and a class must not be declared disjoint with its own ancestor.",
2155
+ "plainLanguage": "If Red Wine and White Wine are disjoint, nothing can be under both, directly or through its parents.",
2156
+ "fix": "Move the class/instance under the right parent, or remove the disjointness if it was wrong."
2157
+ },
2158
+ {
2159
+ "type": "Rationale",
2160
+ "id": "rat.disjoint-no-shared-members",
2161
+ "explanation": "Disjoint classes cannot have any instances in common, and declaring disjointness lets the system report exactly this modeling error (the Riesling/Port example). The ancestor case is the toolkit's inference: a class disjoint with its own ancestor could never have members, which is consistent but almost certainly a mistake."
2162
+ },
2163
+ {
2164
+ "type": "Rule",
2165
+ "id": "rule.disjoint-consider-siblings",
2166
+ "key": "disjoint-consider-siblings",
2167
+ "modality": "MAY",
2168
+ "basis": "direct",
2169
+ "check": "mechanical",
2170
+ "severity": "info",
2171
+ "fromStep": 4,
2172
+ "statement": "Consider declaring sibling classes disjoint when nothing can belong to more than one of them.",
2173
+ "plainLanguage": "Can anything be both a Red Wine and a White Wine? No? Say so, and okb will catch mistakes for you.",
2174
+ "fix": "`okb class disjoint A B C`, or ignore it if the siblings can overlap (Dessert Wine and White Wine can)."
2175
+ },
2176
+ {
2177
+ "type": "Rationale",
2178
+ "id": "rat.disjoint-consider-siblings",
2179
+ "explanation": "Specifying disjointness enables the system to validate the ontology better."
2180
+ },
2181
+ {
2182
+ "type": "Rule",
2183
+ "id": "rule.naming-convention-defined",
2184
+ "key": "naming-convention-defined",
2185
+ "modality": "MUST",
2186
+ "basis": "direct",
2187
+ "check": "mechanical",
2188
+ "severity": "error",
2189
+ "fromStep": 4,
2190
+ "statement": "Define a naming convention for classes and slots (capitalization, delimiters, singular/plural, prefixes) before creating many names.",
2191
+ "plainLanguage": "Pick how names look. okb starts you on its defaults so you can keep moving, but you need to confirm them (or choose your own) with `okb convention`.",
2192
+ "fix": "`okb convention` (the defaults are PascalCase singular classes, camelCase slots)."
2193
+ },
2194
+ {
2195
+ "type": "Rationale",
2196
+ "id": "rat.naming-convention-defined",
2197
+ "explanation": "The source says 'we need to' define one; strictly adhering to it makes the ontology easier to understand and avoids common mistakes."
2198
+ },
2199
+ {
2200
+ "type": "Rule",
2201
+ "id": "rule.naming-follow-convention",
2202
+ "key": "naming-follow-convention",
2203
+ "modality": "MUST",
2204
+ "basis": "direct",
2205
+ "check": "mechanical",
2206
+ "severity": "error",
2207
+ "fromStep": 4,
2208
+ "statement": "Class and slot names must follow the declared naming convention.",
2209
+ "plainLanguage": "Once you've chosen a style, every name uses it.",
2210
+ "fix": "`okb rename <old> <new>`."
2211
+ },
2212
+ {
2213
+ "type": "Rationale",
2214
+ "id": "rat.naming-follow-convention",
2215
+ "explanation": "A convention only helps if it is adhered to; the source says to define one 'and adhere to it'."
2216
+ },
2217
+ {
2218
+ "type": "Rule",
2219
+ "id": "rule.naming-singular-plural-consistent",
2220
+ "key": "naming-singular-plural-consistent",
2221
+ "modality": "SHOULD",
2222
+ "basis": "direct",
2223
+ "check": "heuristic",
2224
+ "severity": "warning",
2225
+ "fromStep": 4,
2226
+ "statement": "Class names should consistently be singular or consistently plural, as declared in the convention.",
2227
+ "plainLanguage": "All classes singular (Wine, Winery) or all plural (Wines, Wineries). Don't mix.",
2228
+ "fix": "`okb rename`, or ignore a false positive (e.g. 'Glass', 'Series')."
2229
+ },
2230
+ {
2231
+ "type": "Rationale",
2232
+ "id": "rat.naming-singular-plural-consistent",
2233
+ "explanation": "Neither is better (singular is more common), but the choice should be consistent throughout, and this also prevents the Wine/Wines mistake. okb guesses plurals from English endings, so check its suggestions."
2234
+ },
2235
+ {
2236
+ "type": "Rule",
2237
+ "id": "rule.naming-no-type-words",
2238
+ "key": "naming-no-type-words",
2239
+ "modality": "SHOULD_NOT",
2240
+ "basis": "direct",
2241
+ "check": "mechanical",
2242
+ "severity": "warning",
2243
+ "fromStep": 4,
2244
+ "statement": "Do not add strings such as 'class', 'property' or 'slot' to concept names.",
2245
+ "plainLanguage": "Call it Wine, not WineClass; maker, not makerProperty.",
2246
+ "fix": "`okb rename`."
2247
+ },
2248
+ {
2249
+ "type": "Rationale",
2250
+ "id": "rat.naming-no-type-words",
2251
+ "explanation": "Context and the naming convention already show whether a name is a class or a slot. The source lists this among naming things 'to consider', hence SHOULD NOT rather than MUST NOT."
2252
+ },
2253
+ {
2254
+ "type": "Rule",
2255
+ "id": "rule.naming-no-abbreviations",
2256
+ "key": "naming-no-abbreviations",
2257
+ "modality": "SHOULD_NOT",
2258
+ "basis": "direct",
2259
+ "check": "heuristic",
2260
+ "severity": "info",
2261
+ "severityReason": "Abbreviation detection is a guess; downgraded to info to avoid noisy warnings.",
2262
+ "fromStep": 4,
2263
+ "statement": "Avoid abbreviations in concept names.",
2264
+ "plainLanguage": "CabernetSauvignon, not Cab.",
2265
+ "fix": "`okb rename`, or add the short form as a synonym."
2266
+ },
2267
+ {
2268
+ "type": "Rationale",
2269
+ "id": "rat.naming-no-abbreviations",
2270
+ "explanation": "Stated as 'usually a good idea'. okb only flags all-caps words and names ending in '.', so it misses most abbreviations; the review skill looks for the rest."
2271
+ },
2272
+ {
2273
+ "type": "Rule",
2274
+ "id": "rule.naming-subclass-names-consistent",
2275
+ "key": "naming-subclass-names-consistent",
2276
+ "modality": "SHOULD",
2277
+ "basis": "direct",
2278
+ "check": "mechanical",
2279
+ "severity": "warning",
2280
+ "fromStep": 4,
2281
+ "statement": "Names of direct subclasses of a class should either all include or all omit the superclass name.",
2282
+ "plainLanguage": "Either put the parent's name in every subclass name or in none. For the subclasses of Wine: RedWine and WhiteWine, or Red and White, but not RedWine and White.",
2283
+ "fix": "`okb rename` the odd one(s) out."
2284
+ },
2285
+ {
2286
+ "type": "Rationale",
2287
+ "id": "rat.naming-subclass-names-consistent",
2288
+ "explanation": "Inconsistent sibling names make the structure harder to read."
2289
+ },
2290
+ {
2291
+ "type": "Rule",
2292
+ "id": "rule.naming-unique",
2293
+ "key": "naming-unique",
2294
+ "modality": "MUST",
2295
+ "basis": "operational",
2296
+ "check": "mechanical",
2297
+ "severity": "error",
2298
+ "fromStep": 3,
2299
+ "statement": "Names must be unique among classes, among slots and among instances (ignoring case and delimiters).",
2300
+ "plainLanguage": "Two classes called RedWine and Red_Wine would be confusing and break lookups.",
2301
+ "fix": "`okb rename` one of them, or merge them if they're the same concept."
2302
+ },
2303
+ {
2304
+ "type": "Rationale",
2305
+ "id": "rat.naming-unique",
2306
+ "explanation": "The source points out that systems differ in whether classes, slots and instances share a name space and whether names are case-sensitive. okb chooses one namespace per node type, case- and delimiter-insensitive, so names stay portable to whichever system you exchange them with."
2307
+ },
2308
+ {
2309
+ "type": "Rule",
2310
+ "id": "rule.scope-defined",
2311
+ "key": "scope-defined",
2312
+ "modality": "SHOULD",
2313
+ "basis": "direct",
2314
+ "check": "mechanical",
2315
+ "severity": "warning",
2316
+ "fromStep": 1,
2317
+ "statement": "Start by defining the domain and scope: the domain covered, what the ontology is for, and who will use and maintain it.",
2318
+ "plainLanguage": "Write down what it's about, what it's for, and who it's for, before you build anything.",
2319
+ "fix": "`okb scope --domain ... --purpose ... --users ...`."
2320
+ },
2321
+ {
2322
+ "type": "Rationale",
2323
+ "id": "rat.scope-defined",
2324
+ "explanation": "The answers may change later, but at any given time they help limit the scope of the model."
2325
+ },
2326
+ {
2327
+ "type": "Rule",
2328
+ "id": "rule.scope-competency-questions",
2329
+ "key": "scope-competency-questions",
2330
+ "modality": "SHOULD",
2331
+ "basis": "operational",
2332
+ "check": "mechanical",
2333
+ "severity": "warning",
2334
+ "fromStep": 1,
2335
+ "statement": "An ontology should have competency questions (the toolkit suggests at least three to start).",
2336
+ "plainLanguage": "Write down a few questions your ontology must be able to answer. You'll use them to decide what to include and to test the result.",
2337
+ "fix": "`okb cq add \"...\"`."
2338
+ },
2339
+ {
2340
+ "type": "Rationale",
2341
+ "id": "rat.scope-competency-questions",
2342
+ "explanation": "The source offers competency questions as 'one of the ways' to scope an ontology and as the later litmus test. The toolkit makes them expected because every later check on scope depends on them. The number three is a toolkit suggestion; the source says the list 'does not need to be exhaustive'."
2343
+ },
2344
+ {
2345
+ "type": "Rule",
2346
+ "id": "rule.scope-cq-coverage",
2347
+ "key": "scope-cq-coverage",
2348
+ "modality": "SHOULD",
2349
+ "basis": "interpretive",
2350
+ "check": "mechanical",
2351
+ "severity": "warning",
2352
+ "fromStep": 8,
2353
+ "statement": "Each competency question should be linked to the classes and slots needed to answer it.",
2354
+ "plainLanguage": "For each question, point at the parts of the ontology that answer it. A question with nothing to point at isn't answerable yet.",
2355
+ "fix": "`okb cq link <cq> <Class|slot>...`, or add what's missing."
2356
+ },
2357
+ {
2358
+ "type": "Rationale",
2359
+ "id": "rat.scope-cq-coverage",
2360
+ "explanation": "Competency questions are the litmus test: does the ontology contain enough information to answer them? NEEDS links make that test explicit and checkable."
2361
+ },
2362
+ {
2363
+ "type": "Rule",
2364
+ "id": "rule.scope-no-unneeded",
2365
+ "key": "scope-no-unneeded",
2366
+ "modality": "SHOULD_NOT",
2367
+ "basis": "direct",
2368
+ "check": "heuristic",
2369
+ "severity": "info",
2370
+ "severityReason": "Whether something is 'needed' depends on how completely questions were linked, so this is a prompt, not a warning.",
2371
+ "fromStep": 8,
2372
+ "statement": "The ontology should not contain all possible information, properties and distinctions: don't specialize or generalize more than the application needs (at most one extra level each way).",
2373
+ "plainLanguage": "If no competency question needs a class or slot (or its parent or child), ask whether it belongs.",
2374
+ "review": "For each flagged element: which question needs it? If none, add the question it serves, or remove it.",
2375
+ "fix": "Link it to (or add) the question that needs it, or remove it."
2376
+ },
2377
+ {
2378
+ "type": "Rationale",
2379
+ "id": "rat.scope-no-unneeded",
2380
+ "explanation": "Extra detail costs maintenance and can actively hurt (the Experimenter example). okb reports classes and slots not reachable within one level from anything a competency question needs. It only does this once questions have been linked."
2381
+ },
2382
+ {
2383
+ "type": "Rule",
2384
+ "id": "rule.scope-cq-families",
2385
+ "key": "scope-cq-families",
2386
+ "modality": "SHOULD",
2387
+ "basis": "interpretive",
2388
+ "check": "judgment",
2389
+ "severity": "warning",
2390
+ "fromStep": 8,
2391
+ "statement": "Treat each competency question as one example of a type of question: once it's answered, check whether the ontology should also answer its family (the same question about similar things, and related questions about the same thing), and record the ones that are out of scope.",
2392
+ "plainLanguage": "If 'Which wines go with grilled meat?' is a question, 'Which wines go with seafood?' probably is too. Answering only the exact questions you wrote down passes the test but misses the point. You don't need to list them all at the start: look at each family once the question it came from is answered.",
2393
+ "review": "For each answered competency question: what's its family (the same question about sibling classes or other instances, and the questions next to it about the same subject)? Would the ontology answer them? Is each one you don't want recorded as out of scope?",
2394
+ "fix": "Add the questions you want (okb cq add, then okb cq link), and record the rest as out of scope (okb scope --out-of-scope) or in a design decision."
2395
+ },
2396
+ {
2397
+ "type": "Rationale",
2398
+ "id": "rat.scope-cq-families",
2399
+ "explanation": "The source calls competency questions 'just a sketch' that 'do not need to be exhaustive', and uses them as a litmus test for 'these types of questions'. So each one stands for a type of question, not a checklist item. Asking about the family once a question is answered, rather than up front, is the toolkit's reading. The source also warns against including everything (scope-no-unneeded), so 'out of scope' is a fine answer, as long as it's recorded."
2400
+ },
2401
+ {
2402
+ "type": "Rule",
2403
+ "id": "rule.doc-descriptions",
2404
+ "key": "doc-descriptions",
2405
+ "modality": "SHOULD",
2406
+ "basis": "interpretive",
2407
+ "check": "mechanical",
2408
+ "severity": "warning",
2409
+ "fromStep": 4,
2410
+ "statement": "Every class and slot should have a human-readable description of what it denotes.",
2411
+ "plainLanguage": "One sentence per class and slot saying what it means. The name alone is ambiguous.",
2412
+ "fix": "`okb class set <Class> --desc \"...\"` / `okb slot set <slot> --desc \"...\"`."
2413
+ },
2414
+ {
2415
+ "type": "Rationale",
2416
+ "id": "rat.doc-descriptions",
2417
+ "explanation": "Gruber describes ontology definitions as associating names with human-readable text as well as formal constraints; the Ontology 101 paper relies on class documentation for synonyms and design decisions. It is framed as what a definition contains, not as a 'must', hence SHOULD."
2418
+ },
2419
+ {
2420
+ "type": "Rule",
2421
+ "id": "rule.doc-record-decisions",
2422
+ "key": "doc-record-decisions",
2423
+ "modality": "SHOULD",
2424
+ "basis": "interpretive",
2425
+ "check": "judgment",
2426
+ "severity": "warning",
2427
+ "fromStep": 4,
2428
+ "statement": "Record design decisions in the documentation, above all deliberate omissions made for your application, and (toolkit extension) other non-obvious modeling choices.",
2429
+ "plainLanguage": "Every time you choose between two reasonable options, write a one-line design decision.",
2430
+ "review": "Look for multiple inheritance, terminological classes, class-vs-value choices, things deliberately left out, and flagged findings you decided to keep. Does each have a DesignDecision?",
2431
+ "fix": "`okb decision add --title ... --decision ... --why ... --about <node>`."
2432
+ },
2433
+ {
2434
+ "type": "Rationale",
2435
+ "id": "rat.doc-record-decisions",
2436
+ "explanation": "The source's instruction is about scope-limiting choices: record that Experimenter was deliberately not made a Biological Organism, so reusers don't assume otherwise. The toolkit extends the same reasoning to any choice a reuser might not expect (multiple inheritance, terminological classes, kept warnings)."
2437
+ },
2438
+ {
2439
+ "type": "Rule",
2440
+ "id": "rule.reuse-considered",
2441
+ "key": "reuse-considered",
2442
+ "modality": "SHOULD",
2443
+ "basis": "direct",
2444
+ "check": "judgment",
2445
+ "severity": "warning",
2446
+ "fromStep": 3,
2447
+ "statement": "Consider reusing existing ontologies or vocabularies before building from scratch.",
2448
+ "plainLanguage": "Spend a little time looking for an existing ontology, standard list or glossary you can borrow from.",
2449
+ "review": "Did you look for an industry standard, internal glossary, spreadsheet or schema that already names these things? Is there a system you must interoperate with?",
2450
+ "fix": "Look, then record what you found (see reuse-recorded)."
2451
+ },
2452
+ {
2453
+ "type": "Rationale",
2454
+ "id": "rat.reuse-considered",
2455
+ "explanation": "It is almost always worth considering, and reuse may be required if your system must interact with applications that already committed to a vocabulary."
2456
+ },
2457
+ {
2458
+ "type": "Rule",
2459
+ "id": "rule.terms-dispositioned",
2460
+ "key": "terms-dispositioned",
2461
+ "modality": "SHOULD",
2462
+ "basis": "operational",
2463
+ "check": "mechanical",
2464
+ "severity": "warning",
2465
+ "fromStep": 6,
2466
+ "statement": "Every term brainstormed in Step 3 should end up as a class, slot, instance, slot value or synonym, or be marked out of scope.",
2467
+ "plainLanguage": "Go back to your term list and make sure nothing was forgotten.",
2468
+ "fix": "`okb term set <term> --as class|slot|instance|value|synonym|out-of-scope`."
2469
+ },
2470
+ {
2471
+ "type": "Rationale",
2472
+ "id": "rat.terms-dispositioned",
2473
+ "explanation": "The source derives classes (Step 4) and slots (Step 5) from the Step 3 list; tracking what became of each term is the toolkit's way of making sure the list was actually used."
2474
+ },
2475
+ {
2476
+ "type": "Rule",
2477
+ "id": "rule.reuse-recorded",
2478
+ "key": "reuse-recorded",
2479
+ "modality": "SHOULD",
2480
+ "basis": "operational",
2481
+ "check": "mechanical",
2482
+ "severity": "warning",
2483
+ "fromStep": 3,
2484
+ "statement": "Record the outcome of Step 2: each existing ontology considered, or that none was found.",
2485
+ "plainLanguage": "Even 'we looked and found nothing' is worth writing down.",
2486
+ "fix": "`okb reuse add ...` for each candidate, or `okb reuse none --why ...`."
2487
+ },
2488
+ {
2489
+ "type": "Rationale",
2490
+ "id": "rat.reuse-recorded",
2491
+ "explanation": "The source asks you to consider reuse; recording the outcome is the toolkit's way of making that step visible to later readers and to `okb status`."
2492
+ },
2493
+ {
2494
+ "type": "Rule",
2495
+ "id": "rule.struct-well-formed",
2496
+ "key": "struct-well-formed",
2497
+ "modality": "MUST",
2498
+ "basis": "operational",
2499
+ "check": "mechanical",
2500
+ "severity": "error",
2501
+ "fromStep": 1,
2502
+ "statement": "Files must be well-formed: unique node ids, known node and edge types, edges pointing at existing nodes of the allowed types, and required properties present.",
2503
+ "plainLanguage": "The JSON has to hang together. If you only use okb commands, this never fails; it catches hand edits.",
2504
+ "fix": "Fix the node/edge named in the finding (or undo the hand edit)."
2505
+ },
2506
+ {
2507
+ "type": "Rationale",
2508
+ "id": "rat.struct-well-formed",
2509
+ "explanation": "Every other check assumes the graph is structurally sound."
2510
+ },
2511
+ {
2512
+ "type": "Rule",
2513
+ "id": "rule.prov-verified",
2514
+ "key": "prov-verified",
2515
+ "modality": "MUST",
2516
+ "basis": "operational",
2517
+ "check": "mechanical",
2518
+ "severity": "error",
2519
+ "fromStep": 1,
2520
+ "statement": "A node extracted from a document must be verified against its quote, and anything not SUPPORTED (including corrected OVERREACH results, until a person approves them) must be resolved before the ontology is published.",
2521
+ "plainLanguage": "If the independent check said a statement claims more than its quote supports, a human decides before it ships.",
2522
+ "fix": "Edit the statement to match the quote, then set verification.status to SUPPORTED with a note, or delete the node."
2523
+ },
2524
+ {
2525
+ "type": "Rationale",
2526
+ "id": "rat.prov-verified",
2527
+ "explanation": "The extraction pipeline's gate (docs/EXTRACTION-PIPELINE.md): drafting and verifying are separate passes, and only SUPPORTED claims merge without review."
2528
+ },
2529
+ {
2530
+ "type": "Rule",
2531
+ "id": "rule.prov-cites-quote",
2532
+ "key": "prov-cites-quote",
2533
+ "modality": "MUST",
2534
+ "basis": "operational",
2535
+ "check": "mechanical",
2536
+ "severity": "error",
2537
+ "fromStep": 1,
2538
+ "statement": "Every domain Rule, and every node marked as extracted, must CITE at least one SourceLocation with a non-empty verbatim quote that is PART_OF a Source.",
2539
+ "plainLanguage": "Anything taken from a document has to point at the exact words it came from.",
2540
+ "fix": "Add the SourceLocation and CITES edge, or delete the unsupported node."
2541
+ },
2542
+ {
2543
+ "type": "Rationale",
2544
+ "id": "rat.prov-cites-quote",
2545
+ "explanation": "Quote-first extraction: no quote, no claim."
2546
+ },
2547
+ {
2548
+ "type": "Rule",
2549
+ "id": "rule.prov-quote-current",
2550
+ "key": "prov-quote-current",
2551
+ "modality": "MUST",
2552
+ "basis": "operational",
2553
+ "check": "mechanical",
2554
+ "severity": "error",
2555
+ "fromStep": 1,
2556
+ "statement": "Each SourceLocation quote must still appear verbatim in its source document (checked when the Source has a readable localPath).",
2557
+ "plainLanguage": "If the source document changed and the quote is gone, the citation is stale.",
2558
+ "fix": "Re-extract from the current document, or update localPath to the version you cited."
2559
+ },
2560
+ {
2561
+ "type": "Rationale",
2562
+ "id": "rat.prov-quote-current",
2563
+ "explanation": "Catches citations that went stale after the source was edited, which the original pipeline listed as unsolved."
2564
+ },
2565
+ {
2566
+ "type": "Rule",
2567
+ "id": "rule.prov-duplicate-quotes",
2568
+ "key": "prov-duplicate-quotes",
2569
+ "modality": "MAY",
2570
+ "basis": "operational",
2571
+ "check": "mechanical",
2572
+ "severity": "info",
2573
+ "fromStep": 1,
2574
+ "statement": "Near-identical quotes attributed to different source documents may indicate copy-pasted documentation; check each is accurate for its own source.",
2575
+ "plainLanguage": "The same paragraph appearing in two different docs is often a copy-paste that's only right in one of them.",
2576
+ "fix": "Confirm each quote against its own document; fix the documentation if one copy is wrong."
2577
+ },
2578
+ {
2579
+ "type": "Rationale",
2580
+ "id": "rat.prov-duplicate-quotes",
2581
+ "explanation": "A documentation-quality signal carried over from the original validator (it found a button size table pasted into unrelated component docs)."
2582
+ },
2583
+ {
2584
+ "type": "Decision",
2585
+ "id": "decision.approach",
2586
+ "name": "Top-down, bottom-up, or combination?",
2587
+ "plainLanguage": "Before you add your first class, decide where to start: with the big general categories, with specific examples, or somewhere in the middle. None of these is wrong. This guide helps you find the one that fits how you think about your subject.",
2588
+ "whenYouFaceIt": "At the start of Step 4, before you add classes.",
2589
+ "tests": [
2590
+ {
2591
+ "ask": "Do you naturally think of this domain starting from its broadest categories?",
2592
+ "ifYes": "Go top-down: create the most general classes first, then specialize.",
2593
+ "ifNo": "continue"
2594
+ },
2595
+ {
2596
+ "ask": "Do you think in concrete examples first (specific products, cases, items)?",
2597
+ "ifYes": "Go bottom-up: create the most specific classes, then group them.",
2598
+ "ifNo": "Use combination: start with the most obvious concepts at any level and grow up and down from them."
2599
+ }
2600
+ ],
2601
+ "note": "None of the three is better than the others. Combination is often the easiest for beginners, because the middle-level concepts tend to be the most descriptive.",
2602
+ "wine": "Combination: start with Wine and Margaux, then add Médoc between them."
2603
+ },
2604
+ {
2605
+ "type": "Decision",
2606
+ "id": "decision.is-a",
2607
+ "name": "Is this really a subclass?",
2608
+ "plainLanguage": "Whenever you say one class is a kind of another, check that it really is. This guide catches the usual mix-ups: parts of things, other names for the same thing, and single individual things.",
2609
+ "whenYouFaceIt": "Every time you add an IS_A (parent) link.",
2610
+ "tests": [
2611
+ {
2612
+ "ask": "Is every single X, by definition, also a Y (not just usually)?",
2613
+ "ifYes": "continue",
2614
+ "ifNo": "Not a subclass. If X is part of Y, made by Y, or related to Y, use a slot."
2615
+ },
2616
+ {
2617
+ "ask": "Is X a singular/plural or alternative name for Y?",
2618
+ "ifYes": "Not a subclass. It's the same class; add the other name as a synonym.",
2619
+ "ifNo": "continue"
2620
+ },
2621
+ {
2622
+ "ask": "Is X one particular thing rather than a kind of thing?",
2623
+ "ifYes": "It's an instance of Y, not a subclass.",
2624
+ "ifNo": "continue"
2625
+ },
2626
+ {
2627
+ "ask": "Is X already a subclass of Y through another parent?",
2628
+ "ifYes": "Don't add the direct link; it's implied.",
2629
+ "ifNo": "Yes, X IS_A Y."
2630
+ }
2631
+ ],
2632
+ "wine": "Pinot Noir → Red Wine: every Pinot Noir is necessarily red. ✓. Wine → Wines: ✗ (plural). Château Morgon Beaujolais → Beaujolais: ✗, it's an instance."
2633
+ },
2634
+ {
2635
+ "type": "Decision",
2636
+ "id": "decision.new-class",
2637
+ "name": "Should I introduce a new subclass here?",
2638
+ "plainLanguage": "You can always split a class into more specific ones, but not every split is worth making. This guide helps you decide when a new subclass earns its place.",
2639
+ "whenYouFaceIt": "When you're tempted to split a class into more specific ones.",
2640
+ "tests": [
2641
+ {
2642
+ "ask": "Will the subclass have slots the parent doesn't have?",
2643
+ "ifYes": "Create it.",
2644
+ "ifNo": "continue"
2645
+ },
2646
+ {
2647
+ "ask": "Will it have different restrictions (a fixed value, fewer allowed values, a different cardinality)?",
2648
+ "ifYes": "Create it.",
2649
+ "ifNo": "continue"
2650
+ },
2651
+ {
2652
+ "ask": "Will it take part in relationships the parent doesn't (e.g. a wine that 'goes well with seafood')?",
2653
+ "ifYes": "Create it.",
2654
+ "ifNo": "continue"
2655
+ },
2656
+ {
2657
+ "ask": "Is this a reference hierarchy people browse to pick a level of detail, or a distinction experts always make?",
2658
+ "ifYes": "Create it, mark it terminological, and record why.",
2659
+ "ifNo": "Probably don't. Use a slot value on the parent instead."
2660
+ }
2661
+ ],
2662
+ "note": "Aim for a balance: neither a deep hierarchy of near-identical classes nor a flat one that stuffs everything into slots.",
2663
+ "wine": "Red Wine ✓ (adds tanninLevel). Dessert Wine ✓ (fixes sugar = sweet). 'Delicate Wine' ✗ (it's just flavor = delicate)."
2664
+ },
2665
+ {
2666
+ "type": "Decision",
2667
+ "id": "decision.class-or-value",
2668
+ "name": "New class, or just a slot value?",
2669
+ "plainLanguage": "A difference such as red versus white wine can be modeled as two classes or as a value on one class. This guide helps you choose.",
2670
+ "whenYouFaceIt": "When a term is a distinction among things (red/white wine, small/large, active/inactive).",
2671
+ "tests": [
2672
+ {
2673
+ "ask": "Would things with different values change which values are allowed in OTHER classes' slots? (e.g. red vs white wine changes which dishes pair well)",
2674
+ "ifYes": "Make classes.",
2675
+ "ifNo": "continue"
2676
+ },
2677
+ {
2678
+ "ask": "Do people in the domain think of things with different values as different kinds of things?",
2679
+ "ifYes": "Make classes.",
2680
+ "ifNo": "continue"
2681
+ },
2682
+ {
2683
+ "ask": "Could one individual change its value over time (chilled/not chilled, active/inactive)?",
2684
+ "ifYes": "Slot value. Class membership shouldn't change often.",
2685
+ "ifNo": "continue"
2686
+ },
2687
+ {
2688
+ "ask": "Is it a number, color, location or similar measurement?",
2689
+ "ifYes": "Slot value (usually).",
2690
+ "ifNo": "Slot value, unless one of the earlier tests applied."
2691
+ }
2692
+ ],
2693
+ "note": "The same distinction can be a class in one ontology and a value in another. It depends on your scope. Record which you chose.",
2694
+ "wine": "Wine color is a class split in the pairing ontology (red and white pair differently), but just a value in a label-printing ontology."
2695
+ },
2696
+ {
2697
+ "type": "Decision",
2698
+ "id": "decision.instance-or-class",
2699
+ "name": "Instance or class?",
2700
+ "plainLanguage": "A term can name a kind of thing (a class) or one particular thing (an instance). This guide helps you tell which one you have, especially when you reach the bottom of your hierarchy.",
2701
+ "whenYouFaceIt": "When a term names something specific, or when you reach the bottom of the hierarchy.",
2702
+ "tests": [
2703
+ {
2704
+ "ask": "Do the concepts form a natural hierarchy (one inside another, like regions)?",
2705
+ "ifYes": "Classes (possibly abstract), even if they have no instances yet.",
2706
+ "ifNo": "continue"
2707
+ },
2708
+ {
2709
+ "ask": "Is it among the most specific things that appear in the answers to your competency questions?",
2710
+ "ifYes": "Instance.",
2711
+ "ifNo": "continue"
2712
+ },
2713
+ {
2714
+ "ask": "Will you need to record different facts about finer-grained versions of it (e.g. each year's vintage of a wine)?",
2715
+ "ifYes": "Class, with the finer-grained things as its instances.",
2716
+ "ifNo": "Instance."
2717
+ }
2718
+ ],
2719
+ "wine": "For pairing, Sterling Vineyards Merlot is an instance. If you track each vintage, it becomes a class and the vintages become instances. Wine regions are all classes because they nest."
2720
+ },
2721
+ {
2722
+ "type": "Decision",
2723
+ "id": "decision.disjoint",
2724
+ "name": "Are these classes disjoint?",
2725
+ "plainLanguage": "Two classes are disjoint when nothing can belong to both at once. Saying so lets okb catch mistakes later. This guide helps you decide whether it applies to a pair of sibling classes.",
2726
+ "whenYouFaceIt": "After creating siblings.",
2727
+ "tests": [
2728
+ {
2729
+ "ask": "Can any single thing be a member of both classes at once?",
2730
+ "ifYes": "Not disjoint. Leave them.",
2731
+ "ifNo": "Declare them disjoint (okb class disjoint A B)."
2732
+ }
2733
+ ],
2734
+ "wine": "Red Wine / White Wine: disjoint. Dessert Wine / White Wine: not disjoint (sweet Riesling is both)."
2735
+ },
2736
+ {
2737
+ "type": "Decision",
2738
+ "id": "decision.slot-placement",
2739
+ "name": "Which class does this slot go on?",
2740
+ "plainLanguage": "A slot (a property such as body or maker) is attached to a class, and its subclasses inherit it. This guide helps you pick the most general class where the slot makes sense for every member.",
2741
+ "whenYouFaceIt": "Step 5, for each property.",
2742
+ "tests": [
2743
+ {
2744
+ "ask": "Does every member of the parent class have this property?",
2745
+ "ifYes": "Move up and ask again about the next parent.",
2746
+ "ifNo": "Attach it to the current class, the highest one where every member has it."
2747
+ },
2748
+ {
2749
+ "ask": "Are you about to attach it to every child of some class?",
2750
+ "ifYes": "Attach it to that class instead.",
2751
+ "ifNo": "continue"
2752
+ }
2753
+ ],
2754
+ "wine": "body goes on Wine (all wines have a body). tanninLevel goes on Red Wine, not Wine."
2755
+ },
2756
+ {
2757
+ "type": "Decision",
2758
+ "id": "decision.range",
2759
+ "name": "What should this slot's range be?",
2760
+ "plainLanguage": "The range of a slot that points to other things says what kinds of things it can point to. Too narrow and valid values get rejected. Too broad and it stops meaning anything. This guide helps you pick a good range.",
2761
+ "whenYouFaceIt": "Step 6, for each Instance-type slot.",
2762
+ "tests": [
2763
+ {
2764
+ "ask": "Is there one class that covers every valid value?",
2765
+ "ifYes": "Use the most general such class that contains only valid values.",
2766
+ "ifNo": "List several classes."
2767
+ },
2768
+ {
2769
+ "ask": "Does your list include a class and its subclass?",
2770
+ "ifYes": "Drop the subclass.",
2771
+ "ifNo": "continue"
2772
+ },
2773
+ {
2774
+ "ask": "Does your list include all (or nearly all) children of one class?",
2775
+ "ifYes": "Use the parent instead.",
2776
+ "ifNo": "continue"
2777
+ },
2778
+ {
2779
+ "ask": "Is the range something like Thing/Entity/Object?",
2780
+ "ifYes": "Too general. Narrow it.",
2781
+ "ifNo": "Done."
2782
+ }
2783
+ ],
2784
+ "wine": "produces → Wine (not Red Wine + White Wine + Rosé Wine, and not Thing)."
2785
+ },
2786
+ {
2787
+ "type": "Decision",
2788
+ "id": "decision.naming",
2789
+ "name": "Choosing a naming convention",
2790
+ "plainLanguage": "Names should follow one convention across the whole ontology. This guide helps you pick one before you have created many names, so you don't have to rename them all later.",
2791
+ "whenYouFaceIt": "Start of Step 4, before you create many names.",
2792
+ "tests": [
2793
+ {
2794
+ "ask": "Will the names be used in code, a graph database, or URLs that don't handle spaces well?",
2795
+ "ifYes": "Use PascalCase for classes and camelCase for slots (the toolkit default).",
2796
+ "ifNo": "Title Case With Spaces is also fine for classes."
2797
+ },
2798
+ {
2799
+ "ask": "Is there a reason to prefer plural class names (e.g. a system you integrate with uses them)?",
2800
+ "ifYes": "Use plural everywhere.",
2801
+ "ifNo": "Use singular (more common in practice) everywhere."
2802
+ },
2803
+ {
2804
+ "ask": "Do you want slot names to show they're slots (hasMaker, makerOf)?",
2805
+ "ifYes": "Set a has-/-of prefix/suffix convention and use it on every slot.",
2806
+ "ifNo": "No prefix (the default)."
2807
+ },
2808
+ {
2809
+ "ask": "Will the data go into a graph database?",
2810
+ "ifYes": "Nothing extra to decide: okb stores each relationship under its name in UPPER_SNAKE case (maker → MAKER, goesWellWith → GOES_WELL_WITH), the usual openCypher style, and class names become node labels in `okb export`.",
2811
+ "ifNo": "Nothing to decide."
2812
+ }
2813
+ ],
2814
+ "note": "There's often no reason to prefer one option; what matters is sticking to it. Consider other systems your ontology will be exchanged with.",
2815
+ "wine": "Classes: RedWine, Winery (PascalCase, singular). Slots: tanninLevel, maker (camelCase)."
2816
+ },
2817
+ {
2818
+ "type": "Decision",
2819
+ "id": "decision.edge-or-class",
2820
+ "name": "Edge property, or make the relationship its own class?",
2821
+ "plainLanguage": "Sometimes a link between two things needs extra detail, such as how strong a pairing is. You can store that detail on the link itself (an edge property) or turn the link into a class. This guide helps you choose.",
2822
+ "whenYouFaceIt": "When a relationship needs extra information: a condition, a strength, a date, a source.",
2823
+ "tests": [
2824
+ {
2825
+ "ask": "Is the extra information a simple value about this one link (a short condition, a number, a date)?",
2826
+ "ifYes": "continue",
2827
+ "ifNo": "Make the relationship a class (e.g. a Recommendation with slots from, to, condition, audience), so it can have its own relationships."
2828
+ },
2829
+ {
2830
+ "ask": "Does the qualifier need relationships of its own (to people, sources, other components), or several values that vary independently?",
2831
+ "ifYes": "Make it a class. Edges can only hold plain values (and a `rule` reference).",
2832
+ "ifNo": "continue"
2833
+ },
2834
+ {
2835
+ "ask": "Will you query or validate by it (e.g. 'all recommendations that apply to dense layouts')?",
2836
+ "ifYes": "An Enumerated edge property works if the values are a fixed list; otherwise consider a class.",
2837
+ "ifNo": "Use an edge property (okb relationship property ...)."
2838
+ }
2839
+ ],
2840
+ "note": "Ontology 101's frame model has no properties on relationships: the standard move there is to turn the relationship into a class (reification). Graph databases support edge properties natively, so for simple qualifiers they're the lighter choice. Record which you chose.",
2841
+ "wine": "A wine–food pairing with a strength (\"excellent\", \"acceptable\") fits an Enumerated edge property on goesWellWith. A pairing that records who recommended it, for which menu and from which source would be a Pairing class."
2842
+ },
2843
+ {
2844
+ "type": "Step",
2845
+ "id": "step.1-scope",
2846
+ "order": 1,
2847
+ "name": "Determine the domain and scope",
2848
+ "goal": "Write down what the ontology is about, what it's for, who will use and maintain it, and which questions it must answer.",
2849
+ "whyItMatters": "Scope is what lets you say 'no' to things later. Without it, every interesting fact looks like it belongs, and the ontology never finishes.",
2850
+ "guidingQuestions": [
2851
+ "What is the domain that the ontology will cover? (One sentence.)",
2852
+ "What are we going to use the ontology for? What app, search, report or decision will it feed?",
2853
+ "What types of questions should it be able to answer? (These become competency questions.)",
2854
+ "Who will use it, and who will maintain it? Do they use the same words for things?",
2855
+ "What is related but deliberately out of scope?"
2856
+ ],
2857
+ "outputs": [
2858
+ "Ontology node: domain, purpose, users, maintainers, outOfScope",
2859
+ "3 or more CompetencyQuestion nodes"
2860
+ ],
2861
+ "doneWhen": [
2862
+ {
2863
+ "text": "Domain and purpose are written down",
2864
+ "check": "scope_domain_purpose"
2865
+ },
2866
+ {
2867
+ "text": "Users (and ideally maintainers) are named",
2868
+ "check": "scope_users"
2869
+ },
2870
+ {
2871
+ "text": "At least three competency questions",
2872
+ "check": "cq_min3"
2873
+ },
2874
+ {
2875
+ "text": "At least one thing is explicitly out of scope",
2876
+ "check": "scope_out"
2877
+ }
2878
+ ],
2879
+ "tips": [
2880
+ "Competency questions are a sketch, not a contract. You'll add and change them.",
2881
+ "Don't try to list every question now. Write a few examples; each stands for a family of similar questions, and you can fill in the rest of the family once a question is answered.",
2882
+ "Good questions are specific and answerable: 'Which wines go with grilled meat?' beats 'Tell me about wine'.",
2883
+ "Include a few questions that need relationships (X goes with Y), not only lookups (what color is X)."
2884
+ ],
2885
+ "wine": "Domain: wine and food\nPurpose: suggest good wine–food combinations\nOut of scope: winery inventory, restaurant staff\nQuestion: Is Bordeaux a red or white wine?\nQuestion: Does Cabernet Sauvignon go well with seafood?\nQuestion: What is the best choice of wine for grilled meat?",
2886
+ "commands": [
2887
+ "okb scope",
2888
+ "okb cq add"
2889
+ ]
2890
+ },
2891
+ {
2892
+ "type": "Step",
2893
+ "id": "step.2-reuse",
2894
+ "order": 2,
2895
+ "name": "Consider reusing existing ontologies",
2896
+ "goal": "Check whether someone has already modeled part of your domain, and decide whether to borrow, adapt, just reference it, or skip it.",
2897
+ "whyItMatters": "Reuse saves time and makes your ontology compatible with others. If you have to talk to systems that already use a vocabulary, reuse may not be optional.",
2898
+ "guidingQuestions": [
2899
+ "Is there an industry standard, taxonomy or controlled vocabulary for this domain?",
2900
+ "Does any system you must integrate with already use a particular vocabulary?",
2901
+ "Is there an internal list, spreadsheet, glossary or schema that already names these things?"
2902
+ ],
2903
+ "outputs": [
2904
+ "ReusedOntology nodes (with a decision each), or a recorded 'none found'"
2905
+ ],
2906
+ "doneWhen": [
2907
+ {
2908
+ "text": "Reuse has been considered and recorded",
2909
+ "check": "reuse_reviewed"
2910
+ }
2911
+ ],
2912
+ "tips": [
2913
+ "Even a glossary page or an existing database schema counts as a source of terms.",
2914
+ "Don't let this step stall you. 30 minutes of looking is usually enough for a first version.",
2915
+ "Where to look: [Linked Open Vocabularies](https://lov.linkeddata.es) searches hundreds of reusable vocabularies by term. [schema.org](https://schema.org) covers everyday things: people, organizations, products, places, events and creative works.",
2916
+ "W3C vocabularies cover common needs: SKOS for taxonomies and thesauri, Dublin Core for document metadata, PROV-O for provenance, ORG for organizations and OWL-Time for dates and times.",
2917
+ "For design systems: [WAI-ARIA roles](https://www.w3.org/TR/wai-aria/) are a standard taxonomy of UI components (button, checkbox, switch, tab...). The [W3C Design Tokens format](https://www.designtokens.org) is the standard for tokens. DSDS, the [Design System Documentation Spec](https://designsystemdocspec.org), is a draft schema for documenting components, tokens and themes.",
2918
+ "You rarely need to import a whole vocabulary. Borrowing its terms and definitions is usually enough."
2919
+ ],
2920
+ "wine": "Ontology 101 notes a French-wine knowledge base or a wine retailer's list of wine properties could be imported, but chooses to build from scratch for teaching purposes.",
2921
+ "commands": [
2922
+ "okb reuse add",
2923
+ "okb reuse none"
2924
+ ]
2925
+ },
2926
+ {
2927
+ "type": "Step",
2928
+ "id": "step.3-terms",
2929
+ "order": 3,
2930
+ "name": "Enumerate important terms",
2931
+ "goal": "Brainstorm every term you'd want to make statements about or explain to a user, without worrying yet about what kind of thing each one is.",
2932
+ "whyItMatters": "It separates what matters from how to model it. Trying to do both at once is the main reason beginners freeze.",
2933
+ "guidingQuestions": [
2934
+ "What are the things we'd like to talk about?",
2935
+ "What properties do those things have?",
2936
+ "What would we like to say about those things?",
2937
+ "Read your competency questions: which nouns and verbs appear in them?"
2938
+ ],
2939
+ "outputs": [
2940
+ "Term nodes (an unsorted list, ideally 15–40 for a first pass)"
2941
+ ],
2942
+ "doneWhen": [
2943
+ {
2944
+ "text": "At least 10 terms listed",
2945
+ "check": "terms_min10"
2946
+ }
2947
+ ],
2948
+ "tips": [
2949
+ "Include nouns (wine, winery), adjectives and properties (color, body, sweet), and verbs (produces, goes well with).",
2950
+ "Overlaps and duplicates are fine here. You'll sort them out in Steps 4 and 5.",
2951
+ "Mine your competency questions and any documents you collected in Step 2."
2952
+ ],
2953
+ "wine": "Terms in the wine example include wine, grape, winery, location, a wine's color, body, flavor and sugar content, fish, red meat and white wine.",
2954
+ "commands": [
2955
+ "okb term add"
2956
+ ]
2957
+ },
2958
+ {
2959
+ "type": "Step",
2960
+ "id": "step.4-classes",
2961
+ "order": 4,
2962
+ "name": "Define the classes and the class hierarchy",
2963
+ "goal": "Pick the terms that name things with independent existence, make them classes, and arrange them by 'is a kind of'.",
2964
+ "whyItMatters": "The hierarchy is the backbone: slots are inherited down it and instances hang off it. Most modeling mistakes are hierarchy mistakes.",
2965
+ "guidingQuestions": [
2966
+ "Which terms name things that exist on their own (not descriptions of other things)?",
2967
+ "Where does your head naturally start: general, specific, or somewhere in the middle?",
2968
+ "For each pair: is every X necessarily (by definition) a Y?",
2969
+ "Do any siblings overlap? Can something be both? If not, they're disjoint."
2970
+ ],
2971
+ "outputs": [
2972
+ "Class nodes with IS_A edges",
2973
+ "Naming convention on the Ontology node",
2974
+ "DISJOINT_WITH declarations where appropriate"
2975
+ ],
2976
+ "doneWhen": [
2977
+ {
2978
+ "text": "A naming convention is set",
2979
+ "check": "convention_set"
2980
+ },
2981
+ {
2982
+ "text": "At least two classes, organized with at least one is-a link",
2983
+ "check": "classes_min2_with_isa"
2984
+ },
2985
+ {
2986
+ "text": "The class hierarchy has no known mistakes",
2987
+ "check": "no_errors_hierarchy"
2988
+ },
2989
+ {
2990
+ "text": "You've stood back and looked at the whole tree, checking each is-a link against the \"Is this really a subclass?\" guide"
2991
+ }
2992
+ ],
2993
+ "tips": [
2994
+ "Steps 4 and 5 are intertwined. It's normal to add a few classes, then a few slots, then go back.",
2995
+ "Say each is-a link out loud: 'Every Pinot Noir is a Red Wine.' If it sounds wrong, it is.",
2996
+ "Use singular names consistently (Wine, not Wines).",
2997
+ "Mark 'grouping only' classes as abstract."
2998
+ ],
2999
+ "wine": "Wine → Red Wine, White Wine, Rosé Wine\nRed Wine → Bordeaux, Burgundy, and so on\nBordeaux → Médoc → Pauillac, Margaux\nPort has two parents: Red Wine and Dessert Wine",
3000
+ "commands": [
3001
+ "okb convention",
3002
+ "okb class add",
3003
+ "okb class disjoint",
3004
+ "okb tree",
3005
+ "okb term set"
3006
+ ]
3007
+ },
3008
+ {
3009
+ "type": "Step",
3010
+ "id": "step.5-slots",
3011
+ "order": 5,
3012
+ "name": "Define the properties of classes (slots)",
3013
+ "goal": "Turn the remaining terms into slots and attach each one to the most general class whose members all have it.",
3014
+ "whyItMatters": "Classes alone can't answer your questions. Slots hold the facts and relationships the answers are made of.",
3015
+ "guidingQuestions": [
3016
+ "Which remaining terms describe a class rather than being one?",
3017
+ "For each: is it intrinsic (flavor), extrinsic (name, region), a part, or a relationship to another thing (maker)?",
3018
+ "What is the most general class whose members all have this property?",
3019
+ "Which competency question needs this slot?"
3020
+ ],
3021
+ "outputs": [
3022
+ "Slot nodes attached with HAS_SLOT edges"
3023
+ ],
3024
+ "doneWhen": [
3025
+ {
3026
+ "text": "At least one slot",
3027
+ "check": "slots_min1"
3028
+ },
3029
+ {
3030
+ "text": "Every slot is attached to at least one class",
3031
+ "check": "slots_attached"
3032
+ }
3033
+ ],
3034
+ "tips": [
3035
+ "Two kinds of slot: properties hold a value (name, year, one of a list); relationships point at another thing (maker → Winery).",
3036
+ "Name relationships as verbs or roles read from the domain class: a Wine has a maker; a Winery produces wines.",
3037
+ "If you're attaching the same slot to every child, attach it to the parent instead."
3038
+ ],
3039
+ "wine": "Wine gets: color, body, flavor, sugar, name, maker, grape\nWinery gets: location, produces\nRed Wine gets: tanninLevel, because white wines aren't described by tannin",
3040
+ "commands": [
3041
+ "okb property add",
3042
+ "okb relationship add",
3043
+ "okb show",
3044
+ "okb term set"
3045
+ ]
3046
+ },
3047
+ {
3048
+ "type": "Step",
3049
+ "id": "step.6-facets",
3050
+ "order": 6,
3051
+ "name": "Define the facets of the slots",
3052
+ "goal": "For every slot, decide its value type, allowed values or range, cardinality, and any defaults, fixed values or inverse.",
3053
+ "whyItMatters": "Facets turn a list of fields into rules a machine can check. This is where most data-quality errors get caught later.",
3054
+ "guidingQuestions": [
3055
+ "Is the value text, a number, yes/no, one of a fixed list, or another thing (Instance)?",
3056
+ "If it's a fixed list, what are all the allowed values?",
3057
+ "If it's another thing, what is the most general class of things it can be (the range)? Not too general, not too narrow.",
3058
+ "One value or many? Is it required (minimum 1)?",
3059
+ "Is there a value most instances share (default), or one every instance of a class must have (fixed value)?",
3060
+ "Is this relationship the reverse of another slot (maker ↔ produces)?",
3061
+ "Does each link need extra information of its own, like a condition or a strength? (Edge properties; see decision.edge-or-class.)"
3062
+ ],
3063
+ "outputs": [
3064
+ "Facets on every Slot node",
3065
+ "RANGE edges for Instance slots",
3066
+ "INVERSE_OF edges",
3067
+ "Class-level fixed values/defaults/overrides"
3068
+ ],
3069
+ "doneWhen": [
3070
+ {
3071
+ "text": "Every slot has a value type and cardinality",
3072
+ "check": "slots_faceted"
3073
+ },
3074
+ {
3075
+ "text": "The slots have no known mistakes",
3076
+ "check": "no_errors_slots"
3077
+ }
3078
+ ],
3079
+ "tips": [
3080
+ "When in doubt about range, pick the most general class that still only contains valid fillers.",
3081
+ "Defaults are suggestions; fixed values are facts. Don't confuse them."
3082
+ ],
3083
+ "wine": "body: one of light, medium or full, and only one value\nproduces (on Winery): points to Wine, can have many values, and is the inverse of maker\ngrape: at least one value\nDessert Wine: sugar is fixed at sweet",
3084
+ "commands": [
3085
+ "okb slot set",
3086
+ "okb relationship inverse",
3087
+ "okb relationship property",
3088
+ "okb class fix",
3089
+ "okb class default",
3090
+ "okb class restrict"
3091
+ ]
3092
+ },
3093
+ {
3094
+ "type": "Step",
3095
+ "id": "step.7-instances",
3096
+ "order": 7,
3097
+ "name": "Create instances",
3098
+ "goal": "Add real individuals: choose a class, create the instance, and fill in its slot values.",
3099
+ "whyItMatters": "Instances are the real test. Filling them in shows up missing slots, wrong facets and classes that don't fit.",
3100
+ "guidingQuestions": [
3101
+ "What are the most specific things that appear in answers to your competency questions? Those are your instances.",
3102
+ "Which class does each belong to? (The most specific one that fits.)",
3103
+ "Can you fill in every required slot? If not, is the data missing or is the facet wrong?"
3104
+ ],
3105
+ "outputs": [
3106
+ "Instance nodes with INSTANCE_OF edges, property values, and relationship edges"
3107
+ ],
3108
+ "doneWhen": [
3109
+ {
3110
+ "text": "At least a few instances (enough to answer one competency question end to end)",
3111
+ "check": "instances_min3"
3112
+ },
3113
+ {
3114
+ "text": "The instances have no known mistakes",
3115
+ "check": "no_errors_instances"
3116
+ }
3117
+ ],
3118
+ "tips": [
3119
+ "Start with instances that answer one competency question completely. It's the fastest way to find gaps.",
3120
+ "An instance that won't fit anywhere usually means a class is missing or a facet is too strict."
3121
+ ],
3122
+ "wine": "Château Morgon Beaujolais is an instance of Beaujolais, with:\nbody light, color red, flavor delicate, tannin low\ngrape Gamay, maker Château Morgon, region Beaujolais, sugar dry",
3123
+ "commands": [
3124
+ "okb instance add",
3125
+ "okb instance set"
3126
+ ]
3127
+ },
3128
+ {
3129
+ "type": "Step",
3130
+ "id": "step.8-review",
3131
+ "order": 8,
3132
+ "name": "Review against your questions, and iterate",
3133
+ "goal": "Stand back: check each competency question can be answered, run the full validator, review the judgment-only rules, record decisions, and go around again.",
3134
+ "whyItMatters": "The only real test of an ontology is whether it does the job it was built for. Expect to loop back to earlier steps.",
3135
+ "guidingQuestions": [
3136
+ "For each competency question: which classes, slots and instances answer it? Is anything missing?",
3137
+ "For each answered question: would the ontology also answer the rest of its family, the same question about similar things and the questions next to it? Which of those are out of scope?",
3138
+ "Is there anything in the ontology no question needs?",
3139
+ "Would a domain expert agree with the hierarchy? Show it to one.",
3140
+ "Which choices would surprise someone reusing this ontology? Are they recorded as design decisions?"
3141
+ ],
3142
+ "outputs": [
3143
+ "NEEDS links from every competency question",
3144
+ "DesignDecision records",
3145
+ "A clean `okb validate` (no errors; warnings resolved or explained)"
3146
+ ],
3147
+ "doneWhen": [
3148
+ {
3149
+ "text": "Every competency question is linked to what answers it",
3150
+ "check": "cq_all_linked"
3151
+ },
3152
+ {
3153
+ "text": "Each question's family has been considered: wanted questions added, the rest recorded as out of scope"
3154
+ },
3155
+ {
3156
+ "text": "The whole ontology has no known mistakes",
3157
+ "check": "no_errors"
3158
+ },
3159
+ {
3160
+ "text": "Every remaining issue is fixed or explained in a design decision",
3161
+ "check": "warnings_explained"
3162
+ },
3163
+ {
3164
+ "text": "Someone who knows the domain has looked at it"
3165
+ }
3166
+ ],
3167
+ "tips": [
3168
+ "Iteration is part of the method, not a sign you went wrong.",
3169
+ "Use the ontology-review skill for the judgment rules a script can't check."
3170
+ ],
3171
+ "wine": "Ontology 101's own evolution example: Zinfandel starts under Red Wine, then 'white zinfandel' appears and the class has to be split into White Zinfandel and Red Zinfandel.",
3172
+ "commands": [
3173
+ "okb cq link",
3174
+ "okb validate --all",
3175
+ "okb decision add",
3176
+ "okb diagram"
3177
+ ]
3178
+ },
3179
+ {
3180
+ "type": "NodeType",
3181
+ "id": "nodetype.Ontology",
3182
+ "name": "Ontology",
3183
+ "origin": "operational",
3184
+ "required": [
3185
+ "id",
3186
+ "name"
3187
+ ],
3188
+ "description": "Exactly one per ontology (id 'ontology'). Holds scope (domain, purpose, users, maintainers, outOfScope), conventions, reuseReviewed, and kind ('application' or 'terminological')."
3189
+ },
3190
+ {
3191
+ "type": "NodeType",
3192
+ "id": "nodetype.CompetencyQuestion",
3193
+ "name": "CompetencyQuestion",
3194
+ "origin": "ontology101",
3195
+ "required": [
3196
+ "id",
3197
+ "text"
3198
+ ],
3199
+ "description": "A question the ontology must answer. status: draft | answerable."
3200
+ },
3201
+ {
3202
+ "type": "NodeType",
3203
+ "id": "nodetype.Term",
3204
+ "name": "Term",
3205
+ "origin": "ontology101",
3206
+ "required": [
3207
+ "id",
3208
+ "text"
3209
+ ],
3210
+ "description": "A Step-3 brainstorm term. disposition: undecided | class | slot | instance | value | synonym | out-of-scope."
3211
+ },
3212
+ {
3213
+ "type": "NodeType",
3214
+ "id": "nodetype.ReusedOntology",
3215
+ "name": "ReusedOntology",
3216
+ "origin": "ontology101",
3217
+ "required": [
3218
+ "id",
3219
+ "name",
3220
+ "decision"
3221
+ ],
3222
+ "description": "An existing ontology/vocabulary considered in Step 2. decision: reuse | adapt | reference | rejected."
3223
+ },
3224
+ {
3225
+ "type": "NodeType",
3226
+ "id": "nodetype.Class",
3227
+ "name": "Class",
3228
+ "origin": "ontology101",
3229
+ "required": [
3230
+ "id",
3231
+ "name"
3232
+ ],
3233
+ "description": "description, synonyms[], abstract, terminological, fixedValues{slotId: value}, defaults{slotId: value}, facetOverrides{slotId: {allowedValues, minCardinality, maxCardinality}}."
3234
+ },
3235
+ {
3236
+ "type": "NodeType",
3237
+ "id": "nodetype.Slot",
3238
+ "name": "Slot",
3239
+ "origin": "ontology101",
3240
+ "required": [
3241
+ "id",
3242
+ "name"
3243
+ ],
3244
+ "description": "description, valueType (String|Integer|Float|Number|Boolean|Enumerated|Instance), allowedValues[], cardinality (single|multiple), minCardinality, maxCardinality, default, relType (Instance slots only: the edge type its values are stored as), appliesToRules (Boolean, property slots only: the slot applies to every Rule)."
3245
+ },
3246
+ {
3247
+ "type": "NodeType",
3248
+ "id": "nodetype.Instance",
3249
+ "name": "Instance",
3250
+ "origin": "ontology101",
3251
+ "required": [
3252
+ "id",
3253
+ "name"
3254
+ ],
3255
+ "description": "description, values{slotId: value | [values]} for property (non-Instance) slots. Relationship values are edges."
3256
+ },
3257
+ {
3258
+ "type": "NodeType",
3259
+ "id": "nodetype.DesignDecision",
3260
+ "name": "DesignDecision",
3261
+ "origin": "ontology101",
3262
+ "required": [
3263
+ "id",
3264
+ "title",
3265
+ "decision"
3266
+ ],
3267
+ "description": "question, decision, rationale, alternatives[], metaRules[] (rule ids it resolves or waives), date."
3268
+ },
3269
+ {
3270
+ "type": "NodeType",
3271
+ "id": "nodetype.Source",
3272
+ "name": "Source",
3273
+ "origin": "operational",
3274
+ "required": [
3275
+ "id",
3276
+ "title"
3277
+ ],
3278
+ "description": "Provenance: a document content was extracted from (`okb source add`). localPath (checked by okb validate), format (markdown | pdf | text), url (rendered page), repoUrl (GitHub file URL, for line links), meta (markdown frontmatter)."
3279
+ },
3280
+ {
3281
+ "type": "NodeType",
3282
+ "id": "nodetype.SourceLocation",
3283
+ "name": "SourceLocation",
3284
+ "origin": "operational",
3285
+ "required": [
3286
+ "id",
3287
+ "quote"
3288
+ ],
3289
+ "description": "Provenance: a verbatim passage (`okb quote add`). locator (heading path, or p.N for PDFs), headingPath[], startLine/endLine/lines, blockKind, sourceLink (GitHub ?plain=1#Lx-Ly), pageLink (rendered heading anchor), page (PDFs)."
3290
+ },
3291
+ {
3292
+ "type": "NodeType",
3293
+ "id": "nodetype.Rule",
3294
+ "name": "Rule",
3295
+ "origin": "operational",
3296
+ "required": [
3297
+ "id",
3298
+ "modality",
3299
+ "statement"
3300
+ ],
3301
+ "description": "A domain rule: a requirement on any implementation (prescriptive), e.g. 'Buttons meet a 24px minimum touch target'. Extracted from documentation or authored by the ontology owner (`okb rule add`). authored (Boolean: written by the owner, not extracted; still cites a quote and is verified), extracted, extractionConfidence, verification{status, checkedAgainst}, _originalDraft, values{slotId: value | [values]} for qualifier slots that apply to Rules (e.g. condition, inputModality). Not inherited through REFINES."
3302
+ },
3303
+ {
3304
+ "type": "EdgeType",
3305
+ "id": "edgetype.IS_A",
3306
+ "name": "IS_A",
3307
+ "origin": "ontology101",
3308
+ "fromTypes": [
3309
+ "Class"
3310
+ ],
3311
+ "toTypes": [
3312
+ "Class"
3313
+ ],
3314
+ "props": [],
3315
+ "optionalProps": [],
3316
+ "provenance": false,
3317
+ "description": "Subclass → superclass. Transitive; no cycles."
3318
+ },
3319
+ {
3320
+ "type": "EdgeType",
3321
+ "id": "edgetype.INSTANCE_OF",
3322
+ "name": "INSTANCE_OF",
3323
+ "origin": "ontology101",
3324
+ "fromTypes": [
3325
+ "Instance"
3326
+ ],
3327
+ "toTypes": [
3328
+ "Class"
3329
+ ],
3330
+ "props": [],
3331
+ "optionalProps": [],
3332
+ "provenance": false,
3333
+ "description": "Instance → its class (most specific one that fits). An instance may have more than one."
3334
+ },
3335
+ {
3336
+ "type": "EdgeType",
3337
+ "id": "edgetype.HAS_SLOT",
3338
+ "name": "HAS_SLOT",
3339
+ "origin": "ontology101",
3340
+ "fromTypes": [
3341
+ "Class"
3342
+ ],
3343
+ "toTypes": [
3344
+ "Slot"
3345
+ ],
3346
+ "props": [],
3347
+ "optionalProps": [],
3348
+ "provenance": false,
3349
+ "description": "Class → slot attached to it. The set of these classes is the slot's domain."
3350
+ },
3351
+ {
3352
+ "type": "EdgeType",
3353
+ "id": "edgetype.RANGE",
3354
+ "name": "RANGE",
3355
+ "origin": "ontology101",
3356
+ "fromTypes": [
3357
+ "Slot"
3358
+ ],
3359
+ "toTypes": [
3360
+ "Class"
3361
+ ],
3362
+ "props": [],
3363
+ "optionalProps": [],
3364
+ "provenance": false,
3365
+ "description": "Instance-type slot → allowed class of its values."
3366
+ },
3367
+ {
3368
+ "type": "EdgeType",
3369
+ "id": "edgetype.INVERSE_OF",
3370
+ "name": "INVERSE_OF",
3371
+ "origin": "ontology101",
3372
+ "fromTypes": [
3373
+ "Slot"
3374
+ ],
3375
+ "toTypes": [
3376
+ "Slot"
3377
+ ],
3378
+ "props": [],
3379
+ "optionalProps": [],
3380
+ "provenance": false,
3381
+ "description": "Declares two relationship slots inverse. The `from` slot's relType is the stored direction; the `to` slot reads those edges backwards. Stored once."
3382
+ },
3383
+ {
3384
+ "type": "EdgeType",
3385
+ "id": "edgetype.DISJOINT_WITH",
3386
+ "name": "DISJOINT_WITH",
3387
+ "origin": "ontology101",
3388
+ "fromTypes": [
3389
+ "Class"
3390
+ ],
3391
+ "toTypes": [
3392
+ "Class"
3393
+ ],
3394
+ "props": [],
3395
+ "optionalProps": [],
3396
+ "provenance": false,
3397
+ "description": "Declares two classes disjoint. Stored once; symmetric."
3398
+ },
3399
+ {
3400
+ "type": "EdgeType",
3401
+ "id": "edgetype.NEEDS",
3402
+ "name": "NEEDS",
3403
+ "origin": "operational",
3404
+ "fromTypes": [
3405
+ "CompetencyQuestion"
3406
+ ],
3407
+ "toTypes": [
3408
+ "Class",
3409
+ "Slot",
3410
+ "Instance"
3411
+ ],
3412
+ "props": [],
3413
+ "optionalProps": [],
3414
+ "provenance": false,
3415
+ "description": "Competency question → an element needed to answer it."
3416
+ },
3417
+ {
3418
+ "type": "EdgeType",
3419
+ "id": "edgetype.BECAME",
3420
+ "name": "BECAME",
3421
+ "origin": "operational",
3422
+ "fromTypes": [
3423
+ "Term"
3424
+ ],
3425
+ "toTypes": [
3426
+ "Class",
3427
+ "Slot",
3428
+ "Instance"
3429
+ ],
3430
+ "props": [],
3431
+ "optionalProps": [],
3432
+ "provenance": false,
3433
+ "description": "Step-3 term → what it turned into."
3434
+ },
3435
+ {
3436
+ "type": "EdgeType",
3437
+ "id": "edgetype.ABOUT",
3438
+ "name": "ABOUT",
3439
+ "origin": "operational",
3440
+ "fromTypes": [
3441
+ "DesignDecision"
3442
+ ],
3443
+ "toTypes": [
3444
+ "Class",
3445
+ "Slot",
3446
+ "Instance",
3447
+ "CompetencyQuestion",
3448
+ "Term",
3449
+ "ReusedOntology",
3450
+ "Ontology",
3451
+ "Rule"
3452
+ ],
3453
+ "props": [],
3454
+ "optionalProps": [],
3455
+ "provenance": false,
3456
+ "description": "Design decision → what it's about."
3457
+ },
3458
+ {
3459
+ "type": "EdgeType",
3460
+ "id": "edgetype.CITES",
3461
+ "name": "CITES",
3462
+ "origin": "operational",
3463
+ "fromTypes": [
3464
+ "Class",
3465
+ "Slot",
3466
+ "Instance",
3467
+ "Rule",
3468
+ "DesignDecision"
3469
+ ],
3470
+ "toTypes": [
3471
+ "SourceLocation"
3472
+ ],
3473
+ "props": [],
3474
+ "optionalProps": [],
3475
+ "provenance": true,
3476
+ "description": "Provenance: element → the verbatim passage it came from."
3477
+ },
3478
+ {
3479
+ "type": "EdgeType",
3480
+ "id": "edgetype.PART_OF",
3481
+ "name": "PART_OF",
3482
+ "origin": "operational",
3483
+ "fromTypes": [
3484
+ "SourceLocation"
3485
+ ],
3486
+ "toTypes": [
3487
+ "Source"
3488
+ ],
3489
+ "props": [],
3490
+ "optionalProps": [],
3491
+ "provenance": true,
3492
+ "description": "Provenance: passage → its document."
3493
+ },
3494
+ {
3495
+ "type": "EdgeType",
3496
+ "id": "edgetype.GOVERNS",
3497
+ "name": "GOVERNS",
3498
+ "origin": "operational",
3499
+ "fromTypes": [
3500
+ "Rule"
3501
+ ],
3502
+ "toTypes": [
3503
+ "Class",
3504
+ "Slot",
3505
+ "Instance"
3506
+ ],
3507
+ "props": [],
3508
+ "optionalProps": [],
3509
+ "provenance": true,
3510
+ "description": "Domain rule → what it constrains."
3511
+ },
3512
+ {
3513
+ "type": "EdgeType",
3514
+ "id": "edgetype.REFINES",
3515
+ "name": "REFINES",
3516
+ "origin": "operational",
3517
+ "fromTypes": [
3518
+ "Rule"
3519
+ ],
3520
+ "toTypes": [
3521
+ "Rule"
3522
+ ],
3523
+ "props": [],
3524
+ "optionalProps": [
3525
+ "adds"
3526
+ ],
3527
+ "provenance": true,
3528
+ "description": "Rule → the broader rule it narrows by adding a part, condition, key or case. Stored in one direction. Optional `adds` (String) names what it adds, so a verifier can check that detail appears in the quote."
3529
+ },
3530
+ {
3531
+ "type": "EdgeType",
3532
+ "id": "edgetype.FULFILLS",
3533
+ "name": "FULFILLS",
3534
+ "origin": "operational",
3535
+ "fromTypes": [
3536
+ "Instance"
3537
+ ],
3538
+ "toTypes": [
3539
+ "Rule"
3540
+ ],
3541
+ "props": [],
3542
+ "optionalProps": [],
3543
+ "provenance": true,
3544
+ "description": "A descriptive fact (an Instance, e.g. of a Behavior class) → the rule it meets. Many instances may fulfill one rule; read backwards it is 'fulfilled by', not 'requires'. Stored in one direction."
3545
+ }
3546
+ ]