Incredibly useful, knowledge graphs help organizations keep track of medical research, cybersecurity threat intelligence, GDPR compliance, web user engagement, and much more. They do so by storing interlinked descriptions of entities―objects, events, situations, or abstract concepts―and encoding the underlying information. How do you create a knowledge graph? And how do you move it from theory into production?
Using hands-on examples, this practical book shows data scientists and data engineers how to build their own knowledge graphs. Authors Jesús Barrasa and Jim Webber from Neo4j illustrate common patterns for building knowledge graphs that solve many of today’s pressing knowledge management problems. You’ll quickly discover how these graphs become increasingly useful as you add data and augment them with algorithms and machine learning.
Learn the organizing principles necessary to build a knowledge graph
Explore how graph databases serve as a foundation for knowledge graphs
Understand how to import structured and unstructured data into your graph
Follow examples to build integration-and-search knowledge graphs
Learn what pattern detection knowledge graphs help you accomplish
Explore dependency knowledge graphs through examples
Use examples of natural language knowledge graphs and chatbots
Use graph algorithms and ML to gain insight into connected data
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Building Knowledge Graphs: A Practitioner's Guide
## 【One-Line Pitch】
A hands-on technical manual for data scientists, software engineers, and architects who want to move knowledge graphs from theory to production, using the labeled property graph model and Neo4j-based patterns to turn connected data into contextual insight.
## 【Book Arc】
- **Opening (~0%–9%)**: Introduces the "data drowning" problem—organizations collect vast amounts of data but struggle to extract value—and positions knowledge graphs as a purposeful arrangement of data that adds context and semantic connectivity. Sets expectations for a technical audience comfortable with databases and programming.
- **Early (~9%–25%)**: Covers graph fundamentals, including the historical roots of graph theory (Euler's bridges), the shift from plain graphs to knowledge graphs, and why the labeled property graph model (nodes, labels, relationships, properties) serves as the foundation for modern knowledge graph systems.
- **Early (~25%–34%)**: Explores the property graph model in depth, showing how simple primitives (nodes with labels/properties, typed and directed relationships) can represent complex domains like social networks, and why this model is both human-readable and machine-friendly for large-scale systems.
- **Middle (~38%–47%)**: Defines knowledge graphs precisely—interlinked facts about real-world entities with an explicit organizing principle—and contrasts them with "plain old graphs" where interpretation logic lives in consuming applications rather than in the data itself. Highlights why smarter data enables reuse and reduces duplication.
- **Middle (~47%–53%)**: Demonstrates how adding layers of organization (labels, properties, named relationships) transforms basic graphs into knowledge graphs, using a retail sales example to show how context becomes embedded in the data rather than hidden in query logic.
## 【Key Takeaways】
- **Knowledge graphs solve the "data-rich, insight-poor" problem** (Early): They place individual records in an associative network of relationships, providing semantic connectivity that lets data be repurposed across use cases like fraud detection and product recommendations. This contextualized understanding drives automation, better predictions, and agile responses to change.
- **The labeled property graph model is the practical foundation** (Early): Nodes represent entities with labels (e.g., Customer, Product) and key-value properties; relationships have types (e.g., BOUGHT), direction, and optional properties. This simple model is expressive enough for complex domains and scales to billions of connections.
- **Graphs are not new—Euler's 18th-century insight still applies** (Early): The Königsberg bridge problem showed that stripping away real-world noise to focus purely on connectivity reveals logical structure. Modern software development follows the same pattern: abstracting away irrelevant detail to build valuable logical representations.
- **Not all graphs are knowledge graphs** (Middle): A knowledge graph requires an organizing principle—an additional layer of structure that lets users or systems reason about the data. Without it, interpretation logic is hidden in application code, making data harder to reuse and vulnerable to knowledge loss when engineers leave.
- **Smarter data beats smarter applications** (Middle): Encoding knowledge directly into the data (rather than into consuming systems) enables knowledge reuse, reduces duplication and discrepancies, and simplifies overall system architecture. This is the core philosophical shift knowledge graphs introduce.
- **Context is the key differentiator** (Early): The layer of metadata—graph topology and features—provides rules for structure and interpretation. This connected context is what enables extracting greater value from existing data and supports rapid decision-making in stressed business environments.
## 【Reading Tips】
- **Skim the historical and motivational material** (Early chapters): The Euler story and business motivation sections are useful context but not essential for implementation. Focus instead on the property graph model definitions and examples.
- **Deep-read the property graph model sections** (Early, ~25%–34%): Understanding nodes, labels, relationships, types, and properties thoroughly is critical—everything later builds on these primitives. Pay attention to how direction and properties on relationships work.
- **Study the plain graph vs. knowledge graph contrast carefully** (Middle, ~44%–53%): The retail sales example is the clearest illustration of why organizing principles matter. Trace how adding labels and named relationships transforms a graph from requiring external interpretation to being self-describing.
- **Expect a two-part structure**: The book is organized into fundamentals (graph databases, query languages, data wrangling, graph data science) followed by applied patterns. If you're already comfortable with graph concepts, you can move faster through Part 1.
- **Keep a database mindset**: The authors assume modest comfort with database concepts and some programming experience. If you have that background, you can focus on the knowledge graph-specific patterns rather than general data modeling.
## 【Coverage Limits】
This guide covers the book's opening and early-middle sections (approximately 0%–53%), including graph fundamentals, the property graph model, and the definition and organizing principles of knowledge graphs. The excerpts do not cover the later applied patterns (integration-and-search graphs, pattern detection, dependency graphs, natural language processing, chatbots, or graph algorithms/ML), which appear in the book's second half.
##
Excerpt 1
rchased for educational, business, or sales promotional use. Online editions are also available for most titles ( https://oreilly.com ). For more information...
logy based on graphs has moved from obscurity to prominence. Graphs have come to underpin everything from consumer-facing systems like navigation and social...
re 1-2 , this graph holds much more information. Figure 1-3. A graph representing people, their friendships, and their locations In Figure 1-3 each node has...
iar example, think about the sales data for an online store. Sales data is typically large and dynamic, combining customer shopping information with a produc...
akin to tags which describe the role of a node in the graph. There is no associativity between labels, so you can’t for example infer that an apple is a spec...
ovide an ability to reason across those domains. Figure 2-7. A sophisticated layering of ontologies and taxonomies over the same data set In Figure 2-6 , you...
ortant question: how do they align with your business needs? We’ve found that organizations that are successful with knowledge graphs tend to leverage standa...
a valid Cypher query as shown in Example 3-1 . Example 3-1. Using Cypher’s CREATE keyword to insert a subgraph CREATE (:Person {name:'Rosa'})-[:LIVES_IN {sin...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Building Knowledge Graphs A Practitioners Guide (Jesus Barrasa, Jim Webber)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Building Knowledge Graphs A Practitioners Guide (Jesus Barrasa, Jim Webber)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment