Knowledge Graphs — The Ontology, Populated

An ontology is the blueprint; a knowledge graph is the building. A knowledge graph is a network of real-world entities and the relationships between them, structured against an ontology so that both humans and machines can navigate it, query it, and reason over it. They power web search, recommendations, fraud detection, and increasingly the grounding of LLMs — and understanding what makes a graph a "knowledge" graph is understanding why this shape of data keeps winning for connected problems.

Post 1 defined the ontology (the types and rules) and post 2 gave us RDF triples (the notation). This post is about what you build with them: the knowledge graph — the actual entities and relationships of a domain, filled in against the ontology. We’ll cover what distinguishes a knowledge graph from an ordinary database, the two main technical flavors, and why graphs are the natural home for problems that are fundamentally about connections.

What makes it a knowledge graph

A knowledge graph represents information as a graph: nodes are entities (people, places, products, concepts) and edges are the typed relationships between them (worksFor, locatedIn, treats). A set of RDF triples (post 2) is already exactly this. But two things elevate it from “a graph of data” to a knowledge graph:

So a knowledge graph is entities + typed relationships + an ontology that gives them meaning + integration across sources. The combination is what makes it knowledge rather than merely data.

Two flavors: RDF graphs and property graphs

In practice there are two dominant technical models, and it’s worth knowing the split because tools and queries differ:

The practical judgment: RDF when interoperability and reasoning dominate (biomedicine, government, multi-party data integration); property graphs when you’re building one application that needs fast, expressive traversal (recommendations, fraud, network analysis). Both are “knowledge graphs”; they trade formal semantics against traversal ergonomics. Many teams start with a property graph for a product and adopt RDF when sharing meaning across boundaries becomes the need.

Why graphs win for connected problems

The deeper question is why this shape — why not just use the relational tables most data already lives in? The answer is that for problems about relationships, graphs match the problem and relational databases fight it:

None of this means graphs replace relational databases — they coexist, and most organizations run both, using the graph for the connected questions and tables for the tabular ones. The skill is recognizing a connection problem (multi-hop, relationship-centric, integration-heavy) and reaching for the shape of data that fits it. When the questions you ask are about how things relate, a knowledge graph stops being exotic and starts being obvious.

The takeaway: a knowledge graph is a network of entities (nodes) and typed relationships (edges) — a populated ontology — that becomes knowledge (not just data) through two things: being grounded in an ontology (types + rules make connections meaningful and reasonable-over) and integrating heterogeneous sources into one connected whole where everything about an entity attaches to one node. Two flavors dominate — RDF/semantic graphs (URIs, OWL, SPARQL; standards, interoperability, reasoning) and labeled property graphs (properties on nodes and edges, Cypher/Gremlin; intuitive, fast traversal) — chosen by whether shared meaning or traversal ergonomics dominate. Graphs win for connected problems because relationships are first-class (multi-hop traversal vs. join cascades), the schema flexes by accretion, meaning lives in structure (fraud rings, communities, recommendations), and the graph is the natural, verifiable grounding for AI — coexisting with, not replacing, relational databases.

Key takeaways

Further reading

Sources & References