The invention discloses a rule and path combined
knowledge graph representation learning method, which comprises the following steps of: firstly, extracting a logic rule from a
knowledge graph, and encoding and representing the logic rule; then, on the basis of the rule subjected to encoding representation, completing a relation semantic combination operation in the relation path and establishingsemantic association between the relation pairs; and finally, in combination with the triplet, the relation path vector representation between the entities and the
semantic association constraint between the relation vectors, jointly constructing an
energy equation, and obtaining a minimum
evaluation function. The method has the advantages that not only is the accuracy of relation representation improved, but also
semantic association among the relations is established by the aid of rules, vector representation of the relations with the
semantic association is constrained, more
semantic information is added into the vector representation of the relations, and the precision of the vector representation of the relations is improved.