Toward efficient cross-departmental relational data retrieval: a knowledge-constrained LLM-graph framework for smart cities
The integration and application of multi-sectoral data assets has become critical for effective urban governance. Although most urban datasets reside in relational databases, inherent challenges persist: 1) heterogeneous naming conventions across departments, and 2) systemic data silos obstructing cross-domain integration, which create barriers to precise schema recognition and SQL generation. To address these, we propose a knowledge-constrained, large language model (LLM)-driven framework for urban data query. Our framework implements two modules: (1) An object-oriented abstraction layer that models urban governance entities with graph-based model, establishing multilevel schema relationships; (2) An LLM-powered engine that converts natural language queries into graph traversals and syntactically valid SQL. Experimental results demonstrate:(1) Effective graph representation of multi-departmental schema information through node-edge mappings; (2) Superior performance of GPT-4o with 70.2128% accuracy improvements over baseline. This AI solution breaks down cross-departmental data barriers and aids urban information management decision-making.
Authors
- Xiaolong He
- Xi Kuai (ORCID: https://orcid.org/0000-0002-6340-7452)
- Z. M. Qiu (ORCID: https://orcid.org/0009-0009-2781-9343)
- Xinyue Li (ORCID: https://orcid.org/0000-0003-1972-9021)
- Renjie Gu
Institutions
- Shenzhen University (CN)
Publication Details
- Published
- 2025-08-18
- DOI
- https://doi.org/10.1117/12.3072658
- Primary Topic
- Semantic Web and Ontologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00