id = LinkIdFactory.getLinkId(lf1.getLinkUri(), link.getSource().getId(), link.getTarget().getId());
if (link instanceof ObjectPropertyLink)
newLinks.add(new ObjectPropertyLink(id, new Label(lf1.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType()));
else if (link instanceof SubClassLink)
newLinks.add(new SubClassLink(id));
weights.add(lf1.getWeight());
} else if (c < 0) {
sources.add(link.getTarget());
targets.add(link.getSource());
id = LinkIdFactory.getLinkId(lf2.getLinkUri(), link.getSource().getId(), link.getTarget().getId());
if (link instanceof ObjectPropertyLink)
newLinks.add(new ObjectPropertyLink(id, new Label(lf2.getLinkUri()), ((ObjectPropertyLink) link).getObjectPropertyType()));
else if (link instanceof SubClassLink)
newLinks.add(new SubClassLink(id));
weights.add(lf2.getWeight());
} else
continue;