NALSpatial: A Natural Language Interface for Spatial Databases
- 3 January 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Knowledge and Data Engineering
- Vol. 37 (4) , 2056-2070
Abstract
Spatial databases play a vital role in a number of applications ranging from geographic information systems to location-based services. Application tasks typically access underlying spatial data to answer queries. However, non-experts lack the expertise necessary for formulating spatial queries. To fill in this gap, we propose an effective framework that translates natural language queries over spatial data into executable database queries, called NALSpatial. The framework consists of two core phases: (i) natural language understanding and (ii) natural language translation. Phase (i) extracts key entity information, comprehends the query intent and determines the query type by employing natural language processing techniques and deep learning algorithms. The key entities and query type are passed to phase (ii), which makes use of entity mapping rules and structured language models to construct executable database queries. NALSpatial supports dealing with five types of queries including (i) basic queries (e.g. distance and area), (ii) range queries, (iii) nearest neighbor queries, (iv) spatial join queries and (v) aggregation queries. We develop NALSpatial in an open-source extensible database system SECONDO. Extensive experiments show that NALSpatial on average achieves response time of about 2.5 seconds, translatability of 95% and translation precision of 92%, outperforming three state-of-the-art methods.Keywords
Funding Information
- National Natural Science Foundation of China (62472217, U23A20296)
- Opening Project of Key Laboratory of Ministry of Education
- Southwest University of Science and Technology (24KFSK01)
This publication has 52 references indexed in Scilit:
- A probabilistic generative model for tracking multi-knowledge concept mastery probabilityFrontiers of Computer Science, 2024
- Aggregation-based dual heterogeneous task allocation in spatial crowdsourcingFrontiers of Computer Science, 2023
- NALMO: Transforming Queries in Natural Language for Moving Objects DatabasesGeoInformatica, 2023
- Reverse spatial top-k keyword queriesThe VLDB Journal, 2022
- GeoSparkViz: a cluster computing system for visualizing massive-scale geospatial dataThe VLDB Journal, 2021
- How Good Are Modern Spatial Libraries?Data Science and Engineering, 2020
- Pre-trained models for natural language processing: A surveyScience China Technological Sciences, 2020
- Leveraging Domain Context for Question Answering Over Knowledge GraphData Science and Engineering, 2019
- Spatial crowdsourcing: a surveyThe VLDB Journal, 2019
- A comparative survey of recent natural language interfaces for databasesThe VLDB Journal, 2019