throw new PelletCmdException( e );
}
output( getOWL2DLProfileViolations( rootOntology ) );
OntologyLints rootOntologyLints = lint( axiomLintPatterns, ontologyLintPatterns,
rootOntology );
output( rootOntologyLints.toString() );
if( !m_DoRootOnly ) {
Set<OWLOntology> importClosures = CollectionUtil.copy( manager
.getImportsClosure( rootOntology ) );
importClosures.remove( rootOntology );
if( importClosures.isEmpty() ) {
output( "\n" + rootOntology.getOntologyID() + " does not import other ontologies." );
}
else {
for( OWLOntology importedOntology : importClosures ) {
output( getOWL2DLProfileViolations( importedOntology ) );
OntologyLints importedOntologyLints = lint( axiomLintPatterns,
ontologyLintPatterns, importedOntology );
output( importedOntologyLints.toString() );
}
OWLOntology mergedImportClosure = buildMergedImportClosure( manager, rootOntology );
OntologyLints mergedOntologyLints = lint( axiomLintPatterns, ontologyLintPatterns,
mergedImportClosure );
mergedOntologyLints.setRootOntology( rootOntology );
output( mergedOntologyLints.toString() );
}
}
if( m_OutputOntologyPath != null ) {