发明名称 Expanding high level queries
摘要 A received query is modified by identifying one or more words or phrases in the query that have known associations with stored data upon which the query can be executed, determining whether each of the one or more words or phrases is associated with an attribute name corresponding to stored data, determining whether each of the one or more words or phrases is associated with any constraints regarding an attribute name, determining whether each of the one or more words or phrases is associated with a rule regarding structure or syntax of the query, substituting any determined attribute names into the query for each of the respective associated one or more words or phrases, adding any determined constraints to the query limiting a determined attribute name, and applying any determined rules associated with the one or more words or phrases.
申请公布号 US8862609(B2) 申请公布日期 2014.10.14
申请号 US201213630534 申请日期 2012.09.28
申请人 International Business Machines Corporation 发明人 Mohania Mukesh K.;Nidadavolu Raja Sreekanth
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人 Gooshaw Isaac J.
主权项 1. A computer-implemented method for generating a query by modifying a query template, the method comprising: identifying, by operation of one or more computer processors, one or more words in a natural language query that have previously-established associations with stored data upon which the query will be executed, wherein identifying the one or more words in the natural language query further comprises: receiving, by operation of one or more computer processors, the natural language query, the natural language query being formatted to a query template, wherein the query template includes at least one first component and at least one second component, the first component including a predefined action, the second component being modifiable based, at least in part, on the one or more words;determining, by operation of one or more computer processors, at least one link between the one or more words in the natural language query and the at least one second component; modifying, by operation of one or more computer processors, the at least one second component of the query template based, at least in part, on the at least one link, wherein modifying the at least one second component includes adding to the query template a rule that limits possible values for the at least one second component and a name of a database table that includes the stored data upon which the query will be executed; generating a new query by adding one or more values to the query template, wherein the one or more values are added to the query template based, at least in part, on the modification of the at least one second component of the query template and the one or more words in the natural language query; and executing a search based on the new query.
地址 Armonk NY US