#751·KAG

[文档请求] 请问是否可以提供 KGDSL 详细语法说明和规则定义示例?

Author: wlzx123Created Jun 5, 2026Updated Aug 16, 2026

OpenSPG 团队您好:

感谢你们在 OpenSPG 和 KAG 项目上的工作。我目前正在学习如何使用 OpenSPG Schema、KGDSL 和 rule 规则定义来构建专业领域知识图谱。

我已经阅读了 README 和部分示例项目,例如 SupplyChain 示例,也注意到 KGDSL 被用于 schema 规则定义和 reasoner 查询中。但是,目前我没有找到一份较为完整、系统的 KGDSL 语法说明文档。

因此想请教一下:是否有官方的 KGDSL 文档、语法参考、示例集合或推荐阅读资料?

Hi OpenSPG team,

Thank you for your excellent work on OpenSPG and KAG. I am currently studying how to use OpenSPG Schema, KGDSL, and rule definitions to build a professional domain knowledge graph.

I have read the README and some example projects, such as the SupplyChain example, and I noticed that KGDSL is used in schema rule definitions and reasoner queries. However, I could not find a complete and systematic document explaining the detailed syntax of KGDSL.

Therefore, I would like to ask whether there is any official KGDSL documentation, grammar reference, example collection, or recommended material.