System and method for database query with on demand database query reduction
First Claim
1. A computer program product for managing query creation for querying a database with on demand database query reduction by selectively substituting, replacing, and removing specified variables within a sub-query before they are combined into an expanded query, said computer program product comprising:
- a computer readable medium;
first program instructions responsive to a control document for executing a run-time agent in accordance with a first execution schedule to generate dynamic content by accessing control documents to find a control document ready for execution, with a control document including a user-adjustable second execution schedule controlling when final content is created, and, responsive to said second execution schedule, said run-time agent determining when to run a query document;
said query document including global variables selectively bracketed by first tags identifying a first global variable as a complete replacement variable and by second tags identifying a second global variable as a complete removal string, a global variable being a variable which represents a quantity that is available to be modified by a user prior to runtime, said global variables being code definitions of a sub-query that are applied to form a master query and are manipulated by a substitution and replacement strategy to eventually form new content to a coded subquery, said run-time agent being a segment of code separate from said control document;
second program instructions to build from said query document an expanded query by replacing any variables set off by said first tags with runtime strings, and setting off any unions in said query document;
third program instructions selectively, for each set of second tags, for replacing variables in said string set off by said second tags, or removing said second tags without replacing variables set off by said second tags to restore said string set off by said second tags to normal syntax; and
whereinsaid first, second, and third program instructions are recorded on said medium.
1 Assignment
0 Petitions
Accused Products
Abstract
A database is queried with on demand database query reduction A query document includes global variables selectively set off by first tags identifying a first global variable as a complete replacement variable and by second tags identifying a second global variable as a complete removal string. An agent is provided for building from the query document an expanded query by replacing any variables set off by first tags with runtime strings, setting off any unions in the query document, and selectively replacing any variables set off by second tags and removing the second tags without replacing variables set off by second tags.
-
Citations
10 Claims
-
1. A computer program product for managing query creation for querying a database with on demand database query reduction by selectively substituting, replacing, and removing specified variables within a sub-query before they are combined into an expanded query, said computer program product comprising:
-
a computer readable medium; first program instructions responsive to a control document for executing a run-time agent in accordance with a first execution schedule to generate dynamic content by accessing control documents to find a control document ready for execution, with a control document including a user-adjustable second execution schedule controlling when final content is created, and, responsive to said second execution schedule, said run-time agent determining when to run a query document;
said query document including global variables selectively bracketed by first tags identifying a first global variable as a complete replacement variable and by second tags identifying a second global variable as a complete removal string, a global variable being a variable which represents a quantity that is available to be modified by a user prior to runtime, said global variables being code definitions of a sub-query that are applied to form a master query and are manipulated by a substitution and replacement strategy to eventually form new content to a coded subquery, said run-time agent being a segment of code separate from said control document;second program instructions to build from said query document an expanded query by replacing any variables set off by said first tags with runtime strings, and setting off any unions in said query document; third program instructions selectively, for each set of second tags, for replacing variables in said string set off by said second tags, or removing said second tags without replacing variables set off by said second tags to restore said string set off by said second tags to normal syntax; and
whereinsaid first, second, and third program instructions are recorded on said medium. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A computer system for managing query creation for querying a database recorded on a physical storage medium with on demand database query reduction by selectively substituting, replacing, and removing specified variables within a sub-query before they are combined into an expanded query, comprising:
-
a query document recorded in computer storage with global variables selectively set off by first tags identifying a first global variable as a complete replacement variable and by second tags identifying a second global variable as a complete removal string, a global variable being a variable which represents a quantity that is available to be modified by a user prior to runtime; a computer run-time agent being a segment of code, separate from a control document, executing in accordance with a first execution schedule, for accessing said control document to generate dynamic content, said control document including a user-adjustable second execution schedule and, responsive to said second execution schedule, said run-time agent determining when to run a query document; and a computer agent for building from said query document an expanded query by replacing any variables set off by said first tags with runtime strings, setting off any unions in said query document;
selectively, for each set of second tags, replacing variables in a portion of said string set off by said second tags, or removing said second tags without replacing variables set off by said second tags to restore said portion of said string set off by said second tags to normal syntax, said variables being code definitions of a sub-query that are applied to form a master query and are manipulated by a substitution and replacement strategy to eventually form new content to a coded subquery. - View Dependent Claims (7, 8, 9, 10)
-
Specification