public void visit(OWLOntology ontology) {
OWLOntologyID ontologyID = ontology.getOntologyID();
if (!ontologyID.isAnonymous()) {
if (ontologyID.getOntologyIRI().get().isReservedVocabulary()) {
profileViolations
.add(new UseOfReservedVocabularyForOntologyIRI(
getCurrentOntology()));
}
Optional<IRI> versionIRI = ontologyID.getVersionIRI();
if (versionIRI.isPresent()) {
if (versionIRI.get().isReservedVocabulary()) {