OWLProfileReport report = profile.checkOntology(ontology);
Set<OWLProfileViolation> violations = new HashSet<OWLProfileViolation>();
violations.addAll(report.getViolations());
OWLOntologyWalker ontologyWalker = new OWLOntologyWalker(ontology.getImportsClosure());
OWL2ELProfileObjectVisitor visitor = new OWL2ELProfileObjectVisitor(ontologyWalker, ontology.getOWLOntologyManager());
ontologyWalker.walkStructure(visitor);
violations.addAll(visitor.getProfileViolations());
return new OWLProfileReport(this, violations);
}
protected class OWL2ELProfileObjectVisitor extends OWLOntologyWalkerVisitor<Object> {