gets a tensor data structure as a set of frontal slices represented as sparse matrices. The entities as subject has a different id than object and the size of subject and object modes can be different.
getTensor3m(trp, S = NULL, P = NULL, O = NULL)
three columns representing the set of triples (subject, predicate, object). Each row representes one triple.
the predifined list of subjects
The set of predicates
the predifined list of objects
A LIST containing:
set of sparse matrices with ones in the position of triples, each sparse matix represents one predicate (relationship)
the set of entities in the subject domain
the set of entities in the object domain
the set of predicates