Introduction#
Check whether someone has already modeled part of your subject, and write down what you found.
If a good wine vocabulary exists, borrowing its terms saves time. It also makes your data easier to combine with other people’s. You can read the full guide to this step in Method.
What you’ll make#
A recorded decision about reuse. In this tutorial the decision is “none”, and you’ll say why.
Run the commands#
Ontology 101 mentions existing wine vocabularies but builds its own, to teach the method. Record that choice and your reason:
okb reuse none --why "Following Ontology 101, which builds the wine ontology from scratch for teaching; a French-wine knowledge base or retailer vocabulary would be candidates in a real project."
Recorded that no existing ontology was reused, with your reason as a design decision.
Read the output#
- okb confirms in one line. It saved your reason as a design decision, which is a note that stays with the ontology and explains a choice.
- Someone who opens the files in a year can read your reason and see that you looked and chose not to reuse.
- For your own project, spend about half an hour on this step. The guide (
okb step 2) lists where to look, such as Linked Open Vocabularies and schema.org. You rarely need to import a whole vocabulary. Borrowing its terms and definitions is usually enough.
Check your work#
okb status
Wine and Food · 0 classes · 0 slots · 0 instances · 6 questions
✓ 1. Determine the domain and scope
✓ 2. Consider reusing existing ontologies ◀ you are here
✓ Reuse has been considered and recorded
○ 3. Enumerate important terms
○ 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–2): ✗ 0 ! 0 i 0 okb validate for details
Step 2 looks done. When you're happy with it: okb step next
Step 2 now has a tick. Move on:
okb step next
Now on step 3. (To read a step's guide without moving: okb explain 3)
Step 3 of 8: Enumerate important terms
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.
Why it matters: It separates what matters from how to model it. Trying to do both at once is
the main reason beginners freeze.
Questions to answer
• What are the things we'd like to talk about?
• What properties do those things have?
• What would we like to say about those things?
• Read your competency questions: which nouns and verbs appear in them?
You're done when
○ At least 10 terms listed
Tips
• Include nouns (wine, winery), adjectives and properties (color, body, sweet), and verbs
(produces, goes well with).
• Overlaps and duplicates are fine here. You'll sort them out in Steps 4 and 5.
• Mine your competency questions and any documents you collected in Step 2.
In Ontology 101's wine example
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.
Commands
okb term add
Common mistakes
- Letting this step stall you. A quick search is enough for a first version.
- Skipping the record. If you skip it, step 2 isn’t complete, and okb keeps reminding you.
Next step#
You recorded that you’re building from scratch, and why. Next, you’ll brainstorm the words people use when they talk about wine and food.