To enable the so-called topic-based trust between users, in this paper we (1) propose a mechanism to persist the topic-based trust in a FOAF social network, (2) survey the topic hierarchies suitable for classifying the topics used in the trust model, and (3) propose an algorithm to compute trust with respect to the particular topic.