Course contentsShow
← System Design
Lesson 475 of 1,91913. NoSQL: Graph DatabasesFree lesson

Knowledge Graphs and Semantic Networks

Modeling interconnected concepts, entities, and facts where relationships carry semantic meaning.

Knowledge Graphs and Semantic Networks

You'll learn how graph databases model interconnected concepts where relationships carry rich semantic meaning.

A knowledge graph is a graph database where nodes represent entities (people, places, concepts) and edges represent meaningful semantic relationships between them—not just "connected to," but why they're connected. Think of it as the difference between knowing "Alice knows Bob" versus "Alice supervises Bob" or "Alice mentored Bob." The relationship label carries crucial meaning.

The Semantic Network Concept

In a semantic network, every relationship is typed and meaningful. Instead of generic edges, you have relationships like WORKS_FOR, LOCATED_IN, INVENTED_BY, or CAUSED_BY. This creates a web of facts that machines can reason about. Google's Knowledge Graph, for example, doesn't just link "Albert Einstein" to "Theory of Relativity"—it knows Einstein DEVELOPED the theory, which EXPLAINS spacetime, which RELATES_TO gravity.

Why It Matters

Knowledge graphs excel at:

  • Multi-hop reasoning: "Find medications that treat diseases caused by viruses discovered after 2000"
  • Context-aware queries: Understanding that "Washington" might mean a person, city, or state based on surrounding relationships
  • Inference: If "Alice mentors Bob" and "Bob mentors Carol," you can infer transitive knowledge relationships

These systems power recommendation engines that understand why you liked something, fraud detection that spots suspicious relationship patterns, and AI assistants that answer complex questions by traversing interconnected facts.

Key Takeaway: Knowledge graphs store not just connections but the semantic meaning of relationships, enabling rich queries that reason about how entities relate to each other in meaningful ways.