Share E-Book

从零构建知识图谱:技术、方法与案例 (邵浩、张凯、李方圆、张云柯、戴锡强)(Z-Library)

Author 邵浩, 张凯, 李方圆, 张云柯, 戴锡强

technology
Language English

这是一本能让读者快速从零开始构建工业级知识图谱的著作。作者是知识图谱和自然语言处理领域的专家,本书得到了OpenKG联合创始人王昊奋、清华大学教授李涓子、东南大学教授漆桂林、美团知识图谱团队负责人张富峥、文因互联创始人鲍捷等学界和业界知识图谱扛旗人的一致好评和推荐。 本书不仅详细讲解了知识图谱的技术原理和构建工具,而且还循序渐进地讲解了知识图谱的构建方法、步骤和行业应用。配有大量实战案例,并且开放了源代码,确保读者能学会并落地。 全书一共8章: 第1章介绍了知识图谱的概念、模式、应用场景和技术架构; 第2章围绕知识图谱的技术体系,详细阐述了知识的表示与建模、抽取与挖掘、存储与融合,以及检索与推理; 第3章通过具体的实例介绍了各种知识图谱工具的使用; 第4章和第5章从工业实践的角度讲解了从0到1构建通用知识图谱和领域知识图谱的步骤和方法,并配备详细的代码解读; 第6~7章讲解了知识图谱的具体应用和一个综合性的知识图谱案例——问答系统,进一步指导读者实践; 第8章对知识图谱的未来发展进行了总结和展望。 【作者简介】 邵浩 资深人工智能技术专家,复星集团CEO助理,集团AI业务负责人。曾任vivo人工智能研究院算法专家、技术总监,曾任狗尾草智能科技AI研究院院长,带领团队打造了虚拟生命产品的交互引擎。上海市静安区首届优秀人才,上海市人才发展基金获得者,杭州市高层次人才。中国中文信息学会青年工作委员会委员,语言与知识计算专委会委员,中国计算机学会语音对话与听觉专委会委员,自然语言处理专委会委员。 日本国立九州大学工学博士,亚利桑那州立大学访问学者,曾任上海对外经贸大学副教授,硕士生导师。共发表论文 50余篇,专利十余项,在国内率先出版了聊天机器人和预训练语言模型相关的著作,主持多项国jia级和省部级课题。 张凯 资深AI算法工程师,主要研究方向包括知识图谱、对话系统、推荐系统、机器翻译等,拥有多年算法落地经验。主导构建了开放通用知识图谱七律,参与了《知识图谱评测标准》和《知识图谱白皮书》的编写。聊天机器人专业书籍作者之一。 李方圆 资深AI算法工程师,主要研究方向包括机器翻译、知识图谱和问答系统,具有多年实战项目经验,现任vivo机器翻译团队负责人,主导从零构建机器翻译能力。 张云柯 资深AI算法工程师,中文信息学会会员,硕士毕业于加拿大Queen’s University,曾任职于奇虎360。主要研究方向包括自然语言处理与知识图谱,曾于领域内知名会议发表相关论文,拥有丰富的算法落地经验。 戴锡强 资深AI算法工程师,主要研究方向为知识图谱、对话系统等,参与构建了百科知识图谱,医药领域知识图谱,基于知识图谱的问答系统等,具有丰富的知识图谱落地经验。

Format EPUB
Size 12.6 MB
223
Views
0
Downloads
0.00
Total Donations

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
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

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
Back to List