Tried Jena Inference API

It works perfectly