WeChat
ai-engineeringbusiness
Original source

什么是Palantir本体论?不难理解,在12306买一次车票就懂了

Summary

Palantir Ontology models enterprise decisions, not data: warehouses/BI record what happened; ontology captures why a decision was made and which rule version justified it—unlike OOP/DDD, which mainly unify business nouns with code.

Six components (dictionary + code + instances): noun (Object Type: station, ticket), verb (Link Type: ticket “covers” interval), property (Property: fare, remaining quota), rule (Function/rule set: student-ticket credentials), action (Action Type: buy/refund/change), instance (Objects: Zhang’s ¥100.5 student ticket).

Three-layer architecture: app layer (UI only—read instances / fire Actions); semantic layer (ontology home—rule checks, read/write channels); transactional + data layer (locks, idempotency, SAGA—speed/stability, not semantics). Ontology is the “brain” (legislation & judgment), not the execution engine (“muscle”).

Four-level internal dictionary: upper layers constrain lower ones—more abstract/stable above, more concrete/changeable below—so domain swaps and lower edits don’t ripple upward.

12306 walkthrough (Beijing South → Shanghai Hongqiao, G1, 2nd class, Sep 30): search separates TrainService (plan/template) from TrainRun (that day’s event); remaining seats are interval ledgers (e.g. 京—济 / 济—宁 / 宁—沪), not a single number—tickets occupy rights over interval×seat-class; submit order runs rules+actions in the semantic layer (student credential, one ticket/person/day/train, contiguous intervals) before checkout/debit in the transactional layer.

Foundry mapping: Object Type / Link Type / Property / Action Type / Function / Marking / Scenario / Lineage align to the above nouns, verbs, rules, permissions, what-if runs, and seat-quota lineage.