11 Knowledge graph completion

 

This chapter covers

  • Introducing heterogeneous graphs
  • Explaining knowledge graph embeddings
  • Describing knowledge graph completion workflow
  • Examining knowledge graph completion results

Chapter 10 was an introduction to link prediction and completion techniques. The difference between link prediction and completion is that the first is a workflow to predict future links, while the latter deals with predicting missing links. However, in practice, link prediction and completion workflows are very similar. What wasn’t explicitly mentioned is that the link prediction features used in chapter 10 do not differentiate between various node or relationship types. For example, the number of common neighbors does not differentiate between different relationship or node types. Therefore, the link prediction features used in chapter 10 work best with monopartite or homogeneous graphs. A monopartite or homogenous graph consists of a single node and relationship type. The visualization in figure 11.1 depicts a homogeneous graph that consists of a single node type Stream and a single relationship type SHARED_AUDIENCE.

Figure 11.1 Homogeneous graph consisting of Stream nodes and SHARED_AUDIENCE relationships
11-01

11.1 Knowledge graph embedding model

11.1.1 Triple

11.1.2 TransE

11.1.3 TransE limitations

11.2 Knowledge graph completion

11.2.1 Hetionet

11.2.2 Dataset split

11.2.3 Train a PairRE model

11.2.4 Drug application predictions

11.2.5 Explaining predictions

11.3 Solutions to exercises

Summary

sitemap