# US 10,956,510 B2 · Generate a knowledge graph using a search index

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

- Number: US 10,956,510 B2
- Document ID: US10956510B2
- Status: Granted
- Kind: B2
- Application number: 15/726,214
- Filed: 2017-10-05
- Published: 2019-04-11
- Granted: 2021-03-23
- Earliest claimed: 2017-10-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Stephen A. Boxwell; Kyle M. Brake; Keith G. Frost; Stanley J. Vernier
- Web page: https://patentgrep.com/patent/US10956510B2

## CPC

- G06F 16/93: Document management systems
- G06F 16/24575: {using context}
- G06F 16/288: {Entity relationship models}
- G06F 16/3344: {using natural language analysis}
- 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 system comprising a memory storing an inverted index of a corpus of documents, and a processor coupled to the memory and configured to receive a search query, after receiving the search query identify a first subset of documents that include the search query by searching, based on the search query, the inverted index of the corpus of documents, wherein the corpus of documents includes the first subset of documents, process the first subset of documents to identify entities related to the search query and relations between the entities and the search query, and generate a knowledge graph based on the entities and the relations.

## Claims

### Claim 1

A system, comprising:
a memory storing an inverted index of a corpus of documents; and
a processor coupled to the memory and configured to:
receive a search query;
after receiving the search query:
identify a first subset of documents that include the search query by querying, based on the search query, the inverted index of the corpus of documents, wherein the corpus of documents includes the first subset of documents;
process the first subset of documents to identify entities related to the search query and first relations between the entities and the search query by:
identifying sub-passages within the first subset of documents that include the search query; and
performing natural language processing only on the sub-passages to identify the entities and the first relations;
generate a knowledge graph based on the entities and the first relations;
determine a subset of the entities that occur in the first subset of documents greater than a threshold number of occurrences; and
query the inverted index based on the determined subset of the entities.

### Claim 2 (depends on 1)

The system of claim 1, wherein the processor is configured to process the first subset of documents in parallel to identify the entities and the first relations.

### Claim 3 (depends on 1)

The system of claim 1, wherein the processor is configured to process the sub-passages in parallel to identify the entities and the first relations.

### Claim 4 (depends on 1)

The system of claim 1, wherein the processor is further configured to track the number of occurrences of each of the entities in the first subset of documents.

### Claim 5 (depends on 4)

The system of claim 4, wherein the processor is configured to query the inverted index based on the subset of the entities by, for each pair of entities of the subset of the entities, querying the inverted index of the corpus of documents with the pair of entities to identify a second subset of documents that include the pair of entities, and wherein the processor is further configured to, for each pair of the entities of the subset of the entities:
perform natural language processing on the second subset of documents to identify one or more second relations between the pair of entities; and
supplement the knowledge graph to indicate the one or more second relations between the pair of entities.

### Claim 6 (depends on 4)

The system of claim 4, wherein the processor is configured to query the inverted index based on the subset of the entities by, for each pair of entities of the subset of the entities, querying the inverted index of the corpus of documents with the pair of entities to identify a second subset of documents that include the pair of entities, and wherein the processor is further configured to:
identify, within the second subset of documents, second sub-passages that include the pair of entities;
perform natural language processing on the second sub-passages to identify one or more second relations between the pair of entities; and
update the knowledge graph to indicate the one or more second relations between the pair of entities.

### Claim 7 (depends on 1)

The system of claim 1, wherein the inverted index stores correspondences between words and documents of the corpus of documents that include the words, and wherein querying the inverted index of the corpus of documents based on the search query includes querying the inverted index with each word in the search query.

### Claim 8 (depends on 1)

The system of claim 1, wherein at least one entry in the inverted index identifies multiple documents of the corpus of documents.

### Claim 9 (depends on 1)

The system of claim 1, wherein each of the sub-passages is a respective sentence.

### Claim 10

A computer program product for generating a knowledge graph, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to:
receive a search query;
after receiving the search query:
identify a first subset of documents that include the search query by querying, based on the search query, an inverted index of a corpus of documents that includes the first subset of documents;
process the first subset of documents to identify entities related to the search query and first relations between the entities and the search query by:
identifying sub-passages within the first subset of documents that include the search query; and
performing natural language processing on the sub-passages to identify the entities and the first relations;
generate a knowledge graph based on the entities and the relations;
determine a subset of the entities that occur in the first subset of documents greater than a threshold number of occurrences; and
query the inverted index based on the determined subset of the entities.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the first subset of documents includes fewer documents than the corpus of documents.

### Claim 12 (depends on 10)

The computer program product of claim 10, wherein the program instructions are further executable by the computer to cause the computer to track the number of occurrences of each of the entities in the first subset of documents.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the program instructions are executable by the computer to cause the computer to query the inverted index based on the subset of the entities by, for each pair of entities of the subset of the entities, querying the inverted index of the corpus of documents with the pair of entities to identify a second subset of documents that include the pair of entities, and wherein the program instructions are further executable by the computer to cause the computer to:
perform natural language processing on the second subset of documents to identify one or more second relations between the pair of entities; and
update the knowledge graph to indicate the one or more second relations between the pair of entities.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the program instructions are executable by the computer to cause the computer to query the inverted index based on the subset of the entities by, for each pair of entities of the subset of the entities, querying the inverted index of the corpus of documents with the pair of entities to identify a second subset of documents that include the pair of entities, and wherein the program instructions are further executable by the computer to cause the computer to:
identify, within the second subset of documents, second sub-passages that include the pair of entities;
perform natural language processing on the second sub-passages to identify one or more second relations between the pair of entities; and
update the knowledge graph to indicate the one or more second relations between the pair of entities.

### Claim 15 (depends on 10)

The computer program product of claim 10, wherein the inverted index stores correspondences between words and documents of the corpus of documents that include the words, and wherein querying the inverted index of the corpus of documents based on the search query includes querying the inverted index with each word in the search query.

### Claim 16 (depends on 10)

The computer program product of claim 10, wherein at least one entry in the inverted index identifies multiple documents of the corpus of documents.

### Claim 17 (depends on 10)

The computer program product of claim 10, wherein each of the sub-passages is a respective sentence.
