# US 2017/0286532 A1 · System and method for generating visual queries in non-relational databases

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

- Number: US 2017/0286532 A1
- Document ID: US20170286532A1
- Status: Published application
- Kind: A1
- Application number: 15/625,906
- Filed: 2017-06-16
- Published: 2017-10-05
- Earliest claimed: 2015-12-04
- Inventors: Eliot Horowitz; Lucas Hrabovsky; Thomas Rueckstiess; Matt Kangas
- Web page: https://patentgrep.com/patent/US20170286532A1

## CPC

- G06F 16/338: Presentation of query results
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 16/2423: {Interactive query statement specification based on a database schema}
- G06F 16/2428: {Query predicate definition using graphical user interfaces, including menus and forms (G06F16/2423 takes precedence)}
- G06F 16/34: Browsing; Visualisation therefor (browsing or visualisation for clustering or classification G06F16/358)
- G06T 11/26: Drawing of charts or graphs
- G06F 3/04842: Selection of displayed objects or displayed text elements (G06F3/0482 takes precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

One aspect relates to generating a unifying virtual schema in a non-relational database. A database is analyzed either in its entirety, or in part by using a sample of the database as a representative portion of the database or database portion as a whole. Common attributes within the database may be identified, ranked and displayed to a user through one or more of various visualizations. In other examples, the user may further refine the way the data is displayed and how much is displayed by interacting with a user interface. Another aspect associates visualizations of common attributes and respective data with executable query language. In one embodiment, selections within the UI generate executable queries for the user.

## Claims

### Claim 1

A user interface for display on a computer system, the user interface comprising:
a user interface component, executed by at least one processor, operable to display at least one user interface, wherein the at least one user interface is configured to:
display and accept information associated with a non-relational database through information displays, including:
a first display configured to accept specification of a subset of data or an entire data set within the non-relational database;
a second display configured to visualize a plurality of common attributes and respective data within data sampled from the subset or entire data set;
wherein the at least one processor is configured to:
generate associations between visualizations of the common attributes, respective data, and query syntax, wherein responsive to selection of one or more of the visualizations of the common attributes or the respective data in the user interface, the at least one processor generates at least an executable portion of a query based on a selected attribute or respective data and a data type associated with the selected attribute or the respective data; and
responsive to specification of the subset of data or the entire data set, evaluate a sample threshold against the size within the specified subset or entire set, and in response to exceeding the sample threshold, sampling within the specified subset or entire set to generate the sampled data from the subset or entire data set.

### Claim 2 (depends on 1)

The user interface of claim 1, further comprising a visual query builder display within the second display, wherein the visual query builder display is configured to display a textual query based on selections made in the second view.

### Claim 3 (depends on 1)

The user interface of claim 1, wherein the user interface component is further configured to generate a management view comprising at least the first display and the second display, wherein the second display is dynamically generated responsive to identified respective data types within the plurality of common attributes.

### Claim 4 (depends on 3)

The user interface of claim 3, wherein the user interface component is further configured to limit the display of the plurality of common attributes responsive to a defined threshold.

### Claim 5 (depends on 1)

The user interface of claim 1, wherein the at least one processor is configured to:
execute any textual query generated from selections in the user interface; and
evaluate the results of the query against the sample threshold.

### Claim 6 (depends on 5)

The user interface of claim 5, wherein the at least one processor is further configured to generate a random sample within the results of the query in response to exceeding the sample threshold.

### Claim 7 (depends on 1)

The user interface of claim 1, wherein the user interface is configured to generate an open range query in response to a selection within a visualization of data of a respective common attribute and drag operation to a portion of the display outside of the visualization.

### Claim 8 (depends on 7)

The user interface of claim 7, wherein the at least one processor is configured to modify the sampled data being visualized responsive to the select and drag operation.

### Claim 9 (depends on 1)

The user interface of claim 1, wherein the user interface is configured to accept a selection within a visualization of data of a respective common attribute and a drag operation outside of the visualization of the data, wherein in response to the selection and the drag operation the user interface is configured to regenerate the visualization of the data to include data encompassed by an expanded range.

### Claim 10 (depends on 8)

The user interface of claim 8, wherein the user interface is configured to visually highlight the data encompassed by the expanded range.

### Claim 11

A system comprising:
at least one processor operatively connected to a memory, the at least one processor when executing is configured to:
receive specification of at least a subset of data within a non-relational database in a user interface display;
evaluate a sample threshold against the size within the at least a subset of data, and in response to exceeding the sample threshold, sample within the at least a subset of data to generate sampled data from the subset or entire data set;
generate a visualization of common attributes and respective data elements from the sampled data; and
generate associations between the visualizations of the common attributes, respective data, and query syntax, wherein responsive to an indication of a selection of one or more of the visualizations of the common attributes or the respective data in a user interface, the at least one processor generates at least an executable portion of a query based on a selected attribute or respective data and a data type associated with the selected attribute or the respective data.

### Claim 12 (depends on 11)

The system of claim 11, wherein the at least one processor is configured to randomly sample the database to create the subset of data.

### Claim 13 (depends on 11)

The system of claim 11, wherein the at least one processor is configured to generate a visual query builder display and display a textual query responsive to selections made in the user interface of the one or more of the visualizations of the common attributes or the respective data.

### Claim 14 (depends on 11)

The system of claim 11, wherein the at least one processor is configured to:
execute a textual query generated from selections in the user interface; and
evaluate the results of the query against the sample threshold.

### Claim 15 (depends on 14)

The system of claim 14, wherein the at least one processor is further configured to generate a random sample within the results of the query in response to exceeding the sample threshold.

### Claim 16 (depends on 15)

The system of claim 15, wherein the at least one processor is configured to generate visualizations for display the user interface, limited to the attributes and respective data of the random sample with the results of the query.

### Claim 17

A method for generating visual queries for a non-relational database, the method comprising acts of:
receiving, by at least one processor coupled to a memory, specification of a subset of data within a non-relational database or the entire non-relational database;
sampling, by the at least one processor, from the subset of data within the non-relational database or from the entire non-relational database;
identifying, by the at least one processor from within the sample, common attributes with which to build a virtual schema; and
generating, by the at least one processor, visualizations of common attributes and respective data from the sampled data, and mappings to the sampled data associated with the common attributes; and
generating by the at least one processor associations between the visualizations of the common attributes, respective data, and query syntax, and wherein responsive to an indication of a selection of one or more of the visualizations of the common attributes or the respective data in the user interface, generating, by the at least one processor, at least an executable portion of a query based on a selected attribute or respective data and a data type associated with the selected attribute or the respective data.

### Claim 18 (depends on 17)

The method of claim 17, wherein the act of sampling, by the at least one processor, from the subset of data within the non-relational database or from the entire non-relational database includes an act of sampling randomly from the subset of data within the non-relational database or from the entire non-relational database.

### Claim 19 (depends on 17)

The method of claim 17, wherein the method further comprises:
generating, by the at least one processor, a visual query builder display; and
displaying, by the at least one processor, a textual query responsive to selections made in the user interface of the one or more of the visualizations of the common attributes or the respective data.

### Claim 20 (depends on 17)

The method of claim 17, wherein the method further comprises:
executing, by the at least one processor, a textual query generated responsive to selections in the user interface; and
evaluating, by the at least one processor, the results of the query against the sample threshold.

### Claim 21 (depends on 20)

The method of claim 20, wherein the method further comprises generating, by the at least one processor, a random sample within the results of the query in response to exceeding the sample threshold.
