// load the ontology with its imports and no reasoning
OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
model.read( ont );
// load the model to the reasoner
model.prepare();
// create property and resources to query the reasoner
OntClass Person = model.getOntClass("http://xmlns.com/foaf/0.1/Person");
Property workHomepage = model.getProperty("http://xmlns.com/foaf/0.1/workInfoHomepage");
Property foafName = model.getProperty("http://xmlns.com/foaf/0.1/name");