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.

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:
| Subject | Relationship | Object |
|---|---|---|
| Mary | is parent of | Colm |
| Mary | is parent of | Caitríona |
| Colm | is parent of | Seán |
| Colm | is parent of | Cara |
| Caitríona | is parent of | Donnacha |
| Colm | is sibling of | Caitríona |
| Seán | is twin of | Cara |
| Cara | lives in | Galway |
| Cara | has birth year | 2012 |
| Sunday dinner | takes place at | Granny’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.

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.
| Taxonomy | Ontology | Knowledge graph | Database | |
|---|---|---|---|---|
| What it is | A tree that sorts things into groups | The plan: kinds of things, relationships and rules | The plan filled in with real facts and links | Software that stores records |
| Family example | Adults 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 to | It holds the rules | Yes, by applying the rules to the facts | Not by itself |
| Main question it answers | Which 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.

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:
- List the kinds of things your questions are about: services, places, people, products, rules.
- Write down how they connect, in plain sentences, like the triples above.
- 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)
Can You Have a Knowledge Graph Without an Ontology?
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.
Who Came Up With the Term "Knowledge Graph"?
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.
Is ChatGPT a Knowledge Graph?
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.