Skip to content
Pebbles Ai

Pebbles Ai glossary

What is a knowledge graph?

A knowledge graph is a way of storing facts as entities and the named relationships between them, such as one company that acquired another or a person who reports to the finance director. Because the links are explicit, software can follow chains of connections, answer questions across them and infer new facts with rules. A schema or ontology says which kinds of entity and link are allowed.

The short answer

Key takeaways

  • A knowledge graph stores facts as entity, relationship, entity: Jane, reports to, the CFO.
  • A schema or ontology on top defines which entities and relationships are valid.
  • Semantic network is the older name for a graph of concepts; knowledge graphs carry the idea at larger scale.
  • Graphs suit questions about connections, tables suit records and vector search suits similar meaning.
  • Account mapping is a natural graph problem, even when it lives in a spreadsheet.

How a knowledge graph works

A knowledge graph works by storing each fact as a small statement, two entities joined by a named relationship, and letting statements that share an entity connect into a network. 'Company A, acquired, Company B' and 'Company B, uses, Product X' together let a program answer a question neither fact answers alone.

On top of the stored facts sit two kinds of technique, which research surveys of the field describe as deductive and inductive. Deductive methods apply rules and ontologies to derive new facts: if A owns B and B owns C, then A indirectly owns C. Inductive methods learn patterns from the graph, for example to suggest links that are probably missing.

Semantic network: the older name

A semantic network is the older name for a graph of concepts joined by labelled links such as 'is a' and 'part of', and it is the direct ancestor of the knowledge graph. Early AI researchers used semantic networks to model how ideas relate in memory and to let programs answer simple questions by following links.

Knowledge graph is the term that took over as the same idea was applied to large collections of real-world facts, with standard formats, query languages and schemas so many people and programs can share one graph.

Knowledge graph vs database and vector database

A knowledge graph differs from a relational database by treating relationships as first-class facts, and from a vector database by storing exact, named links rather than closeness in meaning. The three are complementary, and many systems use more than one.

Knowledge graph examples in go-to-market

Account mapping is the clearest knowledge graph example in go-to-market work. The champion reports to the economic buyer, the parent company owns three subsidiaries, and a former customer's buyer now works at the prospect: each is an entity, relationship, entity fact.

Held as a graph, those facts answer questions a list cannot, such as which open deals include someone who used to work at a customer, or which subsidiaries sit under a parent you already sell to. The example is illustrative; most teams keep this knowledge in notes and heads, which is why it is lost when a rep leaves.

Knowledge graphs and large language models

Knowledge graphs and large language models are increasingly used together, with the graph supplying explicit facts and the model supplying fluent language. In graph-based retrieval, a system fetches the part of the graph relevant to a question and gives it to the model as context, so answers about relationships rest on stated facts rather than on what the model happens to recall.

The limits are practical. A graph takes effort to design, fill and keep current; facts extracted automatically from text carry errors; and a graph cannot answer anything its schema did not anticipate. It is worth building where the questions are about connections and the cost of a wrong answer is high.

Side by side

Knowledge graph, relational database and vector database

How the three ways of storing knowledge compare, in general terms.

Knowledge graph, relational database and vector database
StoresGood atLess suited to
Knowledge graphEntities and named relationshipsFollowing chains of connections and inferring linksBulk records with few relationships
Relational databaseRows in tables, linked by keysCounting, filtering and reporting on recordsDeep, many-step relationship questions
Vector databaseEmbeddings: numbers that capture meaningFinding text or items similar in meaningExact facts and named relationships

A general comparison of approaches, not of any named product.

From answer to product

Where Pebbles Ai fits

Clear answers

Common questions

Is a CRM a knowledge graph?

Not usually. A CRM stores records with some links between them, such as contacts on accounts, but it rarely treats relationships as typed facts a program can reason over and chain together.

Do you need a graph database to build a knowledge graph?

No. A graph database makes relationship queries faster and easier to write, but the model of entities and named links can sit in other stores too. The modelling matters more than the engine.

What is a triple in a knowledge graph?

A triple is one fact in subject, relationship, object form, such as Company A, acquired, Company B. A knowledge graph is a large set of triples that share entities.

About this page. Written by the Pebbles Ai team for people who run sales, marketing and growth. Last updated .

Your next chapter

From the term to the work

See how research, leads, outreach and email come together in one workspace.