The above process keeps running until all facts are included in the graph G. Moreover, we use s = (t, k) to represent a subject (i.e., a vertex or an edge) of the knowledge graph G, where t indicates subject type, and k is the index of the corresponding vertex or edge.
we let t = 0 to denote a vertex and let t = 1 to denote an edge.