# US 2022/0283995 A1 · Measuring data quality in a structured database through sql

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

- Number: US 2022/0283995 A1
- Document ID: US20220283995A1
- Status: Published application
- Kind: A1
- Application number: 17/189,944
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: Saudi Arabian Oil Company
- Applicants: Saudi Arabian Oil Company
- Inventors: Mohammed Jebreel Hakami; Ning Li; Paul Lecaillon
- Web page: https://patentgrep.com/patent/US20220283995A1

## CPC

- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 11/3072: {where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting}
- G06F 11/327: {Alarm or error message display}
- G06F 11/3428: {Benchmarking}
- G06F 16/24564: {Applying rules; Deductive queries}
- G06F 16/287: {Visualization; Browsing}
- G06F 2201/80: Database-specific techniques
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some implementations of the present disclosure provide a method that include: accessing a plurality of tables that describe a relational data model for a hierarch of exploration data assets, wherein the relational data model defines the hierarchy of exploration data assets and attributes at each level of the hierarchy, and wherein multiple databases encode the hierarchy of exploration data assets; querying the hierarch of exploration data assets according to one or more data quality rules capable of identifying defects in the hierarchy of exploration data assets; identifying instances of data records that fail to meet the one or more data quality rules; based on the identified instances, calculating one or more data quality metrics for the hierarchy of exploration data assets; and generating an alert that includes: the identified instances of data records, or the calculated one or more data quality metrics.

## Claims

### Claim 1

A computer-implemented method, comprising:
accessing a plurality of tables that describe a relational data model for a hierarch of exploration data assets, wherein the relational data model defines the hierarchy of exploration data assets and attributes at each level of the hierarchy, and wherein multiple databases encode the hierarchy of exploration data assets;
querying the hierarch of exploration data assets according to one or more data quality rules capable of identifying defects in the hierarchy of exploration data assets;
identifying instances of data records that fail to meet the one or more data quality rules;
based on the identified instances, calculating one or more data quality metrics for the hierarchy of exploration data assets; and
generating an alert that includes: the identified instances of data records, or the calculated one or more data quality metrics.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein querying the hierarch of exploration data assets comprises:
running one or more structured query language (SQL) statements to enforce the one or more data quality rule at the hierarch of exploration data assets.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
establishing a connection with the multiple databases that encode the hierarch of exploration data assets.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising:
running a batch job that includes the one or more structured query language (SQL) statements, through the established connection, to monitor the one or more data quality metrics for the hierarchy of exploration data assets encoded by the multiple databases.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, further comprising:
generating a first report showing the one or more data quality metrics for the hierarchy of exploration data assets during a first period; and
based on the one or more data quality metrics for the hierarchy of exploration data assets during a first period, determining a data quality grade, wherein the data quality grade is included in the alert.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising:
generating a second report showing the one or more data quality metrics for the hierarchy of exploration data assets during a second period, wherein the second period is subsequent to the first period; and
based on comparing the one or more data quality metrics from the first report with the one or more data quality metrics from the second report, determining a trend for one or more data quality metrics, wherein the trend is included in the alert.

### Claim 7 (depends on 4)

The computer-implemented method of claim 4, further comprising:
generating a first report showing the one or more data quality metrics for a first database of the multiple databases;
generating a second report showing the one or more data quality metrics a second database of the multiple databases; and
based on comparing the one or more data quality metrics from the first report with the one or more data quality metrics from the second report, determining a comparative quality between the first database and the second database, wherein the comparative quality is included in the alert.

### Claim 8

A computer system comprising one or more processors configured to perform operations of:
accessing a plurality of tables that describe a relational data model for a hierarch of exploration data assets, wherein the relational data model defines the hierarchy of exploration data assets and attributes at each level of the hierarchy, and wherein multiple databases encode the hierarchy of exploration data assets;
querying the hierarch of exploration data assets according to one or more data quality rules capable of identifying defects in the hierarchy of exploration data assets;
identifying instances of data records that fail to meet the one or more data quality rules;
based on the identified instances, calculating one or more data quality metrics for the hierarchy of exploration data assets; and
generating an alert that includes: the identified instances of data records, or the calculated one or more data quality metrics.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein querying the hierarch of exploration data assets comprises:
running one or more structured query language (SQL) statements to enforce the one or more data quality rule at the hierarch of exploration data assets.

### Claim 10 (depends on 9)

The computer system of claim 9, wherein the operations further comprise:
establishing a connection with the multiple databases that encode the hierarch of exploration data assets.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein the operations further comprise:
running a batch job that includes the one or more structured query language (SQL) statements, through the established connection, to monitor the one or more data quality metrics for the hierarchy of exploration data assets encoded by the multiple databases.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the operations further comprise:
generating a first report showing the one or more data quality metrics for the hierarchy of exploration data assets during a first period; and
based on the one or more data quality metrics for the hierarchy of exploration data assets during a first period, determining a data quality grade, wherein the data quality grade is included in the alert.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the operations further comprise:
generating a second report showing the one or more data quality metrics for the hierarchy of exploration data assets during a second period, wherein the second period is subsequent to the first period; and
based on comparing the one or more data quality metrics from the first report with the one or more data quality metrics from the second report, determining a trend for one or more data quality metrics, wherein the trend is included in the alert.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the operations further comprise:
generating a first report showing the one or more data quality metrics for a first database of the multiple databases;
generating a second report showing the one or more data quality metrics a second database of the multiple databases; and
based on comparing the one or more data quality metrics from the first report with the one or more data quality metrics from the second report, determining a comparative quality between the first database and the second database, wherein the comparative quality is included in the alert.

### Claim 15

A non-transitory computer-readable medium comprising software instructions that, when executed by a computer processor, cause the computer processor to perform operations of:
accessing a plurality of tables that describe a relational data model for a hierarch of exploration data assets, wherein the relational data model defines the hierarchy of exploration data assets and attributes at each level of the hierarchy, and wherein multiple databases encode the hierarchy of exploration data assets;
querying the hierarch of exploration data assets according to one or more data quality rules capable of identifying defects in the hierarchy of exploration data assets;
identifying instances of data records that fail to meet the one or more data quality rules;
based on the identified instances, calculating one or more data quality metrics for the hierarchy of exploration data assets; and
generating an alert that includes: the identified instances of data records, or the calculated one or more data quality metrics.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein querying the hierarch of exploration data assets comprises:
running one or more structured query language (SQL) statements to enforce the one or more data quality rule at the hierarch of exploration data assets.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein the operations further comprise:
establishing a connection with the multiple databases that encode the hierarch of exploration data assets.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the operations further comprise:
running a batch job that includes the one or more structured query language (SQL) statements, through the established connection, to monitor the one or more data quality metrics for the hierarchy of exploration data assets encoded by the multiple databases.

### Claim 19 (depends on 18)

The non-transitory computer-readable medium of claim 18, wherein the operations further comprise:
generating a first report showing the one or more data quality metrics for the hierarchy of exploration data assets during a first period; and
based on the one or more data quality metrics for the hierarchy of exploration data assets during a first period, determining a data quality grade, wherein the data quality grade is included in the alert.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the operations further comprise:
generating a second report showing the one or more data quality metrics for the hierarchy of exploration data assets during a second period, wherein the second period is subsequent to the first period; and
based on comparing the one or more data quality metrics from the first report with the one or more data quality metrics from the second report, determining a trend for one or more data quality metrics, wherein the trend is included in the alert.
