Skip to content

Step 3: Terms

3 min · step 3 of 8

Introduction#

Write down every word someone might use about your subject, without sorting them.

A term is any word or phrase from the domain. A long list now means fewer surprises later, because you sort the words in later steps. You can read the full guide to this step in Method.

What you’ll make#

A list of 35 terms: drinks, ingredients, and the words people use to describe them.

Add the terms#

Run the okb term add command with every word you can think of. Include describing words and links, like contains. One term, “tip jar”, is a word you’ll decide to leave out:

okb term add drink espresso ristretto lungo americano "long black" macchiato cortado "flat white" cappuccino latte breve mocha "con panna" affogato "cafe bombon" ingredient coffee water milk "whole milk" "half and half" "condensed milk" foam chocolate "whipped cream" gelato "pull volume" "espresso to milk ratio" texture "pour order" contains "variation of" origin "tip jar"
35 term(s) on the list.

Then look at the list:

okb term list
undecided     drink · espresso · ristretto · lungo · americano · long black · macchiato · cortado · flat white · cappuccino · latte · breve · mocha · con panna · affogato · cafe bombon · ingredient · coffee · water · milk · whole milk · half and half · condensed milk · foam · chocolate · whipped cream · gelato · pull volume · espresso to milk ratio · texture · pour order · contains · variation of · origin · tip jar

Read the output#

  • The list mixes drinks, ingredients, and describing words. You don’t sort them yet.
  • The terms came from the competency questions and from picturing a café menu. Both are good sources.

Check your work#

okb status
okb step next
Espresso drinks  · 0 classes · 0 slots · 0 instances · 6 questions

✓ 1. Determine the domain and scope
✓ 2. Consider reusing existing ontologies
✓ 3. Enumerate important terms ◀ you are here
     ✓ At least 10 terms listed
○ 4. Define the classes and the class hierarchy
○ 5. Define the properties of classes (slots)
○ 6. Define the facets of the slots
○ 7. Create instances
○ 8. Review against your questions, and iterate

Validator (steps 1–3): ✗ 0  ! 0  i 0   okb validate for details

Step 3 looks done. When you're happy with it: okb step next

Now on step 4. (To read a step's guide without moving: okb explain 4)

Step 4 of 8: Define the classes and the class hierarchy

  Goal: Pick the terms that name things with independent existence, make them classes, and
  arrange them by 'is a kind of'.
  Why it matters: The hierarchy is the backbone: slots are inherited down it and instances hang
  off it. Most modeling mistakes are hierarchy mistakes.

Questions to answer
  • Which terms name things that exist on their own (not descriptions of other things)?
  • Where does your head naturally start: general, specific, or somewhere in the middle?
  • For each pair: is every X necessarily (by definition) a Y?
  • Do any siblings overlap? Can something be both? If not, they're disjoint.

You're done when
  ○ A naming convention is set
  ○ At least two classes, organized with at least one is-a link
  ○ The class hierarchy has no known mistakes
  ? You've stood back and looked at the whole tree, checking each is-a link against the "Is this really a subclass?" guide

Tips
  • Steps 4 and 5 are intertwined. It's normal to add a few classes, then a few slots, then go
  back.
  • Say each is-a link out loud: 'Every Pinot Noir is a Red Wine.' If it sounds wrong, it is.
  • Use singular names consistently (Wine, not Wines).
  • Mark 'grouping only' classes as abstract.

In Ontology 101's wine example
  • Wine → Red Wine, White Wine, Rosé Wine
  • Red Wine → Bordeaux, Burgundy, and so on
  • Bordeaux → Médoc → Pauillac, Margaux
  • Port has two parents: Red Wine and Dessert Wine

Decision guides for this step  (okb explain <id>)
  decision.approach            Top-down, bottom-up, or combination?
  decision.is-a                Is this really a subclass?
  decision.new-class           Should I introduce a new subclass here?
  decision.class-or-value      New class, or just a slot value?
  decision.instance-or-class   Instance or class?
  decision.disjoint            Are these classes disjoint?
  decision.naming              Choosing a naming convention

Commands
  okb convention   okb class add   okb class disjoint   okb tree   okb term set

Common mistakes

  • Sorting while you brainstorm. Write first. Sort in the next steps.
  • Only listing nouns. Add the describing words and the “goes in” phrases too.

Next step#

You collected 35 terms without sorting them. Next, you’ll turn the things on the list into classes.

View page source