cs.AIOct 27, 2026

What Does an Ontology Catch? Curated, LLM-Generated and Data-Derived Ontologies as Checkers of LLM Agents over Knowledge Graphs

Authors: Michal Orzechowski, Rund Tawfiq, Tomasz Kosciolek

Organizations: ACK Cyfronet AGH, Krakow, Poland · AGH University of Krakow, Krakow, Poland · Sano Centre for Computational Medicine, Krakow, Poland

Abstract

LLM agents that answer questions over Web knowledge graphs are increasingly wrapped in checks derived from the graph's ontology, on the assumption that a formal schema makes a reliable judge. Yet a checker can be wrong as well: it can miss errors, and it can flag correct answers and push the agent into "fixing" them. Whether a curated ontology is worth its cost as such a judge, and how it compares with an ontology an LLM writes or a schema mined from the data, is unknown. We make the checker itself the object of study. Across curated, LLM-generated and data-derived ontologies, used as prompt context, as a checker, or both, and across open-weight and proprietary agents on public graphs and a private graph of nearly 10910^{9} triples, we account for what ontology-derived checks catch and what they wrongly flag. We show how each source trades caught errors against false alarms, how a curated schema used as published can contradict its own data, which errors structural checks miss, and whether combining sources or giving the agent the checker's specific feedback pays off. On UniProt, the curated ontology flags more correct answers than either an ontology derived from the data or one an LLM derives from a summary of the data with masked identifiers. On real agent answers, its flags are only marginally more precise than random flags.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Agent-OM: Leveraging LLM Agents for Ontology Matching

    Dec 1, 2023Zhangcheng Qiang, Weiqing Wang, Kerry TaylorSemantic Mapping

  2. Toward Effective and Reliable LLM Agents via Dynamic Ontology

    Aug 24, 2026Xiaohui Zhang, Zequn Sun, Chengyuan Yang +3LLM AgentsLLM Agent Reliability

  3. Towards Automated Ontology Generation from Unstructured Text: A Multi-Agent LLM Approach

    Apr 25, 2026Abid Talukder, Maruf Ahmed Mridul, Oshani SeneviratneMulti-Agent LLM SystemsLLM Agent Orchestration