// create an empty model
Model emptyModel = ModelFactory.createDefaultModel( );
// create an inferencing model using Pellet reasoner
InfModel model = ModelFactory.createInfModel( reasoner, emptyModel );
// read the file
model.read( ont );
// print validation report
ValidityReport report = model.validate();
printIterator( report.getReports(), "Validation Results" );
// print superclasses
Resource c = model.getResource( ns + "MaleStudentWith3Daughters" );
printIterator(model.listObjectsOfProperty(c, RDFS.subClassOf), "All super classes of " + c.getLocalName());
System.out.println();
}