/**
* Test problem with bindSchema not interacting properly with validation.
*/
public void testBindSchemaValidate() {
Reasoner reasoner = ReasonerRegistry.getOWLReasoner();
Model schema = FileManager.get().loadModel("file:testing/reasoners/bugs/sbug.owl");
Model data = FileManager.get().loadModel("file:testing/reasoners/bugs/sbug.rdf");
// Union version
InfModel infu = ModelFactory.createInfModel(reasoner, data.union(schema));
ValidityReport validity = infu.validate();
assertTrue( ! validity.isValid());
// debug print
// for (Iterator i = validity.getReports(); i.hasNext(); ) {
// System.out.println(" - " + i.next());
// }
// bindSchema version
InfModel inf = ModelFactory.createInfModel(reasoner.bindSchema(schema), data);
validity = inf.validate();
assertTrue( ! validity.isValid());
}