Representing a couple of RDF-triples using tensor. How to programming this modeling process using Python?
问题 A question about representing a couple of RDF-triples using tensor. Scenario: A RDF-triple is used to express simple statements about resources, formatting (subject, predicate, object). Suppose I have two predicates, one is play_for, the other is race_for, each of which contains n triples, as follows: 1-st predicate: play_for; n triples: (Ray Allen, play_for, Boston Celtics), (Kobe Bryant, play_for, Lakers), ... For short, (A_i, play for, T_i) for i =1 to n. 2-rd predicate: race_for; n