首页> 外国专利> Metadata-based translation of natural language queries into database queries

Metadata-based translation of natural language queries into database queries

机译:基于元数据的自然语言查询转换为数据库查询

摘要

A system may include: a database table, a grammar containing metadata-referencing non-terminals, and metadata mapping the metadata-referencing non-terminals into alternative terms for the table and a column therein. The system may also include a server device configured to: (i) receive a natural language query, the grammar, and the metadata, wherein the natural language query contains a first alternative term for the table and a second alternative term for the column; (ii) parse, using the grammar, the natural language query into a series of terminals and non-terminals including a first metadata-referencing non-terminal that the metadata maps to the first alternative term and a second metadata-referencing non-terminal that the metadata maps to the second alternative term; (iii) identify, based on the first metadata-referencing non-terminal, the table; (iv) identify, based on the second metadata-referencing non-terminal, the column; and (v) generate, based on the table and the column as identified, a database language query.
机译:系统可以包括:数据库表,包含元数据引用非终端的语法,以及将元数据引用的元数据映射到表中的替代术语和其中的列。该系统还可以包括配置为:(i)接收自然语言查询,语法和元数据,其中自然语言查询包含表的第一替代术语和列的第二替代术语; (ii)使用语法解析自然语言查询到一系列终端和非终端,包括第一个元数据引用非终端,使得元数据映射到第一替代术语和第二个元数据引用非终端元数据映射到第二个替代项; (iii)基于第一个元数据引用非终端,表格识别; (iv)根据第二元数据引用非终端,列来识别; (v)基于表格和列为标识的数据库语言查询生成。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号