# US 2019/0171945 A1 · Context-aware knowledge base system

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

- Number: US 2019/0171945 A1
- Document ID: US20190171945A1
- Status: Published application
- Kind: A1
- Application number: 15/831,412
- Filed: 2017-12-05
- Published: 2019-06-06
- Earliest claimed: 2017-12-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: JATIN GANHOTRA; Cheng Wu
- Web page: https://patentgrep.com/patent/US20190171945A1

## CPC

- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 16/951: Indexing; Web crawling techniques
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for generating a context-aware knowledge base is provided. The method may include extracting document object model (DOM) tag elements associated with one or more webpages. The method may further include identifying and extracting webpage data associated with the extracted DOM tags. The method may further include determining a context associated with the identified and extracted webpage data by detecting and extracting resource description framework (RDF) triplets in candidate DOM tag elements. The method may further include ranking the extracted RDF triplets. The method may also include validating one or more RDF triplets associated with the ranked RDF triplets. The method may further include connecting the validated RDF triplets to a knowledge graph associated with a knowledge base of the one or more webpages.

## Claims

### Claim 1

A method for generating a context-aware knowledge base, the method comprising:
extracting document object model (DOM) tag elements associated with one or more webpages;
identifying and extracting webpage data associated with the extracted DOM tags;
determining a context associated with the identified and extracted webpage data by detecting and extracting resource description framework (RDF) triplets in candidate DOM tag elements;
ranking the extracted RDF triplets;
validating one or more RDF triplets associated with the ranked RDF triplets; and
connecting the validated RDF triplets to a knowledge graph associated with a knowledge base of the one or more webpages.

### Claim 2 (depends on 1)

The method of claim 1, wherein extracting the DOM tag elements associated with the one or more webpages further comprises:
determining a relationship between the extracted DOM tag elements.

### Claim 3 (depends on 1)

The method of claim 1, wherein identifying and extracting the webpage data associated with the extracted DOM tags further comprises:
extracting text associated with the extracted DOM tag elements.

### Claim 4 (depends on 2)

The method of claim 2, wherein determining the context associated with the identified webpage data further comprises:
detecting and extracting the RDF triplets in the candidate DOM tag elements based on an order associated with the determined relationship.

### Claim 5 (depends on 1)

The method of claim 1, wherein ranking the extracted RDF triplets further comprises:
determining a confidence score for the extracted RDF triplets, wherein the confidence score represents a level of connection between an extracted subject and an extracted object associated with the extracted RDF triplets.

### Claim 6 (depends on 1)

The method of claim 1, wherein validating the one or more RDF triplets associated with the ranked RDF triplets further comprises:
generating and setting one or more threshold confidence scores; and
enabling a user to edit and validate the one or more RDF triplets associated with the ranked RDF triplets.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
tracking changes to the validated RDF triplets.

### Claim 8

A computer system for generating a context-aware knowledge base, comprising:
one or more processors, one or more computer-readable memories, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors via at least one of the one or more memories, wherein the computer system is capable of performing a method comprising:
extracting document object model (DOM) tag elements associated with one or more webpages;
identifying and extracting webpage data associated with the extracted DOM tags;
determining a context associated with the identified and extracted webpage data by detecting and extracting resource description framework (RDF) triplets in candidate DOM tag elements;
ranking the extracted RDF triplets;
validating one or more RDF triplets associated with the ranked RDF triplets; and
connecting the validated RDF triplets to a knowledge graph associated with a knowledge base of the one or more webpages.

### Claim 9 (depends on 8)

The computer system of claim 8, wherein extracting the DOM tag elements associated with the one or more webpages further comprises:
determining a relationship between the extracted DOM tag elements.

### Claim 10 (depends on 8)

The computer system of claim 8, wherein identifying and extracting the webpage data associated with the extracted DOM tags further comprises:
extracting text associated with the extracted DOM tag elements.

### Claim 11 (depends on 9)

The computer system of claim 9, wherein determining the context associated with the identified webpage data further comprises:
detecting and extracting the RDF triplets in the candidate DOM tag elements based on an order associated with the determined relationship.

### Claim 12 (depends on 8)

The computer system of claim 8, wherein ranking the extracted RDF triplets further comprises:
determining a confidence score for the extracted RDF triplets, wherein the confidence score represents a level of connection between an extracted subject and an extracted object associated with the extracted RDF triplets.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein validating the one or more RDF triplets associated with the ranked RDF triplets further comprises:
generating and setting one or more threshold confidence scores; and
enabling a user to edit and validate the one or more RDF triplets associated with the ranked RDF triplets.

### Claim 14 (depends on 8)

The computer system of claim 8, further comprising:
tracking changes to the validated RDF triplets.

### Claim 15

A computer program product for generating a context-aware knowledge base, comprising:
one or more computer-readable storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions executable by a processor, the program instructions comprising:
program instructions to extract document object model (DOM) tag elements associated with one or more webpages;
program instructions to identify and extract webpage data associated with the extracted DOM tags;
program instructions to determine a context associated with the identified and extracted webpage data by detecting and extracting resource description framework (RDF) triplets in candidate DOM tag elements;
program instructions to rank the extracted RDF triplets;
program instructions to validate one or more RDF triplets associated with the ranked RDF triplets; and
program instructions to connect the validated RDF triplets to a knowledge graph associated with a knowledge base of the one or more webpages.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the program instructions to extract the DOM tag elements associated with the one or more webpages further comprises:
program instructions to determine a relationship between the extracted DOM tag elements.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program instructions to determine the context associated with the identified webpage data further comprises:
program instructions to detect and extract the RDF triplets in the candidate DOM tag elements based on an order associated with the determined relationship.

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the program instructions to rank the extracted RDF triplets further comprises:
program instructions to determine a confidence score for the extracted RDF triplets, wherein the confidence score represents a level of connection between an extracted subject and an extracted object associated with the extracted RDF triplets.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein the program instructions to validate the one or more RDF triplets associated with the ranked RDF triplets further comprises:
program instructions to generate and set one or more threshold confidence scores; and
program instructions to enable a user to edit and validate the one or more RDF triplets associated with the ranked RDF triplets.

### Claim 20 (depends on 15)

The computer program product of claim 15, further comprising:
program instructions to track changes to the validated RDF triplets.
