Abstract
Spatial databases play a vital role in many applications that access spatial data via appropriate queries. However, most application users lack the expertise necessary for formulating spatial queries. To fill in this gap, we propose an effective framework called NALSpatial that translates natural language queries over spatial data into executable database queries. NALSpatial consists of two core phases. The natural language understanding phase extracts key entity information, comprehends the query intent and determines the query type. The key entities and query type are passed to the subsequent natural language translation phase, which employs entity mapping rules and structured language models to construct executable database queries accordingly. We implement NALSpatial on the open-source extensible database system SECONDO to support range queries, nearest neighbor queries, spatial joins and aggregation queries. Extensive experiments show that NALSpatial on average achieves response time of about 2.5 seconds, translatability of 95% and translation precision of 92%, outperforming state-of-the-art natural language transformation methods.
| Original language | English |
|---|---|
| Title of host publication | 31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, ACM SIGSPATIAL GIS 2023 |
| Editors | Maria Luisa Damiani, Matthias Renz, Ahmed Eldawy, Peer Kroger, Mario A. Nascimento |
| Number of pages | 4 |
| Publisher | Association for Computing Machinery |
| Publication date | 13 Nov 2023 |
| Article number | 57 |
| ISBN (Electronic) | 9798400701689 |
| DOIs | |
| Publication status | Published - 13 Nov 2023 |
| Event | 31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems - Hamburg, Germany Duration: 13 Nov 2023 → 16 Nov 2023 Conference number: 31 https://sigspatial2023.sigspatial.org/ |
Conference
| Conference | 31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems |
|---|---|
| Number | 31 |
| Country/Territory | Germany |
| City | Hamburg |
| Period | 13/11/2023 → 16/11/2023 |
| Internet address |
Funding
Funding Information: This work is supported by National Natural Science Foundation of China (61972198). Publisher Copyright: © 2023 ACM.
Keywords
- natural language interface
- query processing
- semantic parsing
- spatial database
Citation Styles
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver