Traverse Link Relation
Description
Combines the functionalities of Traverse relation
and Cross dataset
blocks.
Like Cross dataset
, it allows to map objects from a dataset onto another.
However, rather than comparing their identifiers to determine a mapping,
it relies on a third dataset (a "link dataset" LS
) which contains explicit mappings in the form of additional triples.
The predicate to consider in the link dataset can be specified as a parameter. Mapping links can be traversed forward and backward.
Input
A [OBJ]
: a list of objectsLS [OBJ]
: a dataset containing objects from bothA
andB
and mappings in the form of triplesB [OBJ]
: a list of objects
Output
PAIR [OBJ,OBJ]
: a successful mapping where the first column comes fromA
and the second column comes fromB
resA [OBJ]
: the first column ofPAIR
resB [OBJ]
: the second column ofPAIR
Parameters
Predicate
: the predicate of a graph triple(subject,predicate,object)
Use sub-predicates
: when set totrue
, the values of all sub-predicates are also included. Sub-predicates can be defined in the data with therdfs:subPropertyOf
relation.Direction
: the direction to use when traversing the relation with the givenPredicate
andSOURCE
Forward
:(A, Predicate, B = ?)
Backward
:(A = ?, Predicate, B)
Either
: the result contains the union ofForward
andBackward
results
Output scores can be aggregated and/or normalized.