# US 2009/0157606 A1 · Query based rule optimization through rule combination

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0157606 A1
- Document ID: US20090157606A1
- Status: Published application
- Kind: A1
- Application number: 11/954,648
- Filed: 2007-12-12
- Published: 2009-06-18
- Earliest claimed: 2007-12-12
- Assignees: International Business Machines Corporation
- Inventors: Richard Dean Dettinger; Frederick Allyn Kulack; Shannon Everett Wenzel
- Web page: https://patentgrep.com/patent/US20090157606A1

## CPC

- G06N 5/025: Extracting rules from data
- G06F 16/2423: {Interactive query statement specification based on a database schema}
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the invention provide techniques for optimizing the processing of abstract rules included in rule set containers. In one embodiment, a first abstract rule may be identified as having an effect on a second abstract rule of the rule set container. A predicate and an action of the first abstract rule may be used in translating the second abstract rule into an executable rule. The executable rule performs the functionality included in the first and second abstract rules, while only requiring one rule execution in a rule engine. In another embodiment, the first abstract rule may be translated into a rejection query configured to return a rejection set. The second abstract rule may be translated into an executable rule that includes a condition that excludes any records included in the rejection set.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a rule set container storing a plurality of abstract rules, wherein each abstract rule includes (i) a conditional statement and (ii) a consequential statement defining a result returned by an abstract rule for a data record supplied to the abstract rule satisfying the conditional statement;
identifying a first abstract rule, of the plurality of abstract rules, wherein the consequential statement of the first abstract rule specifies to reject data records that satisfy the conditional statement from being processed by other abstract rules, of the plurality of abstract rules;
identifying a second abstract rule, of the plurality of abstract rules, wherein the consequential statement of the second abstract rule specifies an inference message to return for data records that satisfy the conditional statement;
transforming the first abstract rule and the second abstract rule into an executable rule, wherein the executable rule includes the conditional statement of the first and the second abstract rules and the consequential statement of the second abstract rule; and
storing the transformed executable rule for execution against a database query result.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
receiving the database query result, comprising a plurality of data records;
executing the transformed executable rule against the plurality of data records; and
returning the inference message for data records that satisfy the conditional statement of the first and the second abstract rules included in the executable rule.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the conditional statements of the first and second abstract rules are composed from a plurality of logical fields defined in a data abstraction model modeling an underlying physical database.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the rule set container further includes an abstract query composed form the plurality of logical fields defined in the data abstraction model, and further comprising:
transforming the abstract query into an executable query; and
executing the executable query to retrieve a plurality of data records processed by the first and second abstract rules.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein the inference message specifies a recommendation for medical treatment.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein transforming the first and second abstract rules into an executable rule comprises:
retrieving a specification of the first abstract rule and a specification of the second abstract rule in a first computer-readable language; and
transforming the retrieved specifications into a data format configured for a rules engine.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the conditional statement of the first abstract rule included in the executable rule comprises a rejection query, wherein the rejection query may be used to retrieve a plurality of data records to be excluded from processing by the conditional statement second abstract rule included in the executable rule.

### Claim 8

A computer readable storage medium containing a program which, when executed, performs an operation, comprising:
receiving a rule set container storing a plurality of abstract rules, wherein each abstract rule includes (i) a conditional statement and (ii) a consequential statement defining a result returned by an abstract rule for a data record supplied to the abstract rule satisfying the conditional statement;
identifying a first abstract rule, of the plurality of abstract rules, wherein the consequential statement of the first abstract rule specifies to reject data records that satisfy the conditional statement from being processed by other abstract rules, of the plurality of abstract rules;
identifying a second abstract rule, of the plurality of abstract rules, wherein the consequential statement of the second abstract rule specifies an inference message to return for data records that satisfy the conditional statement;
transforming the first abstract rule and the second abstract rule into an executable rule, wherein the executable rule includes the conditional statement of the first and the second abstract rules and the consequential statement of the second abstract rule; and
storing the transformed executable rule for execution against a database query result.

### Claim 9 (depends on 8)

The computer readable storage medium of claim 8, wherein the operation further comprises:
receiving the database query result, comprising a plurality of data records;
executing the transformed executable rule against the plurality of data records; and
returning the inference message for data records that satisfy the conditional statement of the first and the second abstract rules included in the executable rule.

### Claim 10 (depends on 8)

The computer readable storage medium of claim 8, wherein the conditional statements of the first and second abstract rules are composed from a plurality of logical fields defined in a data abstraction model modeling an underlying physical database.

### Claim 11 (depends on 10)

The computer readable storage medium of claim 10, wherein the rule set container further includes an abstract query composed form the plurality of logical fields defined in the data abstraction model, and wherein the operation further comprises:
transforming the abstract query into an executable query; and
executing the executable query to retrieve a plurality of data records processed by the first and second abstract rules.

### Claim 12 (depends on 8)

The computer readable storage medium claim 8, wherein the inference message specifies a recommendation for medical treatment.

### Claim 13 (depends on 8)

The computer readable storage medium of claim 8, wherein transforming the first and second abstract rules into an executable rule comprises:
retrieving a specification of the first abstract rule and a specification of the second abstract rule in a first computer-readable language; and
transforming the retrieved specifications into a data format configured for a rules engine.

### Claim 14 (depends on 8)

The computer readable storage medium of claim 8, wherein the conditional statement of the first abstract rule included in the executable rule comprises a rejection query, wherein the rejection query may be used to retrieve a plurality of data records to be excluded from processing by the conditional statement second abstract rule included in the executable rule.

### Claim 15

A system, comprising:
a processor; and
a memory containing a program, which when executed on the processor, is configured to process an abstract rule by performing the steps of:
receiving a rule set container storing a plurality of abstract rules, wherein each abstract rule includes (i) a conditional statement and (ii) a consequential statement defining a result returned by an abstract rule for a data record supplied to the abstract rule satisfying the conditional statement;
identifying a first abstract rule, of the plurality of abstract rules, wherein the consequential statement of the first abstract rule specifies to reject data records that satisfy the conditional statement from being processed by other abstract rules, of the plurality of abstract rules;
identifying a second abstract rule, of the plurality of abstract rules, wherein the consequential statement of the second abstract rule specifies an inference message to return for data records that satisfy the conditional statement;
transforming the first abstract rule and the second abstract rule into an executable rule, wherein the executable rule includes the conditional statement of the first and the second abstract rules and the consequential statement of the second abstract rule; and
storing the transformed executable rule for execution against a database query result.

### Claim 16 (depends on 15)

The system of claim 15, wherein the steps further comprise:
receiving the database query result, comprising a plurality of data records;
executing the transformed executable rule against the plurality of data records; and
returning the inference message for data records that satisfy the conditional statement of the first and the second abstract rules included in the executable rule.

### Claim 17 (depends on 15)

The system of claim 15, wherein the conditional statements of the first and second abstract rules are composed from a plurality of logical fields defined in a data abstraction model modeling an underlying physical database.

### Claim 18 (depends on 17)

The system of claim 17, wherein the rule set container further includes an abstract query composed form the plurality of logical fields defined in the data abstraction model, and wherein the steps further comprise:
transforming the abstract query into an executable query; and
executing the executable query to retrieve a plurality of data records processed by the first and second abstract rules.

### Claim 19 (depends on 15)

The system of claim 15, wherein the inference message specifies a recommendation for medical treatment.

### Claim 20 (depends on 15)

The system of claim 15, wherein transforming the first and second abstract rules into an executable rule comprises:
retrieving a specification of the first abstract rule and a specification of the second abstract rule in a first computer-readable language; and
transforming the retrieved specifications into a data format configured for a rules engine.

### Claim 21 (depends on 15)

The system of claim 15, wherein the conditional statement of the first abstract rule included in the executable rule comprises a rejection query, wherein the rejection query may be used to retrieve a plurality of data records to be excluded from processing by the conditional statement second abstract rule included in the executable rule.
