
adminandClaude Opus 4.8
caacb5a3bf
feat(ontology): parent_id SubclassOf 声明(环/父子互斥守卫+类型闭包+rdfs:subClassOf 导出)
DDL: object_types.parent_id BIGINT REFERENCES object_types(id) ON DELETE SET NULL(GB/T 48000.3-2026 §7.1.1 / 附录 A.1.6-7)。
模型: ObjectType.ParentID *int64(不序列化)+ ParentAPIName string(回显专用)。
入口: objectTypeInput.Parent *string 三态(nil=保持/空=无父/值=设父)。
守卫:
createObjectType 自指 + 父子互斥(checkParentDisjoint)。
updateObjectType 自指 + 环(checkParentCycle,parent 链 ≤32 步)+ 父子互斥(总是检查,即使 in.Parent 未传,沿用现有 parent)。
类型闭包: typeClosure 替换 Task 4 stub,实为 parent_id 链上行至根,深度 32 + visited 防环兜底。
读路径: loadObjectType / listObjectTypes LEFT JOIN object_types par 取 parent_api_name 回显。
导出: schemaTypeExport.ParentAPIName + buildTurtle 类型块追加 rdfs:subClassOf <parentIRI>(taskIRI 已由任务 6 顶部建立)。
Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-09-20 19:24:01 +08:00
..
2026-09-07 11:35:47 +08:00
2026-09-07 18:36:21 +08:00
2026-09-11 18:23:47 +08:00
2026-09-07 11:35:47 +08:00
2026-09-20 17:36:27 +08:00
2026-09-07 14:33:33 +08:00
2026-09-07 10:11:39 +08:00
2026-09-20 19:08:22 +08:00
2026-09-20 15:02:02 +08:00
2026-09-20 19:24:01 +08:00
2026-09-07 10:11:39 +08:00
2026-09-07 11:35:47 +08:00
2026-09-07 11:35:47 +08:00
2026-09-20 19:24:01 +08:00
2026-09-07 18:36:21 +08:00
2026-08-24 13:54:49 +08:00
2026-09-20 15:48:51 +08:00
2026-09-11 18:23:47 +08:00
2026-08-21 17:06:17 +08:00
2026-08-24 14:04:59 +08:00
2026-09-07 11:35:47 +08:00
2026-09-20 15:48:51 +08:00
2026-09-20 19:24:01 +08:00
2026-08-24 14:04:59 +08:00
2026-09-07 11:35:47 +08:00
2026-08-24 17:48:21 +08:00
2026-09-07 18:36:21 +08:00
2026-09-20 19:13:26 +08:00
2026-09-20 15:48:51 +08:00
2026-09-20 19:24:01 +08:00
2026-08-24 13:54:49 +08:00
2026-09-05 15:17:11 +08:00
2026-09-20 17:36:27 +08:00
2026-09-07 10:11:39 +08:00
2026-09-20 19:13:26 +08:00
2026-09-20 15:02:02 +08:00
2026-09-07 16:41:52 +08:00
2026-09-07 17:38:54 +08:00
2026-09-07 18:36:21 +08:00
2026-09-20 16:27:33 +08:00
2026-09-20 19:24:01 +08:00
2026-09-20 19:08:22 +08:00
2026-09-20 19:24:01 +08:00
2026-09-20 18:57:55 +08:00
2026-09-20 18:57:55 +08:00
2026-09-20 19:18:34 +08:00
2026-09-20 19:24:01 +08:00
2026-09-20 18:51:20 +08:00
2026-09-20 18:51:20 +08:00
2026-09-20 16:17:38 +08:00
2026-09-07 14:33:33 +08:00
2026-09-07 11:35:47 +08:00
2026-08-07 14:21:34 +08:00
2026-09-05 15:17:11 +08:00