# US 2019/0171751 A1 · Context-sensitive data retrieval and conversion

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

- Number: US 2019/0171751 A1
- Document ID: US20190171751A1
- Status: Published application
- Kind: A1
- Application number: 15/831,497
- Filed: 2017-12-05
- Published: 2019-06-06
- Earliest claimed: 2017-12-05
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Nicole Jodie Laurent; Darryl Martin Shakespeare
- Web page: https://patentgrep.com/patent/US20190171751A1

## CPC

- G06F 16/258: {Data format conversion from or to a database}
- G06F 16/244: {Grouping and aggregation}
- G06F 16/24575: {using context}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for context-sensitive data retrieval and conversion are disclosed. A system receives a request for data in a first data format. A first subset of records includes a first subset of data in the first data format. A second subset of the records includes a second subset of data in a second data format. The system determines a context-sensitive operation for converting data. The system transmits a query including an aggregation clause associated with the context-sensitive operation. The system receives aggregated results including: aggregated data from the first subset of records, in the first data format; and aggregated data from the second subset of records, in the second data format. Using the context-sensitive operation, the system converts data from the second data format to the first data format. A response to the request is based on the aggregated data from the first subset of records and the converted aggregated data.

## Claims

### Claim 1

A non-transitory computer readable medium comprising instructions which, when executed by one or more hardware processors, cause performance of operations comprising:
receiving a request to retrieve data from a data repository in a first data format;
wherein a first subset of a plurality of records in the data repository comprises a first subset of the data in the first data format,
wherein a second subset of the plurality of records comprises a second subset of the data in a second data format that is different from the first data format;
determining, based on the request, a first context-sensitive operation for converting at least the second subset of data to the first data format;
transmitting, to the data repository, a query comprising at least one aggregation clause associated with the first context-sensitive operation;
receiving, responsive to the query, a plurality of results aggregated according to the at least one aggregation clause,
wherein a first result in the plurality of results comprises first aggregated data, from the first subset of the plurality of records, in the first data format, and
wherein a second result in the plurality of results comprises second aggregated data, from the second subset of the plurality of records, in the second data format;
converting, using the first context-sensitive operation, the second aggregated data from the second data format to the first data format to obtain first converted aggregated data; and
generating a response to the request, based on the first aggregated data and the first converted aggregated data.

### Claim 2 (depends on 1)

The medium of claim 1,
wherein a third subset of the plurality of records comprises a third subset of the data in a third data format that is different from the first data format and the second data format,
wherein a third result in the plurality of results comprises third aggregated data, from the third subset of the plurality of records, in the third data format,
the operations further comprising:
converting the third aggregated data from the third data format to the first data format to obtain second converted aggregated data,
wherein the response to the request is further based on the second converted aggregated data.

### Claim 3 (depends on 2)

The medium of claim 2, wherein converting the third aggregated data from the third data format to the first data format is performed using a second context-sensitive operation that is different from the first context-sensitive operation.

### Claim 4 (depends on 1)

The medium of claim 1, wherein generating the response to the request comprises aggregating the first aggregated data and the first converted aggregated data to obtain total aggregated data.

### Claim 5 (depends on 1)

The medium of claim 1, wherein the response comprises both the first aggregated data and the second aggregated data.

### Claim 6 (depends on 1)

The medium of claim 1, wherein the response comprises an aggregation of the first aggregated data and the second aggregated data.

### Claim 7 (depends on 1)

The medium of claim 1, wherein the second subset of the plurality of records lacks any explicit identification of the second data format.

### Claim 8 (depends on 1)

The medium of claim 1, wherein the first context-sensitive operation is based at least in part on a plurality of company identifiers stored, respectively, in each record in the plurality of records.

### Claim 9 (depends on 1)

The medium of claim 1, wherein the first context-sensitive operation is based at least in part on a plurality of business unit identifiers stored, respectively, in each record in the plurality of records.

### Claim 10 (depends on 1)

The medium of claim 1, wherein the first context-sensitive operation is based at least in part on a plurality of account identifiers stored, respectively, in each record in the plurality of records.

### Claim 11 (depends on 1)

The medium of claim 1, wherein based on a value of at least one contextual field of a particular record in the plurality of records, the first context-sensitive operation applies either a first conversion rule or a second conversion rule to data in the particular record.

### Claim 12 (depends on 1)

The medium of claim 1, wherein the first data format comprises a first currency and the second data format comprises a second currency.

### Claim 13 (depends on 12)

The medium of claim 12, wherein the request comprises a particular date, wherein converting the second aggregated data from the second currency to the first currency comprises applying a currency conversation rate as of the particular date.

### Claim 14

A system comprising:
one or more hardware processors; and
one or more one or more non-transitory computer-readable media storing instructions, which when executed by the one or more hardware processors, cause execution of operations comprising:
receiving a request to retrieve data from a data repository in a first data format;
wherein a first subset of a plurality of records in the data repository comprises a first subset of the data in the first data format,
wherein a second subset of the plurality of records comprises a second subset of the data in a second data format that is different from the first data format;
determining, based on the request, a first context-sensitive operation for converting at least the second subset of data to the first data format;
transmitting, to the data repository, a query comprising at least one aggregation clause associated with the first context-sensitive operation;
receiving, responsive to the query, a plurality of results aggregated according to the at least one aggregation clause,
wherein a first result in the plurality of results comprises first aggregated data, from the first subset of the plurality of records, in the first data format, and
wherein a second result in the plurality of results comprises second aggregated data, from the second subset of the plurality of records, in the second data format;
converting, using the first context-sensitive operation, the second aggregated data from the
second data format to the first data format to obtain first converted aggregated data; and
generating a response to the request, based on the first aggregated data and the first converted aggregated data.

### Claim 15 (depends on 14)

The system of claim 14,
wherein a third subset of the plurality of records comprises a third subset of the data in a third data format that is different from the first data format and the second data format,
wherein a third result in the plurality of results comprises third aggregated data, from the third subset of the plurality of records, in the third data format,
the operations further comprising:
converting the third aggregated data from the third data format to the first data format to obtain second converted aggregated data,
wherein the response to the request is further based on the second converted aggregated data.

### Claim 16 (depends on 14)

The system of claim 14, wherein converting the third aggregated data from the third data format to the first data format is performed using a second context-sensitive operation that is different from the first context-sensitive operation.

### Claim 17 (depends on 14)

The system of claim 14, wherein generating the response to the request comprises aggregating the first aggregated data and the first converted aggregated data to obtain total aggregated data.

### Claim 18 (depends on 14)

The system of claim 14, wherein the response comprises both the first aggregated data and the second aggregated data.

### Claim 19 (depends on 14)

The system of claim 14, wherein the response comprises an aggregation of the first aggregated data and the second aggregated data.

### Claim 20

A method comprising:
receiving a request to retrieve data from a data repository in a first data format;
wherein a first subset of a plurality of records in the data repository comprises a first subset of the data in the first data format,
wherein a second subset of the plurality of records comprises a second subset of the data in a second data format that is different from the first data format;
determining, based on the request, a first context-sensitive operation for converting at least the second subset of data to the first data format;
transmitting, to the data repository, a query comprising at least one aggregation clause associated with the first context-sensitive operation;
receiving, responsive to the query, a plurality of results aggregated according to the at least one aggregation clause,
wherein a first result in the plurality of results comprises first aggregated data, from the first subset of the plurality of records, in the first data format, and
wherein a second result in the plurality of results comprises second aggregated data, from the second subset of the plurality of records, in the second data format;
converting, using the first context-sensitive operation, the second aggregated data from the second data format to the first data format to obtain first converted aggregated data; and
generating a response to the request, based on the first aggregated data and the first converted aggregated data,
wherein the method is performed by at least one device comprising a hardware processor.
