A knowledge graph is a way of representing knowledge as a network: entities such as people, places, products and concepts are the nodes, and named relationships between them are the edges. Each connection reads as a fact, for example "Marie Curie won the Nobel Prize in Physics". The term became widely known in 2012, when Google introduced its Knowledge Graph to improve search results.
Parts of a knowledge graph
Nodes (entities): the things the graph knows about.
Edges (relationships): the named, directed links between nodes, such as "works for", "located in" or "is a type of".
Properties: details attached to a node or an edge, such as a date or a size.
Triples: subject, relationship and object taken together. A graph is a collection of triples.
Schema or ontology: the agreed types of entities and relationships that keep the graph consistent.
What knowledge graphs are used for
Search: answering a question directly instead of listing pages.
Recommendations: suggesting products, films or articles related to what a person already chose.
Artificial intelligence: giving an AI agent or language model reliable facts and relationships to reason over.
Research and learning: mapping a field, a book's arguments or the people and events of a historical period.
Business: connecting customers, products, suppliers and documents that live in separate systems.
How to build a simple knowledge graph
Choose a subject and a question the graph should help answer.
List the entities and decide their types.
Add relationships and name each one with a verb.
Look for clusters and bridges. Groups of closely linked nodes are themes, and a node that joins two groups is often the most interesting.
Extend it as you learn more. A graph grows without having to be redrawn.
Knowledge graph vs concept map and mind map
A mind map branches from one central topic. A concept map also names the links between ideas, and is usually drawn by hand to explain a subject. A knowledge graph follows the same principle at a larger scale, with typed entities, and can be queried by software. An ER diagram describes tables for a relational database, while a knowledge graph stores the relationships themselves as data.
Example
Lucas, a history student, maps the causes of the Industrial Revolution. Nodes include inventions, inventors, cities and resources. Edges such as "invented", "powered" and "supplied" connect them. The graph shows that coal links to more nodes than anything else, which becomes the argument of his essay.
Knowledge graphs in MockFlow
MockFlow boards have a knowledge graph component for exploring a subject visually: see Create a knowledge graph. To begin from a sentence or a document, use Create a knowledge graph with AI, or the concept knowledge graph skill. More generators are on the AI diagram generator page.
