Ontology API
(待译)
Praxis Ontology is your organization’s relation graph: the people, customers, files, tickets and concepts your agents meet, and the facts that connect them. Its vocabulary follows Zep’s graph API — nodes are entities, relations are edges with a fact and two clocks (valid_at / invalid_at for when it was true in the world, created_at / expired_at for when it was recorded). Differences: one graph per organization; node and relation types must be registered first; there is no delete — a relation that stops being true is invalidated and stays queryable at an earlier as_of; content follows the caller’s permission, so a node you may reach but not read comes back restricted with its name only. Writes here are for systems mirroring their own records into the graph. Writing here records structure; it does not give any agent a memory. Agents remember what they live through in their own sessions.
基础地址
https://api.deepraxis.com/ontology/v1
鉴权
Authorization: Bearer <PRAXIS_API_KEY>
端点
- 列出类型 —
GET /ontology/v1/types - 注册类型 —
POST /ontology/v1/types - 读取类型 —
GET /ontology/v1/types/{name} - 列出节点 —
GET /ontology/v1/nodes - 创建节点 —
POST /ontology/v1/nodes - 读取节点 —
GET /ontology/v1/nodes/{node_id} - 更新节点 —
PATCH /ontology/v1/nodes/{node_id} - 读取邻域 —
GET /ontology/v1/nodes/{node_id}/neighborhood - 合并节点 —
POST /ontology/v1/nodes/{node_id}/merge - 列出关系 —
GET /ontology/v1/relations - 创建关系 —
POST /ontology/v1/relations - 读取关系 —
GET /ontology/v1/relations/{relation_id} - 失效关系 —
POST /ontology/v1/relations/{relation_id}/invalidate - 提交变更集 —
POST /ontology/v1/changesets - 检索节点 —
POST /ontology/v1/search