Generating and executing query language statements from natural language
First Claim
1. A system for generating a query language statement comprising:
- a processor to;
detect a search query corresponding to a document repository;
generate a modified search query by adding atomic tags to the search query, the atomic tags being based on an entity list and semantic rules;
generate enriched tags based on combinations of atomic tags and any previously identified enriched tags and add the generated enriched tags to the modified search query;
generate a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generate a second set of conditions based on free-text conditions, the second set of conditions to correspond to terms in the search query that are not associated with any of the first set of conditions;
reconcile the first set of conditions based on identified contradictions;
generate the query language statements corresponding to the search query, the query language statements based in part on the first set of conditions and the second set of conditions; and
display a plurality of documents from the document repository that satisfy the query language statements, whereinthe generating the query language statements comprises;
joining at least two queries for documents of a same type with a logical disjunction or at least two queries for documents of a different type with a logical conjunction.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques for generating query language statements for a document repository are described herein. An example method includes detecting a search query corresponding to a document repository and generating a modified search query by adding atomic tags to the search query, the atomic tags being based on prior knowledge obtained by static analysis of the document repository and semantic rules. The method also includes generating enriched tags based on combinations of the atomic tags and any previously identified enriched tags and generating a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generating a second set of conditions based on free-text conditions. The method also includes generating the query language statements based on the first set of conditions and the second set of conditions and displaying a plurality of documents from the document repository that satisfy the query language statements.
51 Citations
18 Claims
-
1. A system for generating a query language statement comprising:
a processor to; detect a search query corresponding to a document repository; generate a modified search query by adding atomic tags to the search query, the atomic tags being based on an entity list and semantic rules; generate enriched tags based on combinations of atomic tags and any previously identified enriched tags and add the generated enriched tags to the modified search query; generate a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generate a second set of conditions based on free-text conditions, the second set of conditions to correspond to terms in the search query that are not associated with any of the first set of conditions; reconcile the first set of conditions based on identified contradictions; generate the query language statements corresponding to the search query, the query language statements based in part on the first set of conditions and the second set of conditions; and display a plurality of documents from the document repository that satisfy the query language statements, wherein the generating the query language statements comprises; joining at least two queries for documents of a same type with a logical disjunction or at least two queries for documents of a different type with a logical conjunction. - View Dependent Claims (2, 3, 4, 5, 6)
-
7. A computer program product for generating a query language statement, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
-
detect, via the processor, a search query corresponding to a document repository; generate, via the processor, a modified search query by adding atomic tags to the search query, the atomic tags based on prior knowledge obtained by static analysis of the document repository and semantic rules; generate, via the processor, enriched tags based on combinations of the atomic tags and any previously identified enriched tags and add the generated enriched tags to the modified search query; generate, via the processor, a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generate a second set of conditions based on free-text conditions, the second set of conditions corresponding to terms in the search query that are not associated with any of the first set of conditions; reconcile, via the processor, the first set of conditions based on identified contradictions; generate, via the processor, the query language statements corresponding to the search query, the query language statements based in part on the first set of conditions and the second set of conditions; and display, via the processor, a plurality of documents from the document repository that satisfy the query language statements based on a score, wherein the program instructions further cause the processor to join at least two queries for documents of a same type with a logical disjunction or at least two queries for documents of a different type with a logical conjunction. - View Dependent Claims (8, 9, 10)
-
-
11. A system for generating a query language statement comprising:
a processor to; detect a search query corresponding to a document repository; generate semantic rules, each semantic rule indicating an action, the action comprising generating a new atomic or enriched tag or generating a condition; generate a modified search query by adding atomic tags to the search query, the atomic tags being based on an entity list and the semantic rules; generate enriched tags based on combinations of atomic tags and any previously identified enriched tags and add the generated enriched tags to the modified search query; generate a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generate a second set of conditions based on free-text conditions, the second set of conditions to correspond to terms in the search query that are not associated with any of the first set of conditions; reconcile the first set of conditions based on identified contradictions; generate the query language statements corresponding to the search query, the query language statements based in part on the first set of conditions and the second set of conditions; and display a plurality of documents from the document repository that satisfy the query language statements, wherein the generating the query language statements comprises; joining at least two queries for documents of a same type with a logical disjunction or at least two queries for documents of a different type with a logical conjunction. - View Dependent Claims (12, 13, 14, 15)
-
16. A computer program product for generating a query language statement, the computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
-
detect, via the processor, a search query corresponding to a document repository; generate, via the processor, semantic rules, each semantic rule indicating an action, the action comprising generating a new atomic or enriched tag or generating a condition; generate, via the processor, a modified search query by adding atomic tags to the search query, the atomic tags based on prior knowledge obtained by static analysis of the document repository and the semantic rules; generate, via the processor, enriched tags based on combinations of the atomic tags and any previously identified enriched tags and add the generated enriched tags to the modified search query; generate, via the processor, a first set of conditions based on combinations of the atomic tags and the generated enriched tags and generate a second set of conditions based on free-text conditions, the second set of conditions corresponding to terms in the search query that are not associated with any of the first set of conditions; reconcile, via the processor, the first set of conditions based on identified contradictions; generate, via the processor, the query language statements corresponding to the search query, the query language statements based in part on the first set of conditions and the second set of conditions; and display, via the processor, a plurality of documents from the document repository that satisfy the query language statements based on a score, wherein the generating the query language statements comprises; joining at least two queries for documents of a same type with a logical disjunction or at least two queries for documents of a different type with a logical conjunction. - View Dependent Claims (17, 18)
-
Specification