Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLOntologyChange


   */
  public static void updateOntology(OWLOntology ontology, Collection<? extends OWLAxiom> axioms, boolean add)
      throws OWLException {
    List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>();
    for( OWLAxiom axiom : axioms ) {
      OWLOntologyChange change = add
        ? new AddAxiom( ontology, axiom )
        : new RemoveAxiom( ontology, axiom );
      changes.add( change );
    }
    manager.applyChanges( changes );
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.model.OWLOntologyChange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.