// problem, and so a query can be written using short class,
// property, individual names we use a short form
// provider. In this case, we'll just use a simple short form
// provider that generates short froms from IRI
// fragments.
ShortFormProvider shortFormProvider = new SimpleShortFormProvider();
// Create the DLQueryPrinter helper class. This will manage the
// parsing of input and printing of results
DLQueryPrinter dlQueryPrinter = new DLQueryPrinter(
new DLQueryEngine(reasoner, shortFormProvider),
shortFormProvider);