AI guide
# Reading Guide: 从零构建知识图谱:技术、方法与案例
## 【One-Line Pitch】
A hands-on, engineering-first guide to building industrial-grade knowledge graphs from scratch, covering everything from core concepts and technical architecture to tooling, code-level implementation, and real-world applications. Ideal for NLP engineers, AI practitioners, and technical leads who want to move beyond theory and actually ship a knowledge graph system.
## 【Book Arc】
- **Opening (~0%–9%)**: Introduces knowledge graphs through the Google Search example (Yao Ming's wingspan), defines core concepts (entities, relations, attributes), and traces the lineage from Freebase and CYC to modern systems. Establishes the DIKW hierarchy (Data→Information→Knowledge→Wisdom) and explains why knowledge graphs matter for AI's shift from perception to cognition.
- **Early (~9%–28%)**: Covers knowledge graph schemas and ontology fundamentals, including Schema.org, typical application domains (search, healthcare, finance, e-commerce, chatbots), and the overall technical architecture—from multi-source data ingestion to storage and online/offline fusion.
- **Early–Middle (~28%–44%)**: Dives into the technical stack: knowledge representation (XML, RDF, OWL), description logic (TBox/ABox), and knowledge modeling methodologies (METHONTOLOGY, seven-step method). Explains how to structure unstructured knowledge into machine-readable triples and ontologies.
- **Middle (~44%–60%)**: Moves into knowledge extraction, mining, storage, fusion, retrieval, and reasoning—the operational core of building a knowledge graph. Covers both structured data mapping and NLP-based extraction from unstructured text.
- **Late (~60%–85%)**: Dedicated to hands-on construction: building a general-purpose knowledge graph and a domain-specific knowledge graph from zero to one, with detailed code walkthroughs. Includes tool usage (Protégé, DeepDive, and others) and a comprehensive QA system case study.
- **Ending (~85%–100%)**: Summarizes knowledge graph applications and looks ahead to future directions, including the role of knowledge graphs in achieving artificial general intelligence (AGI).
## 【Key Takeaways】
- **Knowledge graphs are graph-structured knowledge bases** (Early): Nodes represent entities or concepts; edges represent semantic relations. The canonical form is the RDF triple `<subject, predicate, object>`—e.g., `<Yao Ming, nationality, China>`. This simple structure enables machines to store and reason over interconnected knowledge.
- **Data ≠ knowledge** (Early): The DIKW hierarchy shows a progression from raw data to information to knowledge to wisdom. A knowledge graph is what you get when you integrate and abstract information into a structured, relational understanding—not just accumulate facts.
- **Schema is the skeleton; the knowledge graph is the flesh** (Early): Ontologies define the schema (classes, properties, relations), while the knowledge graph instantiates it with real entities. A well-designed schema enables inference—e.g., knowing "a willow is a tree" and "trees are plants" lets you infer "a willow is a plant."
- **RDF and OWL are the standard representation stack** (Middle): XML provides the core syntax; RDF encodes knowledge as triples with IRI identifiers; OWL adds class hierarchies, property constraints, and cardinality rules for richer, more expressive ontologies. Choosing the right representation layer depends on your need for expressiveness vs. simplicity.
- **Knowledge modeling is a structured process, not an art** (Middle): Methods like METHONTOLOGY guide you through defining purpose, acquiring knowledge, conceptualizing, integrating existing ontologies, formalizing, evaluating, and documenting. The key principle: there is no universally "best" model—only what fits your scenario.
- **Storage choice matters for query performance** (Early): While relational databases (MySQL) and NoSQL (MongoDB) can store knowledge graphs, graph databases are far more efficient for multi-hop queries (e.g., "What is the nationality of Yao Ming's wife?"). The interconnected nature of knowledge makes graph-native storage the pragmatic choice.
- **Knowledge graphs are a cornerstone of AGI** (Early): Deep learning alone cannot achieve human-like reasoning and understanding. Knowledge graphs provide the structured, symbolic layer that complements neural approaches—a direction endorsed by researchers like Geoffrey Hinton.
## 【Reading Tips】
- **Skim Chapter 1 if you're already familiar with KG basics** (~0%–28%): The historical background, definitions, and application examples are accessible and well-illustrated, but experienced practitioners can move quickly to the technical chapters.
- **Deep-read Chapter 2 for the conceptual foundation** (~28%–60%): Knowledge representation (XML/RDF/OWL), modeling, extraction, storage, fusion, and reasoning are the intellectual core. Pay special attention to the RDF/OWL code examples—they're the building blocks for everything later.
- **Treat Chapters 4–5 as your implementation playbook** (~60%–85%): These chapters walk through building general and domain-specific knowledge graphs with real code. Follow along with the open-source repository (github.com/zhangkai-ai/build-kg-from-scratch) rather than just reading.
- **Watch for the distinction between attributes and relations**: The authors explicitly treat these as different concepts (unlike some scholars who collapse them). This choice affects how you model your schema—keep it in mind when designing your own knowledge graph.
- **Use Chapter 7's QA system as a capstone project**: The comprehensive question-answering case study ties together extraction, storage, retrieval, and reasoning. If you can build and understand this end-to-end, you've mastered the book's core value.
## 【Coverage Limits】
This guide is based on excerpts covering roughly the first half of the book (Chapters 1–2 and part of 3). Detailed tool walkthroughs (Chapter 3), the full code-level construction of general and domain knowledge graphs (Chapters 4–5), and the QA system case study (Chapter 7) are not covered in depth here.
##
Passage locations
Excerpt 1
.1.3 本体建模工具的选择 3.2 知识抽取工具 3.2.1 DeepDive 3.2.2 其他知识抽取工具 3.2.3 知识抽取工具对比 3.3 知识存储工具 3.3.1 Neo4j 3.3.2 Neo4j安装与部署 3.3.3 可视化 3.3.4 图模型 3.3.5 其他图数据库 参考文献 第4章 从零构建...
View in text
Excerpt 2
ttps://wiki.dbpedia.org/。 [4] https://lod-cloud.net/。 未知 1.3 知识图谱的模式 前文一直在实际数据的层面谈论知识图谱,也谈到了本体被用于为知识图谱定义模式。作为知识图谱中的重要概念,本节我们将深入讨论知识图谱的知识体系——模式的含义和构建。 人类一直在探寻...
View in text
Excerpt 3
454-459. [7] 漆桂林,高桓,吴天星.知识图谱研究进展[J]. 情报工程,2017, 3(1): 4-25. [8] Xiong W, Wu L, Alleva F, Droppo J, Huang X, Stolcke A, The Microsoft 2017 Conversational Spee...
View in text
Excerpt 4
和执行效率。在从Web获取知识的过程中,通常会在不同领域确定关键词,并基于这些关键词对大量网站进行分析,得到需要的知识。在网页分析的过程中,无须专家监督语言模板,也无须特定分析领域的预定义知识(例如领域本体,是知识获取的关键技术之一)。 另一方面,知识同样可以通过人类专家来获取,其中主要的方式包括但不限于由知识工...
View in text