Skip to main navigation Skip to search Skip to main content

NALSpatial: An Effective Natural Language Transformation Framework for Queries over Spatial Data

  • Mengyi Liu
  • , Xieyang Wang
  • , Jianqiu Xu
  • , Hua Lu

Research output: Chapter in Book/Report/Conference proceedingArticle in proceedingsResearchpeer-review

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 languageEnglish
Title of host publication31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems, ACM SIGSPATIAL GIS 2023
EditorsMaria Luisa Damiani, Matthias Renz, Ahmed Eldawy, Peer Kroger, Mario A. Nascimento
Number of pages4
PublisherAssociation for Computing Machinery
Publication date13 Nov 2023
Article number57
ISBN (Electronic)9798400701689
DOIs
Publication statusPublished - 13 Nov 2023
Event31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems - Hamburg, Germany
Duration: 13 Nov 202316 Nov 2023
Conference number: 31
https://sigspatial2023.sigspatial.org/

Conference

Conference31st ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems
Number31
Country/TerritoryGermany
CityHamburg
Period13/11/202316/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