# HeriKGQA: Grounded Knowledge-Graph Question Answering over Cultural Heritage Sensor Data

arXiv: https://arxiv.org/abs/2611.15904 · HTML: https://mlsanity.com/paper/2611.15904/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 10 of its 43 references that are in the map.
- Submitted 11 Nov 2026.

## Builds on (most cited first, 10 of 10)

- [Unifying Large Language Models and Knowledge Graphs: A Roadmap](https://mlsanity.com/paper/2306.08302/) (2023)
- [Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph](https://mlsanity.com/paper/2307.07697/) (2023)
- [FLASK: Fine-grained Language Model Evaluation based on Alignment Skill Sets](https://mlsanity.com/paper/2307.10928/) (2023)
- [Chain-of-Table: Evolving Tables in the Reasoning Chain for Table Understanding](https://mlsanity.com/paper/2401.04398/) (2024)
- [MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL](https://mlsanity.com/paper/2312.11242/) (2023)
- [TableRAG: Million-Token Table Understanding with Language Models](https://mlsanity.com/paper/2410.04739/) (2024)
- [SOSA: A Lightweight Ontology for Sensors, Observations, Samples, and Actuators](https://mlsanity.com/paper/1805.09979/) (2018)
- [PlanCompiler: A Deterministic Compilation Architecture for Structured Multi-Step LLM Pipelines](https://mlsanity.com/paper/2604.13092/) (2026)
- [Digital Twin sensors in cultural heritage applications](https://mlsanity.com/paper/2407.07750/) (2024)
- [SAGA: Schema-Aware Grounding for Agentic Text-to-SPARQL Generation](https://mlsanity.com/paper/2607.14494/) (2026)

## Abstract (arXiv)

Cultural heritage sites are increasingly monitored by sensor networks, but querying their data requires database expertise. Large Language Models (LLMs) offer a natural-language interface, yet over raw sensor records they lose track of which sensor, site, and time each value belongs to, and silently miscompute. We present HeriKGQA, a knowledge-graph question-answering method that confines the LLM to interpreting questions and phrasing answers, leaving computation to SPARQL and deterministic code. Questions are parsed into intents constrained by a heritage ontology aligning W3C SOSA/SSN with CIDOC-CRM, compiled into SPARQL, and answered from query results and temporal, spatial, and anomaly facts derived by a grounding layer, with error correction guarding each LLM step. On 500 questions over real data from five heritage sites, HeriKGQA reaches 99.0% accuracy, 18.2 points above the strongest of three baselines using the same LLM and receiving the same anomaly rules and answer conventions, with comparable answer quality while running almost four times faster. Without grounding, accuracy drops by 12.2 points and on anomaly questions from 99% to 66%. We report lessons from development and live deployment.
