Method to generate semantically valid queries in the XQuery language
First Claim
Patent Images
1. A computer implemented method for automatically generating a query to test a query processing engine that processes queries received by the query processing engine, the computer implemented method comprising:
- describing data and occurrence using a sequence type;
matching the data and the occurrence from the sequence type to a sequence type pattern;
automatically generating, by a computer processor, sentences in a query language using the sequence type pattern;
testing an ability of the query processing engine to interpret queries using the sentences that are automatically generated by the computer implemented method;
defining a grammar wherein the grammar uses the sequence type pattern to drive sentence generation by producing a plurality of tokens in the grammar automatically, wherein the plurality of tokens is consistent with the sequence type pattern, and translating the plurality of tokens into a syntactically valid query in a target language automatically; and
defining the sequence type pattern wherein the sequence type pattern abstracts a class of query.
5 Assignments
0 Petitions
Accused Products
Abstract
A computer implemented method, apparatus, and computer usable program code for automatically generating a query. Data and occurrence is described using a sequence type. The data and occurrence from the sequence type are matched to a sequence type pattern. Sentences in a query language are generated automatically using the sequence type pattern for testing an ability of a query processing engine to interpret queries.
105 Citations
15 Claims
-
1. A computer implemented method for automatically generating a query to test a query processing engine that processes queries received by the query processing engine, the computer implemented method comprising:
-
describing data and occurrence using a sequence type; matching the data and the occurrence from the sequence type to a sequence type pattern; automatically generating, by a computer processor, sentences in a query language using the sequence type pattern; testing an ability of the query processing engine to interpret queries using the sentences that are automatically generated by the computer implemented method; defining a grammar wherein the grammar uses the sequence type pattern to drive sentence generation by producing a plurality of tokens in the grammar automatically, wherein the plurality of tokens is consistent with the sequence type pattern, and translating the plurality of tokens into a syntactically valid query in a target language automatically; and defining the sequence type pattern wherein the sequence type pattern abstracts a class of query. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A data processing system comprising:
-
a bus system; a communications system connected to the bus system; a memory connected to the bus system, wherein the memory includes a set of instructions for a XQuery code generator that is operable for automatically generating a query to test a query processing engine that processes queries received by the query processing engine; and a processing unit connected to the bus system, wherein the processing unit executes the set of instructions to describe data and occurrence using a sequence type, match the data and the occurrence from the sequence type to a sequence type pattern, automatically generate sentences in XQuery language using the sequence type pattern, test an ability of the query processing engine to interpret queries using the sentences that are automatically generated, define a grammar wherein the grammar uses the sequence type pattern to drive sentence generation by producing a plurality of tokens in the grammar automatically, wherein the plurality of tokens is consistent with the sequence type pattern, translate the plurality of tokens into a syntactically valid query in a target language automatically, and define the sequence type pattern wherein the sequence type pattern abstracts a class of query. - View Dependent Claims (12, 13)
-
-
14. A computer program product comprising a computer usable medium including computer usable program code stored thereon for automatically generating a query to test a query processing engine that processes queries received by the query processing engine when executed in a memory, the computer program product comprising:
-
computer usable program code for describing data and occurrence using a sequence type; computer usable program code for matching the data and the occurrence from the sequence type to a sequence type pattern; computer usable program code for automatically generating sentences in a query language using the sequence type pattern; computer usable program code for testing an ability of the query processing engine to interpret queries using the sentences that are automatically generated; computer usable program code for defining a grammar wherein the grammar uses the sequence type pattern to drive sentence generation by producing a plurality of tokens in the grammar automatically, wherein the plurality of tokens is consistent with the sequence type pattern, and translating the plurality of tokens into a syntactically valid query in a target language automatically; and computer usable program code for defining the sequence type pattern wherein the sequence type pattern abstracts a class of query. - View Dependent Claims (15)
-
Specification