# US 2021/0342336 A1 · Data Filtering Utilizing Constructed Graph Structure

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

- Number: US 2021/0342336 A1
- Document ID: US20210342336A1
- Status: Published application
- Kind: A1
- Application number: 16/864,785
- Filed: 2020-05-01
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Anubhav Bhatia; Martin Weiss; Oliver Mainka; Ankit Shivhare; Rajarshi Ghosh; Lauren McMullen
- Web page: https://patentgrep.com/patent/US20210342336A1

## CPC

- G06F 16/245: Query processing
- G06F 16/248: Presentation of query results
- G06F 16/212: {with details for data modelling support}
- G06F 16/288: {Entity relationship models}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A global filter allows data filtering using attributes across multiple Analysis Tools (ATs), by broadcasting semantic filter context objects. Upon selecting object attribute values, the filter context object is created with attribute names and values. A processing engine resolves the filter context object to a data object, and then subsequently to target data. A lateral filter finds related entities in a relational database, without having to maintain and/or duplicate all of the data into a graph database. The processing engine resolves lateral filters using an entity graph path calculation conducted in conjunction with the generation of a bootstrapped graph structure. That graph structure is constructed (bootstrapped) utilizing available database schematic information—e.g., pre-calculated (key) relations and metadata read from the relational database. From that information, relationships in the bootstrapped graph structure are determined. Possible paths between entities are used to generate an optimized SQL query to reach target data.

## Claims

### Claim 1

A method comprising:
receiving from a first analysis tool, filter criteria including an attribute of a data corpus stored in a database according to a schema;
receiving from the database, semantic information describing a hierarchy of the schema organized according to an attribute level and a parameter level;
processing the filter criteria and the semantic information to construct a bootstrapped graph structure comprising entities and relationships;
receiving from a second analysis tool, an input comprising a payload parameter;
referencing the bootstrapped graph structure and the input to calculate paths between entities and relationships and generate a SQL query including the parameter;
resolving the SQL query against the database;
receiving from the database, a corresponding query result including the parameter; and
displaying the corresponding query result to a screen of an interface.

### Claim 2 (depends on 1)

A method as in claim 1 wherein the semantic information comprises Primary Key and Foreign Keys of tables of the schema.

### Claim 3 (depends on 1)

A method as in claim 1 wherein the semantic information comprises metadata of tables of the schema.

### Claim 4 (depends on 1)

A method as in claim 1 wherein:
the bootstrapped graph structure is constructed by dynamically changing an earlier bootstrapped graph structure based upon the semantic information; and
the earlier bootstrapped graph structure has a size larger than the bootstrapped graph structure.

### Claim 5 (depends on 4)

A method as in claim 4 wherein the earlier bootstrapped graph structure was constructed based upon additional semantic information from another database.

### Claim 6 (depends on 1)

A method as in claim 1 wherein the filter criteria is created from a global filter context object broadcast to another analysis tool, the global filter context object including the attribute.

### Claim 7 (depends on 6)

A method as in claim 6 wherein:
the database comprises an in-memory database; and
the global filter context object is generated by an in-memory database engine of the in-memory database.

### Claim 8 (depends on 1)

A method as in claim 1 wherein:
the database comprises an in-memory database; and
the bootstrapped graph structure is constructed by an in-memory database engine of the in-memory database.

### Claim 9 (depends on 1)

A method as in claim 1 wherein:
the database comprises an in-memory database; and
the SQL query is generated by an in-memory database engine of the in-memory database.

### Claim 10

A non-transitory computer readable storage medium embodying a computer program for performing a method, said method comprising:
receiving from a first analysis tool, filter criteria including an attribute of a data corpus stored in a database according to a schema;
receiving from the database, semantic information describing a hierarchy of the schema organized according to an attribute level and a parameter level, the semantic information comprising Primary Key and Foreign Keys of tables of the schema;
processing the filter criteria and the semantic information to construct a bootstrapped graph structure comprising entities and relationships;
receiving from a second analysis tool, an input comprising a payload including a parameter;
referencing the bootstrapped graph structure and the input to calculate paths between entities and relationships and generate a SQL query including the parameter;
resolving the SQL query against the database;
receiving from the database, a corresponding query result including the parameter; and
displaying the corresponding query result to a screen of an interface.

### Claim 11 (depends on 10)

A non-transitory computer readable storage medium as in claim 10 wherein the semantic information further comprises metadata of tables of the schema.

### Claim 12 (depends on 10)

A non-transitory computer readable storage medium as in claim 10 wherein:
the bootstrapped graph structure is constructed by dynamically changing an earlier bootstrapped graph structure based upon the semantic information; and
the earlier bootstrapped graph structure has a size larger than the bootstrapped. graph structure.

### Claim 13 (depends on 10)

A non-transitory computer readable storage medium as in claim 10 wherein the filter criteria is created from a global filter context object broadcast to another analysis tool, the global filter context object including the attribute.

### Claim 14 (depends on 10)

A non-transitory computer readable storage medium as in claim 10 wherein:
the database comprises an in-memory database; and
the bootstrapped graph structure is constructed by an in-memory database engine of the in-memory database.

### Claim 15

A computer system comprising:
one or more processors;
a software program, executable on said computer system, the software program configured to cause an in-memory database engine of an in-memory database to:
receive from a first analysis tool, filter criteria including an attribute of a data corpus stored in the in-memory database according to a schema;
receive from the in-memory database, semantic information describing a hierarchy of the schema organized according to an attribute level and a parameter level;
process the filter criteria and the semantic information to construct a bootstrapped graph structure comprising entities and relationships;
receive from a second analysis tool, an input comprising a payload including a parameter;
reference the bootstrapped graph structure and the input to calculate paths between entities and relationships and generate a SQL query including the parameter;
resolve the SQL query against the in-memory database;
receive from the in-memory database, a corresponding query result including the parameter; and
display the corresponding query result to a screen of an interface.

### Claim 16 (depends on 15)

A computer system as in claim 15 wherein the semantic information comprises:
Primary Key and Foreign Keys of tables of the schema; and
metadata of tables of the schema.

### Claim 17 (depends on 15)

A computer system as in claim 15 wherein:
the bootstrapped graph structure is constructed by dynamically changing an earlier bootstrapped graph structure based upon the semantic information; and
the earlier bootstrapped graph structure has a size larger than the bootstrapped graph structure.

### Claim 18 (depends on 15)

A computer system as in claim 15 wherein the earlier bootstrapped graph structure was constructed based upon additional semantic information from another database.

### Claim 19 (depends on 15)

A computer system as in claim 15 wherein the filter criteria is created from a global filter context object broadcast to another analysis tool, the global filter context object including the attribute.

### Claim 20 (depends on 19)

A computer system as in claim 19 wherein the global filter context object is created and broadcast by the in-memory database engine of the in-memory database.
