}
}
private void runLintForRDFXML() throws MalformedURLException, IOException {
RDFModelReader reader = new RDFModelReader();
RDFModel rootModel = null;
try {
rootModel = reader.read( m_InputOntologyPath, !m_DoRootOnly );
} catch( Exception e ) {
throw new PelletCmdException( e );
}
OWLSyntaxChecker checker = new OWLSyntaxChecker();
checker.setExcludeValidPunnings(options.getOption("exclude-valid-punning").getValueAsBoolean());
RDFLints lints = checker.validate( rootModel );
output( lints.toString() );
if( m_OutputOntologyPath != null && !m_DoOWL ) {
List<Statement> missingStmts = lints.getMissingStatements();
rootModel.addAllStatementsWithExistingBNodesOnly( missingStmts );
RDFModelWriter writer = new RDFModelWriter();
writer.writePretty( new FileOutputStream( new File( m_OutputOntologyPath ) ),
rootModel );
output("Saved to " + m_OutputOntologyPath );