Your First Knowledge Graph

A knowledge graph stores data as a network of nodes, edges, and properties rather than rows in tables or points in embedding space — relationships are explicit, queryable facts instead of JOINs or fuzzy similarity. You'll meet the two dominant flavors (the labeled property graph and RDF triples) and see how multi-hop questions like “which products are made by companies my colleagues work for?” fall out of graph traversal in ways tables simply can't.

Day 1 Progress0%

What a Knowledge Graph Actually Is

A knowledge graph (KG) stores information as a network of things and the connections between them, instead of as rows in tables. If you have ever sketched boxes-and-arrows on a whiteboard to explain a system, you have already drawn a knowledge graph.

The Three Primitives

Every knowledge graph is built from exactly three kinds of things:

  1. Nodes (also called vertices or entities) — the things you care about: a person, a company, a product, a city, an order.
  2. Edges (also called relationships) — a typed, directed connection between two nodes: Alice works_at ACME. The direction matters: works_at points from the person to the company, not the other way around.
  3. Propertieskey/value attributes attached to a node or an edge: a person node has name: "Alice" and born: 1995; the works_at edge has since: 2021.

Why Engineers Reach for Graphs

The real world is relationship-heavy and irregular. People know people who work at companies that make products bought by other people. Modeling that in a graph has three practical payoffs:

  • Relationships are data, not joins. The connection between two entities is a first-class object you can store, query, and attach properties to.
  • The schema can grow. Adding a new relationship type (mentors, acquired) usually requires no migration of existing data.
  • Multi-step questions read like the question. "Friends of friends who like jazz" is a 2-hop traversal, not a triple self-join.

Where You've Already Seen One

  • Google's Knowledge Graph powers the info panels beside search results — billions of entities about people, places, and things.
  • Wikidata is an open, community-maintained KG with 100M+ items.
  • LinkedIn / Facebook social graphs model people, the companies they work for, and how they connect.
Key Takeaways
  • A knowledge graph is nodes (entities) + edges (typed, directed relationships) + properties (key/value attributes)
  • Relationships are first-class, queryable data — not implicit JOINs
  • Graphs fit messy, relationship-heavy domains and let the schema grow without migrations

AI Learning Assistant

Powered by advanced LLM

Get personalized help with concepts, code examples, and explanations tailored to your learning pace.

Course Stats

Estimated Time
45 min
Lessons
5 sections