private void createEmptyNotesOntology() { try { OWLOntologyManager notesOntologyManager = WebProtegeOWLManager.createOWLOntologyManager(); notesOntology = notesOntologyManager.createOntology(); IRI notesOntologyDocumentIRI = IRI.create(notesOntologyDocument); notesOntologyManager.setOntologyDocumentIRI(notesOntology, notesOntologyDocumentIRI); notesOntologyDocument.getParentFile().mkdirs(); BinaryOWLOntologyDocumentFormat notesOntologyDocumentFormat = new BinaryOWLOntologyDocumentFormat(); notesOntologyManager.saveOntology( notesOntology, notesOntologyDocumentFormat, notesOntologyDocumentIRI); } catch (OWLOntologyCreationException e) { throw new RuntimeException(e); } catch (OWLOntologyStorageException e) { throw new RuntimeException(e); } }