if ( ! node.isURI() ) return ;
Node localname = Node.createLiteral(node.getLocalName()) ;
if ( nodeLocalname.isVariable() )
{
// Object is an unbound variable.
Binding b = new BindingMap(input) ;
// Bind a pair for subject and object variables
b.add(Var.alloc(subjVar), node) ;
b.add(Var.alloc(nodeLocalname), localname) ;
bindings.add(b) ;
return ;
}
// Object is a value / bound variable.
if ( ! nodeLocalname.sameValueAs(localname) )
return ;
// Bind subject to this node.
Binding b = BindingFactory.binding(input, subjVar, node) ;
bindings.add(b) ;
}