title: OWL API- how to add new classes, properties, individuals, to OWL file?
body: <p>I want to add a new class, properties to the OWL file which is created from protege. I need to update the owl file. This is the code that i have tried to add a class. But it doesnot updated the original OWL file. Only the output of netbeans IDE provide the updated OWL file.</p>
  
  <pre><code> OWLDataFactory df = OWLManager.getOWLDataFactory();
  
   OWLEntity entity = df.getOWLEntity(EntityType.CLASS, IRI.create("#newclass"));
  
   OWLAxiom declare = df.getOWLDeclarationAxiom(entity);
   manager.addAxiom(ontology,declare );
  </code></pre>