I have a set of RDF triplets and I want to put them in clusters using K-Means, but I don't know how to represent words by numerical values for example: I have 3 triplets like
<'name','isa','johan'>
<'name','isa','fred'>
<'sport','isa','football'>
How can I get distance between these triplets?