Home/Insights/Ontology

Ontology

What Is an Ontology? A Simple Guide Using Sunday Dinner at Granny’s

An ontology tells a computer what things are and how they connect, so it can understand meaning instead of matching words. Here's the idea explained with Sunday dinner at Granny's.

IO

Ina O'Murchu

Founder, Social Web Strategy

8 min read

Published 23 November 2026

Hands typing on a laptop with a knowledge graph diagram of connected people, places and events floating above the screen
In short
  • An ontology is a shared map that tells computers what things are and how they connect.
  • It has five parts: classes, instances, properties, relationships and rules.
  • Rules let a computer work out facts nobody typed in, like who is whose granny.
  • For a business, it helps AI assistants and search give the right answer, not just a matching keyword.

An ontology is a map that tells a computer what things are and how they connect, so it can understand meaning instead of just matching words. If that still sounds abstract, don’t worry. By the end of this post you’ll understand it through something everyone knows: Sunday dinner at Granny’s.

Computers See Words, Not Meaning

Show a person the words Mary, Cara, Galway, granny and roast potatoes and they’ll start building a picture straight away. Mary is probably someone’s granny. Galway is a place. Roast potatoes are food, and someone at the table loves them.

A computer sees none of that. To a computer, those are just strings of letters. It doesn’t know Mary is a person, that Galway is a place, or that Mary is Cara’s granny.

That gap is why a website chatbot can give a confident wrong answer, or why a search box misses something you know is there. The words are present. The meaning isn’t. An ontology fills that gap.

So What Is an Ontology?

An ontology is a shared map of meaning. It writes down, in a way both people and machines can follow, five things about a subject:

The five parts of an ontology: classes, instances, properties, relationships and rules
Every ontology is built from these five parts, whatever the subject.
PartWhat it answersSunday dinner example 
ClassesWhat kinds of things exist?Person, Place, Event
InstancesWhat are the real examples?Mary, Galway, Sunday dinner
PropertiesWhat describes each one?Cara was born in 2012
RelationshipsHow do they connect?Colm is Cara’s parent
RulesWhat follows from all that?A parent’s parent is a grandparent

That’s it. Every ontology, from a small business website to a hospital’s records system, is built from these five parts. Let’s sit down at the table and walk through each one.

Picture Sunday Dinner at Granny’s

Granny Mary is hosting. Her son Colm and her daughter Caitríona are there. Colm’s twins, Seán and Cara, are there, and so is Caitríona’s son Donnacha. Everyone, and everything they talk about, can be described with those five parts.

1. Classes: The Kinds of Things That Exist

Before you name anyone, you decide what kinds of things are in your world. At this dinner there are three:

  • Person: the people at the table
  • Place: Granny’s house, Galway
  • Event: the Sunday dinner itself
Three ontology classes for a family Sunday dinner: Person, Place and Event
Classes are the categories. Every person, place and event at Sunday dinner belongs to one.

A class is like a labelled box. It doesn’t hold anyone yet. It just says “things of this kind exist here”.

2. Instances: The Real Things in Each Class

Now you fill the boxes. Mary, Colm, Caitríona, Seán, Cara and Donnacha are instances of Person. Granny’s house and Galway are instances of Place. This week’s Sunday dinner is an instance of Event.

The easy way to remember it: a class is the kind of thing, an instance is the actual one.

3. Properties: The Facts That Describe Each Thing

Each instance can carry facts about itself. Take Cara: she was born in 2012, lives in Galway, loves roast potatoes and plays soccer.

Ontology properties example: Cara was born in 2012, lives in Galway, likes roast potatoes and plays soccer
Properties are the facts attached to one instance, in this case Cara.

Properties are what you’d write on someone’s name card at the table. They describe one thing on its own.

4. Relationships: How Things Connect

This is where an ontology starts to feel different from a list. Relationships link one instance to another:

  • Mary is a parent of Colm and Caitríona
  • Colm is a parent of Seán and Cara
  • Caitríona is a parent of Donnacha
  • Colm and Caitríona are siblings
  • Seán and Cara are twins

Each relationship is a simple, readable sentence: thing, connection, thing. Colm, parent of, Cara. Computers are very good at storing millions of these little sentences.

5. Rules: Working Out New Facts

Here’s the clever bit. You can give the ontology rules, such as:

  • A parent of a parent is a grandparent.
  • The children of siblings are first cousins.

Nobody ever typed in “Mary is Cara’s granny” or “Donnacha and Cara are cousins”. But with those two rules, the computer works both facts out by itself. Mary is Colm’s parent, Colm is Cara’s parent, so Mary must be Cara’s grandparent. The same rule shows she’s granny to Seán and Donnacha too.

Family tree showing how ontology rules work out that Mary is granny to Seán, Cara and Donnacha, and that Donnacha is the twins' first cousin
Solid lines are facts someone typed in. Green dashed lines are facts the rules worked out.

That’s the real power of an ontology. It doesn’t just store what you told it. It can reason about it, the same way anyone at the table would.

Ontology vs Taxonomy: What’s the Difference?

A taxonomy is a category tree. It sorts things into tidy boxes. An ontology connects those things and reasons about them.

A taxonomy of the family might put Mary, Colm and Caitríona under Adults, and Seán, Cara and Donnacha under Kids. That’s useful for filing, but it can’t tell you who is whose parent, and it can never work out that Donnacha and Cara are cousins.

Ontology vs taxonomy: a taxonomy sorts the family into boxes, an ontology connects them and reasons
A taxonomy only files things into boxes. An ontology connects them and can work out new facts.
TaxonomyOntology 
What it doesSorts things into groupsDescribes things and how they connect
ShapeA tree: each item sits under one parentA web: anything can link to anything
Can it work out new facts?NoYes, using rules
Everyday exampleThe aisles in a supermarketThe family at Sunday dinner

Most good ontologies contain a taxonomy, because the classes are usually arranged as one. The relationships and rules are what they add on top.

Now Swap the Family for Your Business

Replace Granny’s dinner table with your business and the same five parts apply:

  • Classes: products, services, customers, locations, staff
  • Instances: your actual products and your actual branches
  • Properties: prices, sizes, opening hours, delivery areas
  • Relationships: this product is available at that branch; this service includes that add-on
  • Rules: if a branch is closed on Sundays, nothing can be collected there on a Sunday

When that knowledge is written down as an ontology, the systems that read it get much smarter:

  • AI chat and voice assistants can give the right answer to “Can I collect this in Galway on Sunday?” instead of guessing from loosely matching text. This is how we build an AI assistant for your website.
  • Search engines and AI search can understand what your business offers, not just which keywords appear on the page. Structured data on your website, often called schema markup, is a small, practical step in this direction and part of good search engine optimisation.
  • Your own team gets one agreed definition of things, so “customer” or “order” means the same thing in every system and spreadsheet.

You don’t need to build a giant ontology to benefit. Even a clear, written-down model of your products, services and how they connect makes an AI assistant far more reliable. For larger organisations, the same idea sits behind our enterprise AI assistants.

The One-Minute Recap

  1. Computers see words, not meaning.
  2. An ontology is a shared map of meaning built from classes, instances, properties, relationships and rules.
  3. Classes are kinds of things; instances are the real ones.
  4. Relationships connect things; rules let the computer work out facts nobody typed in.
  5. Applied to your business, it helps AI assistants and search give the right answer, not just a matching keyword.

Frequently Asked Questions (FAQs)

✓

Not quite. A database stores data. An ontology describes what that data means and how it fits together. The two often work side by side.

✓

A knowledge graph is an ontology filled in with real data: all the instances and the links between them. The ontology is the plan; the knowledge graph is the house built from it.

✓

You probably don’t need a formal ontology on day one. But if you’re adding an AI assistant to your website, the quality of its answers depends on how clearly your information is organised and connected.

✓

It’s borrowed from philosophy, where ontology means the study of what exists. In computing, it means writing down what exists in a particular subject so machines can use it.

Want AI That Actually Understands Your Business?

At Social Web Strategy we build AI chat and voice assistants that answer from your organisation’s own information, and websites that search engines and AI tools can properly understand. Our founder, Ina O’Murchu, researched ontologies and knowledge graphs at DERI, NUI Galway, so this is the thinking behind every assistant we build.

If you’d like your information organised so your assistant gets the answer right, get in touch or request a quote.

IO

Written by

Ina O'Murchu

Founder, Social Web Strategy

Ina has worked on how machines make sense of human information since well before it was a product category, first as a researcher at DERI in Galway, one of Europe's largest semantic web research institutes, and since 2015 running Social Web Strategy for Irish organisations. She writes here about what actually holds up in practice, as opposed to what demos well.

  • 17 published papers
  • Former researcher, DERI Galway
  • Semantic web & knowledge graphs
  • Founder since 2015

More about InaLinkedInGet in touch

Want to Talk This Through?

No pitch, no obligation. Tell us what you're working on and we'll tell you honestly whether we can help.

Scroll to Top