AI & Emerging Tech

Knowledge Graph

Also known as: graph database, semantic knowledge base, entity graph, ontology

A knowledge graph is a structured way of storing information that represents real-world entities (people, places, organisations, concepts) and the relationships between them as a connected network.

Unlike a traditional relational database that stores data in rows and columns, a knowledge graph explicitly encodes the relationships: 'Paris is the capital of France', 'Marie Curie was born in Warsaw', 'Aspirin treats headaches'. This structure makes it possible to answer complex queries about connections that would require many table joins in a traditional database, and to discover non-obvious relationships between entities.

Knowledge Graph, explained at three levels

At home

A knowledge graph is like a web of facts stored as connected dots. Each dot is a thing -- a person, a place, a product, a concept -- and the lines between dots show how things relate. 'Paris is the capital of France' is one connection. 'The Eiffel Tower is in Paris' is another. By following the connections, you can answer questions like 'Which buildings are in the capital of France?' without needing to know that answer directly stored anywhere.

At work

Knowledge graphs are used in enterprise settings to connect data across systems that were designed independently. A company might have customer records in their CRM, product data in their ERP, and support ticket history in a helpdesk tool -- three systems that cannot easily be queried together. A knowledge graph built over these systems links the same customer entity across all three, making it possible to ask relationship-based questions like 'which customers who bought Product X in the last six months have open support tickets?'

Real-world examples

At home

Lena researched her family tree using an online genealogy tool built on a knowledge graph. When she added her great-grandmother to the tree, the system automatically suggested a connection to a historical document it had indexed, linking her family to a village in Ukraine that matched the birth record -- a connection the system inferred by traversing entity relationships, not by finding an exact name match.

At work

The compliance team at Northgate Legal built a knowledge graph connecting lawyers, clients, matters, and industry sectors across their case management and CRM systems. This allowed them to run conflict-of-interest checks (is any lawyer in our firm connected to anyone on the opposing side through any matter?) in seconds -- a query that previously required manual searching across multiple systems.

How it compares

FeatureKnowledge GraphRelational DatabaseDocument Database
Data modelEntities and typed relationships (nodes and edges)Rows and columns with foreign key referencesFlexible document structures (JSON/XML)
Relationship queriesNative -- designed for multi-hop traversalPossible via JOINs but slow at scalePoor -- documents do not model relationships natively
SchemaFlexible; schema can evolve as new entity types are addedRigid; schema changes require migrationsSchema-less or loose schema
Best forConnected data, relationship discovery, semantic reasoningTransactional data with well-defined structureUnstructured or variable-schema content at scale
ExamplesNeo4j, Amazon Neptune, Google Knowledge GraphPostgreSQL, MySQL, OracleMongoDB, Couchbase, Firestore

Knowledge graphs excel at relationship traversal and semantic queries. Relational databases are better for structured transactional data with well-defined schemas. Document databases handle unstructured variable content. Most enterprise data architectures use a combination.

For analysts

In BA artefacts, knowledge graph requirements appear when requirements involve connecting disparate entities across systems or answering relationship-based questions. When eliciting requirements, listen for phrases like 'we want to know who is connected to who' or 'we need to see the relationship between X and Y across different systems' -- these signal knowledge graph use cases. Specify entity resolution rules as explicit requirements: 'Customer records from CRM and billing must be matched using a combination of company name, registration number, and postal address, with a confidence threshold of 95% before automatic merging.'

History & origin

The concept of semantic networks (representing knowledge as connected nodes) dates to the 1960s in cognitive science. Practical large-scale knowledge graphs emerged with Google's Knowledge Graph (2012), which Google used to enhance search results with factual summaries derived from connected entity data. Wikidata (2012) created a publicly available knowledge graph derived from Wikipedia. Enterprise knowledge graph products (Neo4j, Amazon Neptune, Microsoft Azure Cosmos DB graph API) expanded adoption to commercial applications in search, recommendation, and fraud detection.