• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2006, Vol. 28 ›› Issue (11): 100-102.

• 论文 • 上一篇    下一篇

GIS中文查询系统中间语言的形成研究

徐爱萍[1,2] 曹杰[1]   

  • 出版日期:2006-11-01 发布日期:2010-05-20

  • Online:2006-11-01 Published:2010-05-20

摘要:

由于GIS中文查询语句与空间扩展SQL语句相差很大,直接转化非常困难,所以需要有某种中间语言作为过渡。本文对GIS中文查询系统中间语言的形成进行了研究,提出了以 句子栈、实体栈、查询目标栈、查询条件栈和句型字符串为结构的中间语言,制订了空间查询语句的文法规则,设计了GIS中文查询语句到中间语言转换的算法。实验证明,该算法可以完成大部分查询语句到中间语言的转化。

关键词: 中间语言 GIS 中文查询 查询目标 查询条件

Abstract:

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, e ntity 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.

Key words: (middle language, geographic information system, Chinese query, query goal, query condition)