// }
/** Substitute into quad patterns, and build a map of graph name to lists of triples */
public static MultiMap<Node, Triple> calcTriples(List<Quad> quads, List<Binding> bindings)
{
QueryIterator qIter = new QueryIterPlainWrapper(bindings.iterator()) ;
return subst(quads, qIter) ;
}