reltype set in mergerels

This commit is contained in:
miconis 2020-05-08 15:43:30 +02:00
parent 62ea19f1d3
commit 3420998bb4
1 changed files with 5 additions and 1 deletions

View File

@ -137,10 +137,14 @@ public class SparkCreateMergeRels extends AbstractSparkAction {
}
private Relation rel(String source, String target, String relClass, DedupConfig dedupConf) {
Relation r = new Relation();
String entityType = dedupConf.getWf().getEntityType();
Relation r = new Relation();
r.setSource(source);
r.setTarget(target);
r.setRelClass(relClass);
r.setRelType(entityType + entityType.substring(0, 1).toUpperCase() + entityType.substring(1));
r.setSubRelType("dedup");
DataInfo info = new DataInfo();