Snoika
Glossary·Generative engine optimization

What is a knowledge graph

Definition

A knowledge graph is a database that stores facts as entities, such as people or companies, and records how they relate to each other.

Each fact is a short statement such as "Paris is the capital of France." Knowledge graphs matter in SEO because search engines and AI assistants use these stored facts to understand things in the world beyond the words on a page.

TermKnowledge graph3 min read · reviewed by the Snoika team

Knowledge graph defined for marketers

For a marketer, a knowledge graph is the record Google or an AI assistant keeps of who your brand is and what it connects to. Your company is one entity. It links to your founders and products. It also connects to your locations and industry. When that record is accurate, machines describe you correctly. When it's thin, they guess or leave you out.

Why it matters for AI

AI systems use knowledge graphs to check facts and to match a name to the right thing. A language model on its own predicts likely words. That's why it can confuse two firms with similar names. A graph gives it a fixed fact to anchor the answer.

How a knowledge graph works

A knowledge graph stores every fact as a triple in which a relationship connects a subject to an object. Entities are the nodes, and relationships are the lines between them. Each entity gets a unique ID, so "Apple" the company and "apple" the fruit stay separate. The facts come from structured data and public databases like Wikidata. They also come from text that machines extract from web pages. When two sources disagree, the system weighs which one it trusts more.

Knowledge graph vs LLM

A knowledge graph stores explicit facts you can read and edit, while a large language model (LLM) stores patterns from its training text and generates new sentences. You can trace a graph fact back to its source. You can't do that with an LLM. But a graph can't write a paragraph, so the two work together.

Knowledge graph vs RAG

Retrieval-augmented generation (RAG) is a method, while a knowledge graph is a data store. RAG fetches information when a question comes in and passes it to the LLM. Plain RAG pulls passages of text. Graph-based RAG pulls linked facts from a knowledge graph instead.

A simple knowledge graph example

Picture a small graph about a local bakery:

Rosa's Bakery → located in → Lyon
Rosa's Bakery → founded by → Rosa Martin
Rosa Martin → born in → Turin
Rosa's Bakery → sells → sourdough bread

Ask "where was the founder of the Lyon sourdough bakery born?" and the system follows the links from Lyon to the bakery, then to Rosa, then to Turin. No single page needs to contain that whole answer.

How Google uses knowledge graphs

Google uses its Knowledge Graph to understand which entity a search refers to and to show facts about it directly. Amit Singhal, then Google's SVP of Engineering, described it at its May 2012 launch as a model that understands "things, not strings." Today it fills knowledge panels and helps Google tell apart entities that share a name. Search your brand and see whether a panel appears.

Where your brand fits in

You get into Google's knowledge graph by making your brand an entity it can confirm across sources:

  1. 011Use one brand name and address everywhere you appear. Keep your description consistent across those sources too.
  2. 022Add Organization schema markup to your site, with `sameAs` links to your official profiles.
  3. 033Create and verify a Google Business Profile if you serve customers locally.
  4. 044Earn mentions on independent sites Google already trusts.
  5. 055Once a knowledge panel appears, claim it so you can suggest corrections.

Related terms to know

Entity

An entity is a single, distinct thing a machine can identify, like a person or a brand. Keywords are strings of text, and entities are what those strings point to. Every node in a knowledge graph is an entity.

Structured data

Structured data is code on a web page that labels facts in the machine-readable Schema.org vocabulary. It feeds the graph. The knowledge graph is where those facts end up after Google checks them.

Knowledge panel

A knowledge panel is the box beside Google results that shows facts about one entity. It's the visible output of the graph. If you understand what is a knowledge graph, the panel is the part your customers actually see.

Look up more AI search and SEO terms in our glossary.

Related terms

All terms
AEOAnswer engine optimization (AEO) is the practice of shaping content so AI assistants and search features quote it as the direct answer to a question. For a brand, AEO is the work that gets your page cited by ChatGPT or Google AI Overviews when a buyer asks about your category.GEOGenerative engine optimization (GEO) is the practice of shaping a brand's content so AI assistants such as ChatGPT and Google AI Overviews mention and cite the brand when they answer a buyer's question. In marketing, GEO is how a brand gets into those written answers.Llms.txtllms.txt is a Markdown text file at the root of a website (yoursite.com/llms.txt) that gives large language models (LLMs) a short, curated map of the site's most useful pages.GroundingGrounding in AI means tying a model's answer to a source it can check, such as a company document or a live web search, so it doesn't answer from memory alone. Grounding AI output this way makes answers more accurate and lets you trace each claim to where it came from. When a chatbot cites a link, yLLM optimizationLLM optimization is the practice of making your brand and content easy for large language models, such as ChatGPT and Gemini, to trust and cite when they answer a question. It's also called LLMO or large language model optimization. Most people who ask what is LLM optimization want to be named insidAnswer engineAn answer engine is a search tool that replies to a question with one written answer instead of a list of links. It reads web sources and turns the relevant facts into a plain reply with citations. ChatGPT and Perplexity are the best-known examples. Ask what are answer engines, and the short reply i

See how AI talks about your brand

Get free audit