Home/Insights/Knowledge Graphs

Knowledge Graphs

What Is a Knowledge Graph? A Simple Guide Using Sunday Dinner at Granny’s (Part 2)

A knowledge graph connects real facts so a computer can follow the links between them. Here's one built, fact by fact, from Sunday dinner at Granny's.

IO

Ina O'Murchu

Founder, Social Web Strategy

10 min read

Published 2 December 2026

Collage of two black-and-white hands linking blue circles with icons for a person, a family, a house, a calendar, a place and a document into a knowledge graph
In short
  • A knowledge graph stores real facts as links between things, such as "Colm is parent of Cara".
  • An ontology is the plan. A knowledge graph is that plan filled in with real people, places and events.
  • Google has used a knowledge graph since 2012 to show facts beside search results.
  • For an AI assistant, a knowledge graph is a checked map of facts to look up before it answers.

A knowledge graph is a network of real things, such as people, places, products and events, joined by named relationships and stored so a computer can follow the links. It turns separate facts into connected knowledge. Software can then answer questions about how things relate, rather than look up one value at a time.

In part 1, What Is an Ontology?, we used Sunday dinner at Granny’s to draw up the plan: the kinds of things that exist, how they can connect, and the rules for working out new facts. Now we fill that plan in with the real family. What you get is a knowledge graph.

Knowledge graph of a family: Mary, her children Colm and Caitríona, and grandchildren Seán, Cara and Donnacha, linked to Galway, Granny's house and Sunday dinner, with dashed lines for facts worked out by rules
Solid arrows are facts someone typed in. Green dashed arrows are facts the rules worked out.

From the Plan to the Real Family: Ontology vs Knowledge Graph

The ontology from part 1 sorted the things at Sunday dinner into three kinds: people, places and events. It linked people with relationships such as “parent of” and “sibling of”, and it set rules, such as “a parent of a parent is a grandparent” and “the children of siblings are first cousins”.

The plan itself doesn’t need Mary, or Colm, or Cara. It works for any family. In part 1 we used the family to explain the plan. In a knowledge graph, the family’s facts become the data, written down one by one in the same shape so a computer can follow them.

The knowledge graph is the plan with the real names in. Mary is a person. Colm is a person. Mary is parent of Colm. Granny’s house is a place, and this Sunday’s dinner happens there.

A useful way to hold the two apart: the ontology is the blueprint, and the knowledge graph is what you build from it. That’s how Neo4j describes the split, and it works well for most purposes. Researchers point out that the line isn’t always that clean, because the plan can sit inside the graph itself. Hogan and colleagues’ survey of the field also notes there’s no single agreed definition of a knowledge graph. For everyday use, “plan” and “filled-in plan” will serve you well.

Building Granny’s Knowledge Graph, One Fact at a Time

A knowledge graph is built from small facts, each with the same three parts: a thing, a relationship, and another thing. These are called triples. The W3C, the body that sets web standards, uses exactly this shape in its RDF data model, where each statement has a subject, a predicate and an object.

Here are some of the triples for Granny’s family:

SubjectRelationshipObject
Maryis parent ofColm
Maryis parent ofCaitríona
Colmis parent ofSeán
Colmis parent ofCara
Caitríonais parent ofDonnacha
Colmis sibling ofCaitríona
Seánis twin ofCara
Caralives inGalway
Carahas birth year2012
Sunday dinnertakes place atGranny’s house

Each triple is one link. Put them together and the people and places become points (often called nodes), and the relationships become the lines between them (edges). That’s the “graph” part. It’s a web of connections.

Three facts written as subject, relationship and object, and the same facts drawn as boxes joined by labelled arrows
Each fact is one triple. Drawn together, the triples become a graph.

Now the rules from the ontology go to work. Nobody typed in “Mary is grandparent of Seán”. The graph works it out, because Mary is parent of Colm and Colm is parent of Seán. The same rule finds that Mary is granny to Seán, Cara and Donnacha. A second rule, “the children of siblings are first cousins”, finds that Donnacha is first cousin to the twins.

So the graph can answer questions nobody wrote the answer to. Ask it “Who are Mary’s grandchildren?” and it follows the links step by step. It starts at Mary, follows “is parent of” to Colm and Caitríona, then follows “is parent of” again to Seán, Cara and Donnacha. Three names come back, and you can see the path that produced each one. That path matters: if an answer looks wrong, you can trace which fact led to it and fix that one fact.

A spreadsheet of names can’t do that on its own, because it doesn’t know what “parent” means.

A knowledge graph also has to be kept up to date. When a new grandchild arrives, you add one person and one “is parent of” link, and the rules do the rest. The new arrival is automatically Mary’s grandchild and a cousin to the right children. Each fact lives in one place, so one change updates every answer that depends on it.

You’ve Seen One Already: Google’s Knowledge Graph

When you search for a well-known person or place and a box of facts appears beside the results, you’re looking at a knowledge graph at work. Google introduced its Knowledge Graph on 16 May 2012, describing the idea as “things, not strings”. Search would understand that a word refers to a real thing with real connections, not just a run of letters.

At launch, Google said its graph held more than 500 million objects and 3.5 billion facts about them. By 2020, Google reported over 500 billion facts about five billion entities. Those fact boxes, called knowledge panels, are built from the Knowledge Graph and other sources Google uses.

Google’s graph is private, but there are open ones too. Wikidata, a sister project of Wikipedia, is a free knowledge base that people and machines can both read and edit.

Your own website can describe itself in the same terms. Since 2011, Google, Microsoft, Yahoo and Yandex have backed Schema.org, a shared vocabulary for adding structured data to web pages. Structured data (often called schema markup) tells search engines, in a fixed format, that this page is about a business, at this address, open these hours. It’s a small piece of a knowledge graph, written into your site. It’s part of the groundwork in good search engine optimisation.

One caution. Google says there’s no special schema markup you need to add to appear in its AI Overviews or AI Mode, and that structured data should match what’s visible on the page. Structured data helps search engines read your site correctly. It doesn’t guarantee a place in any results.

Knowledge Graph, Database, Taxonomy: What’s the Difference?

These terms get mixed up a lot, partly because they often work together. Here’s how they compare, using the family.

TaxonomyOntologyKnowledge graphDatabase
What it isA tree that sorts things into groupsThe plan: kinds of things, relationships and rulesThe plan filled in with real facts and linksSoftware that stores records
Family exampleAdults and Kids boxes“A person can be parent of a person”“Mary is parent of Colm”A table of names and birth years
Can it work out new facts?Only which group something belongs toIt holds the rulesYes, by applying the rules to the factsNot by itself
Main question it answersWhich group is this in?What can exist and connect?What’s true, and how is it connected?What’s in this record?

A knowledge graph is often stored in a graph database, but it doesn’t have to be. Hogan and colleagues note that knowledge graphs can be stored in ordinary relational databases too. The database is where the facts live. The knowledge graph is how they’re organised so their meaning is clear.

Why a Knowledge Graph Helps an AI Assistant Get More Answers Right

A general AI chatbot answers by predicting likely words, based on what it learned in training and, sometimes, what it finds on the web. That’s why it can sound sure and still be wrong about your opening hours or your eligibility rules. It isn’t checking your own records.

An assistant with a knowledge graph works differently. Before it replies, it looks up the relevant facts in a checked map and answers from those.

Here’s an illustrative example. Picture a county council. Its facts connect: grants have eligibility rules, the rules depend on where you live and your circumstances, each service has an office, and bank holidays change opening hours. A question like “Can I get a housing adaptation grant, and where do I apply?” needs several of those links at once. If the facts are mapped as a knowledge graph, an assistant can follow the links to one consistent answer. If the facts sit in separate PDFs, it has to piece the answer together from loose text.

How an AI assistant answers from a knowledge graph: a resident asks about a housing adaptation grant, the assistant follows links from the grant to eligibility rules, where you live, the local office and its hours, and gives one checked answer
The assistant follows the links in the knowledge graph to one answer it can check.

Researchers are testing this approach. Microsoft Research published GraphRAG in 2024: it builds a knowledge graph from an organisation’s documents and uses it to answer questions. In Microsoft’s early tests it gave more complete answers to questions about a whole collection of documents. An independent comparison found the picture is more mixed. Plain document search did better on single, detailed facts, and the graph approach did better on questions that join several facts. Combining the two improved results on question answering.

That matches how we design enterprise AI assistants at Social Web Strategy. An organisation’s services, locations, rules and opening hours are mapped as a knowledge graph, alongside its approved documents. The assistant answers from those sources, not from general internet knowledge, and says so when something isn’t covered.

Does Your Organisation Need a Knowledge Graph?

Most small businesses don’t need to build a formal knowledge graph. A café with one location and a short menu can keep its facts clear on a well-built website, with structured data for its address and hours.

A knowledge graph starts to earn its keep when your facts depend on each other. Signs you might benefit:

  • The right answer depends on several things at once, such as service, location, date and who’s asking.
  • The same facts live in more than one system or document, and they don’t always agree.
  • You want an AI assistant to answer the public, and wrong answers would cause real problems.
  • Staff spend time answering questions that are “easy if you know where to look”.

If any of those sound familiar, the first steps aren’t technical:

  1. List the kinds of things your questions are about: services, places, people, products, rules.
  2. Write down how they connect, in plain sentences, like the triples above.
  3. Keep each fact in one agreed place, so there’s one version to update.

That’s an ontology and the start of a knowledge graph, on paper. The technology comes after.

Frequently Asked Questions (FAQs)

✓

Yes, in a loose sense. Some graphs are simply facts and links with no formal plan behind them. Without an agreed plan, though, it’s harder to keep the facts consistent or to apply rules that work out new ones. Most useful knowledge graphs have at least a simple ontology underneath.

✓

The phrase appears in research papers going back to at least 1972, according to Hogan and colleagues. Google’s 2012 launch made it widely known.

✓

No. A large language model like ChatGPT learns patterns from text and stores them in a way nobody can read as a list of facts. A knowledge graph stores each fact explicitly, so it can be checked, corrected and traced to a source. The two can work together, with the graph supplying checked facts the model answers from.

Want an AI Assistant That Knows How Your Facts Connect?

If your customers ask questions that need several facts joined up, a knowledge graph is often what lets an assistant get them right. We can help you map what you know and decide whether you need a full knowledge graph, an AI assistant for your website, or simply better-organised information.

To talk it through, get in touch with your question, or read how our enterprise AI assistants work.

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