gets a tensor data structure as a set of frontal slices represented as sparse matrices. The entities have the same id as subject and/or object.
getTensor(trp, SO = NULL, P = NULL)
three columns representing the set of triples (subject, predicate, object). Each row representes one triple.
the predifined list of entities
The set of predicates
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 and object domains
the set of predicates