OWLOntology o = createOnto();
OWLOntologyManager m = o.getOWLOntologyManager();
OWLDatatype datatype = Datatype(IRI("urn:test#datatype"));
declare(o, datatype);
m.addAxiom(o, DatatypeDefinition(datatype, Boolean()));
OWL2RLProfile profile = new OWL2RLProfile();
int expected = 2;
Class[] expectedViolations = { UseOfIllegalAxiom.class,
UseOfIllegalDataRange.class };
runAssert(o, profile, expected, expectedViolations);
}