Implementation of Jena's Graph query handler.