return new OpBGP(bgp2) ;
}
@Override public Op transform(OpPath opPath)
{
TriplePath tp = opPath.getTriplePath() ;
Node s = tp.getSubject() ;
Node s1 = transform.convert(s) ;
Node o = tp.getObject() ;
Node o1 = transform.convert(o) ;
if ( s1 == s && o1 == o )
// No change.
return super.transform(opPath) ;
Path path = tp.getPath() ;
TriplePath tp2 ;
if ( path != null )
tp2 = new TriplePath(s1, path, o1) ;
else
{
Triple t = new Triple(s1, tp.getPredicate(), o1) ;
tp2 = new TriplePath(t) ;
}
return new OpPath(tp2) ;
}