# US 2025/0094426 A1 · Controlling access to sampled databases

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

- Number: US 2025/0094426 A1
- Document ID: US20250094426A1
- Status: Published application
- Kind: A1
- Application number: 18/469,219
- Filed: 2023-09-18
- Published: 2025-03-20
- Earliest claimed: 2023-09-18
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Reinhold GEISELHART; Juergen SCHIMPF; Rene BLATH
- Web page: https://patentgrep.com/patent/US20250094426A1

## CPC

- G06F 16/24564: {Applying rules; Deductive queries}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/2462: {Approximate or statistical queries}
- G06F 16/273: {Asynchronous replication or reconciliation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A request to query sampled data of a database is obtained. Based on the request, a determination is made as to whether access to the sampled data of the database is to be allowed. To determine whether access to the sampled data of the database is to be allowed, a query domain defined for the query is checked with a data domain defined for the sampled data. Based on determining that access is to be allowed, access to the sampled data, via the query, is allowed.

## Claims

### Claim 1

A computer program product comprising:
one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media, the program instructions collectively stored comprising:
program instructions to obtain, via a database management system executing within a computing environment, a request to query sampled data of a database, wherein the sampled data is a sampling of selected data and intentionally includes less data than the selected data;
program instructions to determine, using the database management system and based on the request, whether access to the sampled data of the database is allowed, wherein the program instructions to determine whether access to the sampled data of the database is allowed include program instructions to check a query domain defined for the query with a data domain defined for the sampled data, wherein the query domain identifies a selected domain with which the query belongs and the data domain identifies a chosen domain with which the data belongs; and
program instructions to access the sampled data, via the query, based on determining that access is allowed.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein the program instructions to check the query domain defined for the query with the data domain defined for the sampled data include program instructions to compare the query domain with the data domain and based on the query domain having a predefined relationship with the data domain, access to the sampled data is allowed.

### Claim 3 (depends on 2)

The computer program product of claim 2, wherein the predefined relationship comprises equal.

### Claim 4 (depends on 2)

The computer program product of claim 2, wherein the query domain and the data domain are represented as nodes in a domain tree and wherein based on the query domain and the data domain not having the predefined relationship, the program instructions to determine whether access to the sampled data of the database is to be allowed further include program instructions to select a parent domain node of the domain tree and check a parent domain of the parent domain node for a predetermined relationship with the data domain, wherein based on the parent domain of the parent domain node having the predetermined relationship with the data domain, access is allowed.

### Claim 5 (depends on 4)

The computer program product of claim 4, wherein the parent domain node selected is upstream from a node of the query domain in the tree.

### Claim 6 (depends on 4)

The computer program product of claim 4, wherein the domain tree has a plurality of levels and starts at a root level, and a level lower than the root level is defined to accept a number of sampling errors greater than the number of sampling errors at the root level.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the program instructions collectively stored include program instructions to define the data domain.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein a definition of the data domain includes one or more data labels of the sampled data assigned to the data domain.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the one or more data labels are based on at least one of the following consisting of: latency, freshness, sampling error, field of application, accuracy, precision of the data, sampling model, and sampling technique.

### Claim 10 (depends on 1)

The computer program product of claim 1, wherein the sampled data is sampled based on one or more selected domains.

### Claim 11

A computer system comprising:
a memory; and
at least one device coupled to the memory, wherein the computer system is configured to perform a method, the method comprising:
obtaining, via a database management system executing within a computing environment, a request to query sampled data of a database, wherein the sampled data is a sampling of selected data and intentionally includes less data than the selected data;
determining, using the management system and based on the request, whether access to the sampled data of the database is allowed, wherein the determining whether access to the sampled data of the database is allowed includes checking a query domain defined for the query with a data domain defined for the sampled data, wherein the query domain identifies a selected domain with which the query belongs and the data domain identifies a chosen domain with which the data belongs; and
accessing the sampled data, via the query, based on determining that access is allowed.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the checking the query domain defined for the query with the data domain defined for the sampled data includes comparing the query domain with the data domain and based on the query domain having a predefined relationship with the data domain, access to the sampled data is allowed.

### Claim 13 (depends on 12)

The computer system of claim 12, wherein the query domain and the data domain are represented as nodes in a domain tree and wherein based on the query domain and the data domain not having the predefined relationship, the determining whether access to the sampled data of the database is to be allowed further includes selecting a parent domain node of the domain tree and checking a parent domain of the parent domain node for a predetermined relationship with the data domain, wherein based on the parent domain of the parent domain node having the predetermined relationship with the data domain, access is allowed.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the method further includes defining the data domain, wherein a definition of the data domain includes one or more data labels of the sampled data assigned to the data domain, and wherein the one or more data labels are based on at least one of the following consisting of: latency, freshness, sampling error, field of application, accuracy, precision of the data, sampling model, and sampling technique.

### Claim 15 (depends on 11)

The computer system of claim 11, wherein the sampled data is sampled based on one or more selected domains.

### Claim 16

A computer-implemented method comprising:
obtaining, via a database management system executing within a computing environment, a request to query sampled data of a database, wherein the sampled data is a sampling of selected data and intentionally includes less data than the selected data;
determining, using the database management system and based on the request, whether access to the sampled data of the database is allowed, wherein the determining whether access to the sampled data of the database is allowed includes checking a query domain defined for the query with a data domain defined for the sampled data, wherein the query domain identifies a selected domain with which the query belongs and the data domain identifies a chosen domain with which the data belongs; and
accessing the sampled data, via the query, based on determining that access is allowed.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein the checking the query domain defined for the query with the data domain defined for the sampled data includes comparing the query domain with the data domain and based on the query domain having a predefined relationship with the data domain, access to the sampled data is allowed.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein the query domain and the data domain are represented as nodes in a domain tree and wherein based on the query domain and the data domain not having the predefined relationship, the determining whether access to the sampled data of the database is to be allowed further includes selecting a parent domain node of the domain tree and checking a parent domain of the parent domain node for a predetermined relationship with the data domain, wherein based on the parent domain of the parent domain node having the predetermined relationship with the data domain, access is allowed.

### Claim 19 (depends on 16)

The computer-implemented method of claim 16, further including defining the data domain, wherein a definition of the data domain includes one or more data labels of the sampled data assigned to the data domain, and wherein the one or more data labels are based on at least one of the following consisting of: latency, freshness, sampling error, field of application, accuracy, precision of the data, sampling model, and sampling technique.

### Claim 20 (depends on 16)

The computer-implemented method of claim 16, wherein the sampled data is sampled based on one or more selected domains.
