基于范例的GIS中文查询的SQL推理
SQL Reasoning of GIS Chinese Query Based on Case
-
摘要: 针对已有的中文查询语句机器理解中语义分析复杂和空间属性表名难以确定的问题,研究了推理机制的范例库建立规则和范例的目标相似性、结构相似性和个体相似性,设计了范例推理算法,实现了中文查询语句的SQL转换。测试结果表明,其设计思想正确,推理机制可行。Abstract: GIS Chinese query is to convert Chinese query sentence of GIS into SQL of spatial database through computer understanding.Aiming at the problem of complicated analysis of semanteme and uncertain table name of spatial attribute in current computer understanding of GIS Chinese query,the rule of building a casebase and the target comparability,structure comparability and individual comparability of case in reasoning machine are researched.The algorithm of CBR is designed and the conversion from GIS Chinese query sentence into spatial SQL is realized.The experiment results show that the strategy of CBR is correct and reasoning machine is feasible.