A White-box/Black-box Dual-modal Structured Query Method for Flood Disaster Spatiotemporal Knowledge Graph Question Answering

Authors

  • Hao Li College of Surveying and Land Information Engineering, Henan Polytechnic University, Jiaozuo 454000, China Author

DOI:

https://doi.org/10.63313/JCSFT.9067

Keywords:

Flood Disaster, Spatiotemporal Knowledge Graph, Large Language Model, React, Cypher, Structured Query

Abstract

Flood disaster emergency question answering (QA) requires both structured fact retrieval and complex compositional reasoning. Existing large language model (LLM)-based knowledge graph QA methods still struggle to balance query flexibility and execution reliability. To address this contradiction, this paper proposes a white-box/black-box dual-modal structured query method for flood disaster spatiotemporal knowledge graph QA. The method takes the ReAct reasoning mechanism as its scheduling core, integrating LLM-generated dynamic Cypher queries (white-box path) and predefined scripted queries (black-box path) into a unified reasoning chain. For standardized, high-frequency fact queries, the system preferentially employs black-box scripts; for tasks involving causal chain tracing, trend statistics, and integrated decision-making, the appropriate query or mixed retrieval path is invoked based on question characteristics. A query routing strategy is designed, and a data flow/control flow separation mechanism is introduced to manage large-scale query results through a "summary–file bypass" approach, alleviating context bloat during multi-round reasoning. Based on a flood disaster spatiotemporal knowledge graph and emergency response plan corpus, 30 test questions are constructed around three complex task types—causal analysis, trend assessment, and integrated decision-making—with current status query cases used to validate the standard script path. Experimental results show that the dual-modal method achieves a 100% query success rate, 98.3% answer accuracy, and an average reasoning round count of 1.47, outperforming both the pure white-box and pure black-box methods overall.

References

[1] A. Hogan et al., “Knowledge Graphs,” ACM Comput. Surv., vol. 54, no. 4, pp. 1–37, 2021.

[2] S. Ji, S. Pan, E. Cambria, P. Marttinen, and P. S. Yu, “A Survey on Knowledge Graphs: Representation, Acquisition, and Applications,” IEEE Trans. Neural Netw. Learn. Syst., vol. 33, no. 2, pp. 494–514, Feb. 2022, doi: 10.1109/TNNLS.2021.3070843.

[3] P. Lewis et al., “Retrieval-augmented generation for knowledge-intensive NLP tasks,” in Proceedings of the 34th International Conference on Neural Information Processing Systems, in NIPS ’20. Red Hook, NY, USA: Curran Associates Inc., Dec. 2020, pp. 9459–9474. Accessed: Mar. 09, 2026. [Online]. Available: https://dl.acm.org/doi/10.5555/3495724.3496517

[4] N. Bhutani, X. Zheng, and H. V. Jagadish, “Learning to answer complex questions over knowledge bases with query composition,” in Proceedings of the 28th ACM International Conference on Information and Knowledge Management, in CIKM ’19. New York, NY, USA: Association for Computing Machinery, Nov. 2019, pp. 739–748. doi: 10.1145/3357384.3358033.

[5] B. G. Ascoli, Y. S. R. Kandikonda, and J. D. Choi, “ETM: Modern insights into perspective on text-to-SQL evaluation in the age of large language models,” Jun. 16, 2025, arXiv: arXiv:2407.07313. doi: 10.48550/arXiv.2407.07313.

[6] S. Yao et al., “ReAct: Synergizing Reasoning and Acting in Language Models,” in The Eleventh International Conference on Learning Representations, 2023. [Online]. Available: https://openreview.net/forum?id=WE_vluYUL-X

[7] M. Chen, Z. Tao, W. Tang, T. Qin, R. Yang, and C. Zhu, “Enhancing emergency decision-making with knowledge graphs and large language models,” Int. J. Disaster Risk Reduct., vol. 113, p. 104804, Oct. 2024, doi: 10.1016/j.ijdrr.2024.104804.

[8] W. Chen and J. Fang, “Optimizing AI-driven disaster management through LLMs,” Jul. 17, 2024, Preprints: 2024071446. doi: 10.20944/preprints202407.1446.v1.

[9] L. Cai, X. Mao, Y. Zhou, Z. Long, C. Wu, and M. Lan, “A Survey on Temporal Knowledge Graph: Representation Learning and Applications,” ArXiv Prepr. ArXiv240304782, 2024, [Online]. Available: https://arxiv.org/abs/2403.04782

[10] B. Cai, Y. Xiang, L. Gao, H. Zhang, Y. Li, and J. Li, “Temporal Knowledge Graph Completion: A Survey,” ArXiv Prepr. ArXiv220108236, 2022, [Online]. Available: https://arxiv.org/abs/2201.08236

Downloads

Published

2026-05-06

Issue

Section

Articles

How to Cite

A White-box/Black-box Dual-modal Structured Query Method for Flood Disaster Spatiotemporal Knowledge Graph Question Answering. (2026). Journal of Computer Science and Frontier Technologies, 3(2), 14-29. https://doi.org/10.63313/JCSFT.9067