if (t.getSubject().isVariable() && t.getSubject().getName().equals(name)) {
// ... then first find the right relation name...
AttributeSet existing = AttributeSet.createFrom(r.nodeMaker(TripleRelation.SUBJECT));
if (existing != null && existing.attributeNames.equals(attributes.attributeNames)) {
// ... then apply it
r = r.renameSingleRelation(existing.relationName, attributes.relationName);
newRelations.set(i, r);
}
}
if (t.getPredicate().isVariable() && t.getPredicate().getName().equals(name)) {