OWLOntologyManager m = o.getOWLOntologyManager();
m.addAxiom(
o,
SubClassOf(ObjectComplementOf(OWLThing()),
ObjectOneOf(NamedIndividual(IRI("urn:test#test")))));
OWL2RLProfile profile = new OWL2RLProfile();
int expected = 2;
Class[] expectedViolations = { UseOfNonSubClassExpression.class,
UseOfNonSuperClassExpression.class };
runAssert(o, profile, expected, expectedViolations);
}