# US 2021/0004372 A1 · Supporting joins in directed acyclic graph knowledge bases

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

- Number: US 2021/0004372 A1
- Document ID: US20210004372A1
- Status: Published application
- Kind: A1
- Application number: 16/502,802
- Filed: 2019-07-03
- Published: 2021-01-07
- Earliest claimed: 2019-07-03
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: AMIT ANIL NANAVATI; Birgit Monika Pfitzmann; Anil Maddipatla; Narendra Kumar Agrawal
- Web page: https://patentgrep.com/patent/US20210004372A1

## CPC

- G06F 16/2456: {Join operations}
- G06F 16/248: Presentation of query results
- G06F 16/282: {Hierarchical databases, e.g. IMS, LDAP data stores or Lotus Notes}
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, apparatus, and non-transitory computer readable medium for performing joins on data from hierarchical databases are described. The method, apparatus, and non-transitory computer readable medium may provide for receiving one or more search results from each of a plurality of hierarchical databases, identifying one or more matching fields from each of the search results, joining the search results according to a set of rules for processing related fields to the matching fields, wherein the related fields comprise sibling fields, neighbor fields, ancestor fields, descendant fields, or any combination thereof, and generating one or more combined search results based on the joining.

## Claims

### Claim 1

A method for performing data joins, comprising:
receiving one or more search results from each of a plurality of hierarchical databases;
identifying one or more matching fields from each of the search results;
joining the search results according to a set of rules for processing related fields to the matching fields, wherein the related fields comprise sibling fields, neighbor fields, ancestor fields, descendant fields, or any combination thereof; and
generating one or more combined search results based on the joining.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
identifying a query for each of the hierarchical databases; and
transmitting the corresponding query to each of the hierarchical databases, wherein the search results from each of the hierarchical databases are received in response to the query.

### Claim 3 (depends on 2)

The method of claim 2, wherein;
the query for each of the hierarchical databases comprises a same query.

### Claim 4 (depends on 1)

The method of claim 1, further comprising;
identifying a field name synonym list comprising one or more field name equivalence classes; and
determining that a field name of the one or more matching fields from each of the search results comprises an equivalent field name based on the field name synonym list.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating the field name synonym list based on at least one of the hierarchical databases using a machine learning model.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the one or more fields from each of the search results comprises a common value.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
identifying one or more top level fields from each of the search results; and
setting the top level fields as sibling fields.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
selecting a primary search result and a secondary search result from the search results;
merging matching fields of the primary search result and the secondary search result;
setting siblings of the matching fields of the secondary search result as siblings of the corresponding matching fields of the primary search result; and.
discarding unmatched ancestor fields of the secondary search result.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
selecting a subsequent search result from the search results; and
joining the subsequent search result into a combined search result of all previously merged search results according to the set of rules for processing related fields until each of the search results has been joined.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
displaying the combined search results to a user in response to a query.

### Claim 11 (depends on 10)

The method of claim 10, wherein:
the combined search results are displayed using different colors for data coming from different hierarchical databases.

### Claim 12 (depends on 10)

The method of claim 10, further comprising:
displaying a plurality of field names for each of the matching fields together as a combined field name.

### Claim 13 (depends on 1)

The method of claim 1, wherein:
the combined search results comprise a plurality of distinct combined search results corresponding to a plurality of distinct search results from at least one of the hierarchical databases combined with one or more other search results from another of the hierarchical databases.

### Claim 14 (depends on 1)

The method of claim 1, wherein:
the set of rules for processing related fields specifies that if two arrays each have a matching element then sibling fields of the matching elements become sibling fields of each other.

### Claim 15 (depends on 1)

The method of claim 1, wherein:
the set of rules for processing related fields specifies that children fields of matching elements become sibling fields of each other.

### Claim 16 (depends on 1)

The method of claim 1, wherein:
the set of rules for processing related fields specifies that if a primary search result comprises an array having an element with a first field, and a secondary search result comprises a non-array object with a second a field matching the first field, then sibling fields of the second field become siblings of the first field.

### Claim 17 (depends on 1)

The method of claim 1, wherein:
the set of rules for processing related fields specifies that if a primary search result comprises a non-array object with a first field, and a secondary search result comprises an array haying an element with a second field matching the first field, the second field matching the first field is discarded.

### Claim 18

An apparatus for performing joins on data from hierarchical databases, comprising: a processor and a memory storing instructions and in electronic communication with the processor, the processor being configured to execute the instructions to:
receive one or more search results from each of a plurality of hierarchical databases;
identify one or more matching fields from each of the search results;
join the search results according to a set of rules for processing related fields to the matching fields, wherein the related fields comprise sibling fields, neighbor fields, ancestor fields, descendant fields, or any combination thereof; and
generate one or more combined search results based on the joining.

### Claim 19

A non-transitory computer readable medium storing code for performing joins on data from hierarchical databases, the code comprising instructions executable by a processor to:
receive one or more search results from each of a plurality of hierarchical databases;
identify one or more matching fields from each of the search results;
join the search results according to a set of rules for processing related fields to the matching fields, wherein the related fields comprise sibling fields, neighbor fields, ancestor fields, descendant fields, or any combination thereof; and
generate one or more combined search results based on the joining.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, the code further comprising instructions executable by the processor to:
select a primary search result and a secondary search result from the search results;
merge matching fields of the primary search result and the secondary search result;
set siblings of the matching fields of the secondary search result as siblings of the corresponding matching fields of the primary search result; and
discard unmatched ancestor fields of the secondary search result.
