摘要
由于GIS中文查询语句与空间扩展SQL语句相差很大,直接转化非常困难,所以需要有某种中间语言作为过渡。本文对GIS中文查询系统中间语言的形成进行了研究,提出了以句子栈、实体栈、查询目标栈、查询条件栈和句型字符串为结构的中间语言,制订了空间查询语句的文法规则,设计了GIS中文查询语句到中间语言转换的算法。实验证明,该算法可以完成大部分查询语句到中间语言的转化。
Because there are many differences between the Chinese query sentence of GIS and the extended space Select Query Language sentence, the conversion is difficult. In this paper the middle language in Chinese query systems of GIS is studied. The middle language including the structures of sentence inn, entity inn, query goal inn, query condition inn and the string of sentence is put forward. The grammar rules have been set down, and the algorithm for translating the Chinese query sentences of GIS into the middle language is designed. The experiments show that the algorithm can translate a majority of Chinese query sentences of GIS into the middle language.
出处
《计算机工程与科学》
CSCD
2006年第11期100-102,115,共4页
Computer Engineering & Science
关键词
中间语言
GIS
中文查询
查询目标
查询条件
middle language
geographic information system
Chinese query
query goal
query condition