Given a list of SVO (subject-verb-object) tripples and a provided random string generator, this function transforms
each tripple into a pair of nodes (subject & object) connected by a link (verb), each of which contains a surrogate
key generated by the random string generator
Returns
the graph representation of the SVO tripples
Parameters
tripples: string[][]
a list of tripples, each element of which represents a Subject-Predicate-Object unit graph.
randomIdGenerator: (() => string)
the specified random string generator used for ID generation for nodes and links
Given a list of SVO (subject-verb-object) tripples and a provided random string generator, this function transforms each tripple into a pair of nodes (subject & object) connected by a link (verb), each of which contains a surrogate key generated by the random string generator
Returns
the graph representation of the SVO tripples