# US 2015/0149496 A1 · Executing structured queries on text records of unstructured data

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

- Number: US 2015/0149496 A1
- Document ID: US20150149496A1
- Status: Published application
- Kind: A1
- Application number: 14/611,106
- Filed: 2015-01-30
- Published: 2015-05-28
- Earliest claimed: 2013-07-31
- Assignees: Splunk Inc.
- Applicants: Splunk Inc.
- Inventors: Itay NEEMAN; Bradford H. LOVERING
- Web page: https://patentgrep.com/patent/US20150149496A1

## CPC

- G06F 16/3332: Query translation
- G06F 16/2433: {Query languages}
- G06F 16/3331: Query processing
- G06F 16/338: Presentation of query results
- G06F 16/80: of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML (content-based retrieval of web data G06F16/95)
- G06F 16/9032: Query formulation
- G06F 16/90335: {Query processing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Technologies are described herein for executing queries expressed with reference to a structured query language against unstructured data. A user issues a structured query through a traditional structured data management (“SDM”) application. Upon receiving the structured query, an SDM driver analyzes the structured query and extracts a data structure from the unstructured data, if necessary. The structured query is then converted to an unstructured query based on the extracted data structure. The converted unstructured query may then be executed against the unstructured data. Results from the query are reorganized into structured data utilizing the extracted data structure and are then presented to the user through the SDM application.

## Claims

### Claim 1

A computer-implemented method, comprising:
at a query converter running on a processor, identifying a first set of fields in unstructured data by querying an unstructured data source, the unstructured data source comprising text records, the querying initiated to obtain field identification data from the unstructured data source, each of the fields in the first set of fields corresponding to a portion of text extracted from at least one of the text records, wherein portion of the text extracted is smaller than the text records;
receiving, at the query converter, a structured query corresponding to a structured query language;
using the identified first set of fields, converting the structured query into an unstructured query corresponding to an unstructured query language associated with accessing the unstructured data;
initiating a search on the unstructured data using the unstructured query; and
returning results of the search.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein as a result of initiating the search on the unstructured data using the unstructured query, the unstructured query causes one or more values for one or more fields included in the unstructured query to be extracted as a function of a format of the unstructured data.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising caching the identified first set of fields.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein identifying a first set of fields performs the query on a subset of the unstructured data, and wherein the subset of the unstructured data is of a definable size.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein identifying a first set of fields automatically identifies fields in the unstructured data as a function of formatting of the unstructured data.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the structured query comprises a Structured Query Language (“SQL”) query.

### Claim 7

A computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by a computer, cause the computer to:
at a query converter, identify a first set of fields in unstructured data by querying an unstructured data source, the unstructured data source comprising text records, the querying initiated to obtain field identification data from the unstructured data source, each of the fields in the first set of fields corresponding to a portion of text extracted from at least one of the text records wherein portion of the text extracted is smaller than the text records;
receive, at the query converter, a structured query corresponding to a structured query language;
use the identified first set of fields, converting the structured query into an unstructured query corresponding to an unstructured query language associated with accessing the unstructured data;
initiate a search on the unstructured data using the unstructured query; and
return results of the search.

### Claim 8 (depends on 7)

The computer-readable storage medium of claim 7, wherein as a result of initiating the search on the unstructured data using the unstructured query, the unstructured query causes one or more values for one or more fields included in the unstructured query to be extracted as a function of a format of the unstructured data.

### Claim 9 (depends on 7)

The computer-readable storage medium of claim 7, further comprising computer-executable instructions stored thereupon which, when executed by a computer, cause the computer to:
cache the identified first set of fields.

### Claim 10 (depends on 7)

The computer-readable storage medium of claim 7, wherein the querying of the unstructured data source to identify the first set of fields is performed on a subset of the unstructured data, and wherein the subset of the unstructured data is of a definable size.

### Claim 11 (depends on 7)

The computer-readable storage medium of claim 7, wherein the first set of fields is identified by automatically identifying fields in the unstructured data as a function of formatting of the unstructured data.

### Claim 12 (depends on 7)

The computer-readable storage medium of claim 7, wherein the structured query comprises a Structured Query Language (“SQL”) query.

### Claim 13

A system, comprising:
a processor and instructions in memory coupled to the processor that, when executed on the processor, carry out:
at a query converter, identifying a first set of fields in unstructured data by querying an unstructured data source, the unstructured data source comprising text records, the querying initiated to obtain field identification data from the unstructured data source, each of the fields in the first set of fields corresponding to a portion of text extracted from at least one of the text records, wherein portion of the text extracted is smaller than the text records;
receiving, at the query converter, a structured query corresponding to a structured query language;
using the identified first set of fields, converting the structured query into an unstructured query corresponding to an unstructured query language associated with accessing the unstructured data;
initiating a search on the unstructured data using the unstructured query; and
returning results of the search.

### Claim 14 (depends on 13)

The system of claim 13, wherein as a result of initiating the search on the unstructured data using the unstructured query, the unstructured query causes one or more values for one or more fields included in the unstructured query to be extracted as a function of a format of the unstructured data.

### Claim 15 (depends on 13)

The system of claim 13, wherein the system is further configured to cache the first set of fields.

### Claim 16 (depends on 13)

The system of claim 13, wherein the first set of fields is identified by performing the query on a subset of the unstructured data, and wherein the subset of the unstructured data is of a definable size.

### Claim 17 (depends on 13)

The system of claim 13, wherein the first set of fields is identified by automatically identifying fields in the unstructured data as a function of formatting of the unstructured data.

### Claim 18 (depends on 13)

The system of claim 13, wherein the structured query comprises a Structured Query Language (“SQL”) query.
