[Vector addition] Knowledge base embedding

Given a triplet of a knowledge graph, (head, relation, tail), I want to implement the following:

embedding of head entity + embedding of relation entity= embedding tail entity

How should I design my model?