arXiv:2506.01232cs.DBcs.AI2025-06中稿 · ISWC26被引 8

用大模型从数据库自动生成语义丰富本体,无需人工干预。

Retrieval-Augmented Generation of Ontologies from Relational Databases

  • 通过检索外部知识增强,迭代生成带溯源的本体片段。
  • 在三个数据库上优于基线,质量指标全面领先。
  • 适合需要自动构建知识图谱的开发者与数据工程师。

从关系型数据库模式生成OWL本体可支持语义互操作性及知识图谱构建、基于本体的数据访问、图学习和自动推理等下游任务。现有方法或需大量专家参与,或生成的本体浅显,仅反映逻辑结构而未能充分捕捉领域语义。我们提出RIGOR(Retrieval-augmented Iterative Generation of RDB Ontologies),一个由大语言模型驱动的流水线,可将关系模式转换为语义丰富的OWL2DL本体,且几乎无需人工干预。针对每张表,RIGOR先生成直接映射以保证模式覆盖,再通过三类来源检索信息:模式上下文与文档、外部领域本体,以及随每个已验证片段逐步增长的动态本体。生成的本体片段(增量本体)由生成模型生成并附带溯源信息,经独立判别模型验证与修正后集成。该过程受外键约束引导,迭代处理所有表直至完整覆盖。在跨两个领域的三个数据库上的实验表明,RIGOR在标准质量指标上持续优于基线方法,且全程无需人工监督。

原文摘要 · Abstract (English)

Deriving OWL ontologies from relational database schemas supports semantic interoperability and downstream tasks such as knowledge graph population, ontology-based data access, graph-based learning, and automated reasoning. Existing approaches either require substantial expert effort or produce shallow ontologies that reflect the logical schema structure but fail to fully capture domain semantics. We present RIGOR (Retrieval-augmented Iterative Generation of RDB Ontologies), an LLM-driven pipeline that converts relational schemas into semantically rich OWL2DL ontologies with minimal human intervention. For each relational table, RIGOR generates a direct mapping to guarantee schema coverage, then enriches it via retrieval from three sources: relational schema context and documentation, external domain ontologies, and an ontology that grows incrementally as each validated fragment is integrated. A Gen-LLM produces provenance-annotated ontology fragments (delta ontologies), which are validated and, when needed, corrected by an independent Judge-LLM before integration. Guided by foreign-key constraints, the process iterates over relational tables until the full schema is covered. Experiments across three databases spanning two domains show that RIGOR consistently outperforms baseline methods across standard quality metrics while requiring no human oversight.

本体生成大模型知识图谱数据库

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。