基于语义查询树的GIS中文查询语句向SQL的转换
Translation of Chinese Query Sentence of GIS to SQL Based on Semantic Meaning Query Tree
-
摘要: 提出了语义查询树的中间语言结构,设计了查询语句向语义查询树的转换算法。为了解决嵌套结构转换的难点,引进了查询块的概念,实现了查询块向SQL语句转换的算法,并将此转换方法与以前的方法进行了比较。实验表明,本文方法是一种比较理想的中文查询语句的理解方法。Abstract: The idea that use the structure of semantic meaning query tree as middle language is put forward.The algorithm of translation Chinese query sentence of GIS into semantic meaning query tree is designed.In order to solve the difficulty of nested structure of SQL,the idea of query block is introduced and the algorithm of changing query block to SQL is realized.The compare of this way with old ones has been done.The experiment shows that the validity has been enhanced.So it is a better way to understand Chinese query sentence.