error solved when triple patterns in logical optimization are generated and bindingsfactory is not set for them