← All Thoughts← 所有思考
Reasoning & Trust · Part 5
推理与信任 · 第五篇

From WisdomAI to Enterprise Finance: Ontology Defines Meaning, Knowledge Graph Connects Facts

从 WisdomAI 到企业财务:Ontology 定义意义,Knowledge Graph 连接事实

A question about whether one knowledge model could grow across Buddhist texts led me to the semantic architecture enterprise finance needs for trusted analysis.

从一套知识模型能否扩展到更多佛教典籍出发,理解企业财务为何也需要统一语义、可追溯关系与受治理的计算。

JUL 2026 · CHLOE XU2026年7月 · CHLOE XUOntologyKnowledge GraphWisdomAIFinance AI

While defining Concept, Claim, Practice, and Evidence for WisdomAI, I began to worry: if I add more Buddhist texts later, will these node and relationship types still work? If something new is needed, am I extending the ontology—or merely adding knowledge to the graph?

I had previously treated ontology and knowledge graph as two names for roughly the same thing: nodes, relationships, and a visual network. This practical question exposed the distinction I had missed.

Ontology defines the language of the world. A knowledge graph uses that language to record a particular world.

The distinction sounds theoretical until a new text, a disputed interpretation, or a financial exception enters the system. Then it becomes a governance question: is this a new fact, a new category, or evidence that our model of the domain is incomplete?

当我为 WisdomAI 设计 Concept、Claim、Practice 和 Evidence 等节点时,我开始担心:如果未来加入更多佛教典籍,这些节点类型和关系类型还适用吗?如果需要增加新内容,究竟是在扩展 Ontology,还是只是在 Knowledge Graph 中增加知识?

我以前把 Ontology 和 Knowledge Graph 理解成两种相近的说法:都是节点、关系和一张可视化的网。这个真实的项目问题让我发现,两者最重要的区别并不在图长什么样,而在各自承担什么责任。

Ontology 定义“这个世界可以用什么语言表达”;Knowledge Graph 用这套语言记录“这个世界里具体有什么”。

这个区别平时像是理论问题。可一旦系统加入一部新典籍、一种有争议的解释,或一笔财务例外,它马上变成治理问题:这是一个新事实、一个新类别,还是说明我们对领域的建模本身不完整?

The library analogy that made it click

A useful first analogy is a library. The ontology is its shared classification and cataloguing system: which kinds of things can be registered and how authors, texts, traditions, themes, and citations may relate. The knowledge graph is the library's actual catalogue: which books are present, which author wrote each book, and which text cites another.

Parent/child chunking is different again: it describes how one book is divided into reviewable sections and smaller retrieval passages. RAG is the process of finding relevant books and passages for a question.

The analogy has a limit: an ontology does more than classify. It can also define relationship direction, constraints, context, and which inferences are valid.

让我真正理解的图书馆类比

可以先把 Ontology 想成图书馆统一的分类与编目制度:图书馆允许登记哪些类型的对象,作者、典籍、传统、主题和引用之间可以如何关联。Knowledge Graph 则是图书馆实际的馆藏目录:有哪些书、每本书由谁所写、哪部典籍引用了哪一部。

Parent/Child 分段又是另一件事:它解决一本书如何划分成可审核的完整章节,以及更小的检索段落。RAG 则根据问题寻找相关的书与段落。

这个类比也有边界:Ontology 不只负责分类,还可以定义关系方向、约束、适用语境,以及哪些推断能够成立。
Ontology · the contract

Defines possibility

Specifies valid classes, relationships, constraints, and distinctions.

  • A Claim can be supported by Evidence.
  • A Practice can address a Problem.
  • A Boundary can qualify a Claim.
Knowledge Graph · the record

Captures instances

Stores specific approved entities and relationships that exist now.

  • This claim is supported by this passage.
  • This practice addresses this problem.
  • This boundary limits this interpretation.
Ontology · 表达契约

定义什么是可能的

规定有效的类别、关系、约束,以及哪些概念必须被区分。

  • Claim 可以由 Evidence 支持。
  • Practice 可以回应 Problem。
  • Boundary 可以限定 Claim。
Knowledge Graph · 事实记录

保存具体实例

记录目前已经确认的对象,以及它们之间实际存在的关系。

  • 这条 Claim 由这一段原文支持。
  • 这个 Practice 回应这个 Problem。
  • 这项 Boundary 限定这条解释。
ONTOLOGY

Classes: Concept, Claim, Practice, Evidence

Relations: supported_by, addresses, qualified_by

Rules: direction, cardinality, approval boundaries

KNOWLEDGE GRAPH

Claim: “Change begins with recognizing fault”

supported_by → Passage 3.2

qualified_by → “Do not promise worldly reward”

ONTOLOGY

类别:Concept、Claim、Practice、Evidence

关系:supported_by、addresses、qualified_by

规则:方向、基数、审批与边界

KNOWLEDGE GRAPH

Claim:“改变始于先看见自己的过失”

supported_by → 原文段落 3.2

qualified_by → “不得承诺世俗回报”

The ontology should be more stable than instance data, but it still evolves through governed versions. The graph grows continuously as reviewed knowledge is added.
Ontology 应当比实例数据更稳定,但并非永远不变;它通过受治理的版本升级演进,Knowledge Graph 则随着审核后的知识持续增长。

Three layers—not two

The project also forced me to separate domain meaning from engineering representation. An ontology is not the same as the JSON schema used to store it.

实际需要区分的不是两层,而是三层

这个项目也迫使我把领域含义与工程保存方式分开。Ontology 并不等于用于保存它的 JSON Schema。

LayerQuestionWisdomAI example
Domain ontologyWhat kinds of knowledge objects and relations exist?Claim, Practice, Boundary; supported_by, addresses
Knowledge graphWhich specific knowledge claims are currently recorded?This Claim is supported by this Passage.
Engineering schemaHow is the content stored, versioned, and validated?ID, record type, approval status, JSON fields
层次回答的问题WisdomAI 示例
领域 Ontology这个领域存在哪些知识对象与关系?Claim、Practice、Boundary;supported_by、addresses
Knowledge Graph当前记录了哪些具体知识断言?这项 Claim 由这一段 Passage 支持。
Engineering Schema这些内容如何保存、版本化与验证?ID、记录类型、审批状态、JSON 字段

A Buddhist domain reviewer evaluates whether the concepts and relationships are meaningful and accurate. Chloe decides how approved knowledge is represented in data, which fields are required, and how versions and permissions work. The reviewer needs visibility into the structure so omissions can be identified, but does not need to design JSON or databases.

WisdomAI: two parallel tracks, one evidence bridge

In WisdomAI, ontology design and parent/child chunking are parallel—not sequential—workstreams. Chunking preserves where a passage begins, ends, and belongs. Ontology defines how knowledge extracted from that passage can be represented. They meet at Evidence.

SOURCE → PARENT → CHILD → EVIDENCE → CLAIM / CONCEPT / PRACTICE / BOUNDARY

This separation protects two different kinds of truth. Source structure protects textual context; semantic structure protects the meaning of the interpretation. A small retrieval child may help find the passage, but the approved parent preserves enough context to review it. Evidence then anchors every semantic claim back to its source.

The graph does not become true merely because an LLM created an edge. More precisely, a knowledge graph stores concrete assertions—not truth by default. AI may propose that a Practice cultivates a Concept, but that edge remains proposed until a qualified human reviews its Buddhist meaning. Records can move through proposed, reviewed, approved, rejected, and deprecated states; only approved content may support formal answers.

What happens when a new text does not fit?

The goal is not to design a universal Buddhist ontology in advance. A useful core starts small, then learns from controlled exceptions. When a new source arrives, there are three different changes:

  • New instance: a Claim from a new text fits existing classes and relations. Add it to the graph.
  • New context: two traditions interpret the same Concept differently. Add a Tradition or Context qualifier without breaking the core.
  • New domain object: repeated sources show that Practice alone cannot represent prerequisites, obstacles, or dedication. Consider Prerequisite, Obstacle, or Dedication as a subtype, relation, or new class.
  • New core distinction: only when several sources cannot be represented accurately should the core ontology be reviewed and versioned.

This is why ontology is not merely a diagram made before implementation. It is a governed contract that lets the knowledge base grow without silently changing the meaning of old records.

佛教领域审核者判断这些概念和关系在佛法含义上是否成立;Chloe 决定批准后的知识如何被保存、需要哪些字段,以及版本与权限如何运作。领域审核者需要看得见当前结构,以便发现遗漏,但不需要设计 JSON 或数据库。

WisdomAI:两条平行工作线,一座 Evidence 桥梁

在 WisdomAI 中,Ontology 设计与 Parent/Child 分段不是前后串行,而是两条平行工作线。分段解决一段原文从哪里开始、到哪里结束、属于哪个来源;Ontology 解决从原文中提炼出的知识应该如何表达。两条线最终在 Evidence 汇合。

SOURCE → PARENT → CHILD → EVIDENCE → CLAIM / CONCEPT / PRACTICE / BOUNDARY

这种分离保护了两种不同的“真”。Source Structure 保护文本上下文,Semantic Structure 保护解释的含义。较小的 Child 用来检索,经过审核的 Parent 保留足够完整的上下文;Evidence 再把每一项语义判断锚定回原始出处。

一条边不会因为是 LLM 生成的就自动成为事实。更准确地说,Knowledge Graph 保存的是具体断言,而不是天然正确的真相。AI 可以提出某个 Practice cultivates 某个 Concept,但它最初只能处于 proposed 状态。记录可以依次进入 reviewed、approved、rejecteddeprecated;只有 approved 的内容才可以支持正式回答。

如果新典籍放不进现有结构,怎么办?

目标不是提前设计一套包罗万象的佛教 Ontology,而是让最小核心在受控例外中成长。加入新来源时,系统面对的其实是三种不同变化:

  • 新增实例:新典籍中的 Claim 可以使用已有类别和关系表达,加入 Knowledge Graph 即可。
  • 新增语境:不同传统对同一 Concept 有不同解释,增加 Tradition 或 Context 限定,不必破坏核心结构。
  • 新增领域对象:多个来源反复表明 Practice 无法表达修行前提、障碍或回向时,再考虑将 Prerequisite、Obstacle、Dedication 建模为子类型、关系或新类别。
  • 新增核心区别:只有当多个来源都无法被现有模型准确表达时,才审核并升级核心 Ontology 版本。

因此,Ontology 不是开发前画完就结束的图。它是一份受治理的表达契约,让知识库能够增长,却不会在不知不觉中改变旧记录的含义。

QuestionWisdomAIEnterprise finance
What exists?Source, Passage, Claim, Practice, TraditionEntity, Account, Transaction, Contract, Policy
How can it relate?supported_by, addresses, cultivates, qualified_byposted_to, incurred_by, governed_by, authorized_by
What is a graph assertion?This Claim is supported by this Passage.This invoice references this purchase order and was posted as this journal entry.
Who governs meaning?Domain reviewer approves Buddhist semantics.Finance, accounting, legal, and data owners approve business semantics.
问题WisdomAI企业财务管理
世界里有什么?Source、Passage、Claim、Practice、TraditionEntity、Account、Transaction、Contract、Policy
它们如何关联?supported_by、addresses、cultivates、qualified_byposted_to、incurred_by、governed_by、authorized_by
什么是图中的断言?这项 Claim 由这一段 Passage 支持。这张发票引用这张采购订单,并通过这笔会计分录入账。
谁治理语义?领域审核者批准佛教含义。财务、会计、法务与数据负责人批准业务含义。

The same missing layer in enterprise finance

An ERP already contains relationships, but that does not automatically make it an enterprise knowledge graph—and a collection of table definitions does not automatically become an ontology.

Suppose FP&A asks: “Why was professional-services expense for the U.S. entity's ERP project 35% over budget in July 2026?” Before explaining anything, the system must fix the analytical grain: actual ledger, budget version, period, legal entity, cost center, account, project, currency, and whether the view is monthly or year-to-date.

METRIC → SCENARIO → VERSION → PERIOD → ENTITY → COST CENTER → ACCOUNT → PROJECT → CURRENCY → LEDGER

Without this scope, “35% over budget” has no stable financial meaning. The variance is also not an ordinary graph fact. It is a governed calculation with a formula, dimensional scope, source datasets, currency basis, timestamp, and lineage.

Ontology defines what a variance means and which dimensions qualify it. A deterministic metrics layer calculates it. The knowledge graph connects the result to transactions, business context, and possible drivers.

One variance can have several drivers

A 35% unfavorable variance rarely traces to one invoice. It may combine posted invoices, unbilled accruals, prior-period reversals, timing shifts, scope changes, foreign exchange, reallocations, or a budget baseline that omitted committed work.

BUDGET VARIANCE → ACTUAL POSTINGS + ACCRUALS + TIMING + SCOPE CHANGE + CLASSIFICATION + FX + BUDGET BASELINE

The graph may reveal one supporting path—Account 6210 → Journal Entry 2068 → Invoice 7842 → Purchase Order 319 → Vendor A → ERP Project → Contract C-104—but that is one contributor, not the whole explanation. The planning system supplies the approved budget version; the ledger supplies posted actuals; deterministic code calculates the variance; document RAG retrieves the contract, change order, forecast notes, and policy context.

Financial objects that must not be collapsed

A purchase order represents a commitment, not necessarily an expense. An invoice is a vendor claim, not necessarily a posted or paid item. A journal entry recognizes an accounting effect. An accrual can recognize incurred cost before an invoice arrives. A payment settles a payable.

PURCHASE ORDER → COMMITMENT · INVOICE → JOURNAL ENTRY → ACCOUNT BALANCE · ACCRUAL → INCURRED COST · PAYMENT → SETTLEMENT

Ontology preserves these distinctions. The graph records the specific connections and their effective dates. A temporal state—Draft, Submitted, Approved, Posted, Paid, or Reversed—matters because the answer may differ between a current view and a historical close-date view.

Variance analysis and accounting treatment are separate branches

Why spending exceeded budget is a management-accounting question. Whether part of the cost should be capitalized, accrued, reclassified, or expensed is a financial-accounting question. Capitalization may change income-statement recognition, but it does not by itself explain why project commitments exceeded plan.

VARIANCE ANALYSIS → PRICE / VOLUME / TIMING / SCOPE · ACCOUNTING REVIEW → EXPENSE / CAPITALIZE / ACCRUE / RECLASSIFY

The graph may assert that an expense may require review under a capitalization policy. It should not assert that the cost should be capitalized unless an authorized accounting review has approved that treatment.

Approval is not one generic relationship

Business-spend authorization, purchase-order approval, invoice approval, journal approval, payment release, budget change, and accounting-policy judgment are different authorities. Treating them all as approved_by risks turning operational approval into accounting authorization. The model must also preserve segregation of duties among preparer, reviewer, approver, and payment releaser.

The ontology makes cross-system questions expressible. The knowledge graph makes concrete assertions traceable. Governed source systems remain responsible for balances and official records; deterministic services own calculations; authorized people own judgment and execution.

A knowledge graph connects records. An ontology makes those connections mean the same thing across systems, teams, and time.

企业财务管理系统里,也缺少同样的一层

ERP 本身已经包含很多关系,但这不代表它自动成为企业 Knowledge Graph;一组数据库表定义,也不会自动变成 Ontology。

假设 FP&A 询问:“为什么美国实体的 ERP 项目在 2026 年 7 月产生了 35% 的专业服务费用不利差异?”系统在解释之前,必须先固定分析粒度:实际账簿、预算版本、期间、法人实体、成本中心、科目、项目、币种,以及查询的是单月还是年度累计。

指标 → 情景 → 版本 → 期间 → 法人实体 → 成本中心 → 科目 → 项目 → 币种 → 账簿

没有这些口径,“超预算 35%”就没有稳定的财务含义。Variance 也不是一项普通的图事实,而是带有公式、维度范围、来源数据、汇率口径、计算时间与数据血缘的受治理计算结果。

Ontology 定义 Variance 的业务含义和限定维度;确定性指标层负责计算;Knowledge Graph 连接计算结果、具体交易、业务上下文与可能的驱动因素。

一个差异通常有多个驱动因素

35% 的不利差异很少只来自一张发票。它可能同时包含已过账发票、未开票预提、前期预提冲回、项目进度变化、新增服务范围、汇率影响、成本分摊,以及预算基准遗漏的采购承诺。

预算差异 → 实际入账 + 预提 + 时间差异 + 范围变化 + 分类差异 + 汇率 + 预算基准

Knowledge Graph 可能找到其中一条证据路径——科目 6210 → 会计分录 2068 → 发票 7842 → 采购订单 319 → 供应商 A → ERP 项目 → 合同 C-104——但它只是一个驱动因素,不是全部解释。预算系统提供批准后的预算版本,总账提供已过账事实,确定性代码计算差异,文档 RAG 检索合同、变更订单、预测说明与政策上下文。

不能被合并的财务对象

采购订单代表采购承诺,不一定已经形成费用;发票是供应商索款,不一定已经入账或付款;会计分录确认会计影响;预提可以在发票到达前确认已经发生的成本;付款则用于结算应付款项。

采购订单 → 承诺 · 发票 → 会计分录 → 科目余额 · 预提 → 已发生成本 · 付款 → 结算

Ontology 保留这些区别,Knowledge Graph 记录具体连接及其生效时间。Draft、Submitted、Approved、Posted、Paid、Reversed 等时间状态同样重要,因为“当前视图”与“月结日历史视图”可能得到不同答案。

差异分析与会计处理是两条不同分支

为什么费用超预算属于管理会计问题;某项成本应当资本化、预提、重分类还是费用化,属于财务会计问题。资本化可能改变损益表上的确认方式,但它本身不能解释项目采购承诺为什么超过预算。

差异分析 → 价格 / 数量 / 时间 / 范围 · 会计审核 → 费用化 / 资本化 / 预提 / 重分类

Knowledge Graph 可以记录某项费用“根据资本化政策可能需要审核”,但在获得有权限的会计审核之前,不应直接断言该成本“应当资本化”。

审批不能只使用一个通用关系

业务支出授权、采购订单审批、发票审批、会计分录审批、付款释放、预算变更与会计政策判断代表不同权力。全部写成 approved_by,可能让系统把业务审批误解为会计授权。模型还必须保留职责分离,区分制单人、审核人、批准人和付款释放人。

Ontology 让跨系统问题可以被表达;Knowledge Graph 让具体断言可以被追溯;受治理的事实系统负责余额与正式记录;确定性服务负责计算;具有权限的人负责判断与执行。

Knowledge Graph 连接记录;Ontology 让这些连接在不同系统、团队与时间里保持同一个意思。
LayerResponsibility in enterprise finance
ERP / LedgerOfficial postings, balances, document status, and audit trail
Metrics layerGoverned definitions and deterministic calculation of actual, budget, forecast, and variance
OntologyShared meaning of objects, dimensions, relationships, states, and authority
Knowledge graphTraceable assertions connecting transactions, projects, contracts, policies, and people
Human governanceAccounting judgment, policy exceptions, approvals, and real action
层次在企业财务中的责任
ERP/总账正式过账、余额、单据状态与审计轨迹
指标层统一 Actual、Budget、Forecast、Variance 的定义并进行确定性计算
Ontology统一对象、维度、关系、状态与权力的业务含义
Knowledge Graph以可追溯断言连接交易、项目、合同、政策与人员
人工治理负责会计判断、政策例外、审批与真实行动

Why the distinction matters for AI agents

Without ontology, an agent may merge concepts finance must keep separate: invoice date versus posting date, commitment versus expense, cost center versus legal entity, budget owner versus accounting approver, and policy exception versus policy violation.

Without a populated knowledge graph, ontology remains an elegant vocabulary with no concrete evidence to traverse. Without governed metrics, the graph cannot safely calculate balances or variance. The agent needs all three—plus provenance, temporal state, segregation of duties, deterministic controls, and permission boundaries.

为什么这个区别对 AI Agent 很重要?

没有 Ontology,Agent 可能合并财务必须区分的概念:发票日期与过账日期、采购承诺与费用、成本中心与法人实体、预算负责人和会计批准人,以及政策例外与政策违规。

没有填充具体断言的 Knowledge Graph,Ontology 只是一套没有证据可遍历的词汇;没有受治理的指标层,图谱也不能安全地计算余额与差异。Agent 同时需要三者,还需要数据血缘、时间状态、职责分离、确定性控制与权限边界。

Ontology asksWhat kinds of things and relations are valid?
Graph asksWhich specific things and relations are currently known?
Governance asksWho approved them, from what evidence, under which version?
Ontology 追问哪些对象与关系在这个领域中成立?
Knowledge Graph 追问目前确认了哪些具体对象与关系?
Governance 追问由谁依据什么证据、在哪个版本下批准?

The simplest way I now remember the difference is this: ontology is the grammar, the knowledge graph is the set of sentences, and governance determines which sentences the system is allowed to treat as true.

I increasingly believe the hardest part of enterprise AI is not connecting more data. It is deciding what those connections mean, who may confirm them, and under which conditions a system may act on them.

我现在用一句话记住两者的区别:Ontology 是语法,Knowledge Graph 是用这套语法写出的具体句子,而 Governance 决定哪些句子可以被系统当作事实。

我越来越相信,企业 AI 最难的并不是把更多数据连接起来,而是先决定:这些连接究竟代表什么,谁有权确认它们,以及系统在什么条件下可以据此行动。

Written by Chloe Xu · More notes at Thoughts.
作者:Chloe Xu · 在 Thoughts 阅读更多。