Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLOntologyManager.removeOntology()


        IRI iri = IRI.create(prefix + _id);
        try {
            root = ontologyManager.createOntology(iri);
        } catch (OWLOntologyAlreadyExistsException e) {
            // It should be impossible, but just in case.
            ontologyManager.removeOntology(ontologyManager.getOntology(iri));
            try {
                root = ontologyManager.createOntology(iri);
            } catch (OWLOntologyAlreadyExistsException e1) {
                root = ontologyManager.getOntology(iri);
            } catch (OWLOntologyCreationException e1) {
View Full Code Here


                                man.applyChange(new AddOntologyAnnotation(getConsumer().getOntology(), anno));
                            }
                            for (OWLAxiom ax : importedOntology.getAxioms()) {
                                getConsumer().addAxiom(ax);
                            }
                            man.removeOntology(importedOntology);
                        }

                    }
                }
            }
View Full Code Here

        for(String inputFile: inputFiles)
          addFile(inputFile, manager, iriMapper, baseOntology);
      else
        addSingleFile(inputFiles.iterator().next(), manager, iriMapper)//Prevent ugly OWLAPI messages

      manager.removeOntology(baseOntology);
     
      if(options.getOption("merge").getValueAsBoolean())
        manager = mergeOntologiesInNewManager(manager);

      printStats(manager);
View Full Code Here

          testParams.add( new Object[] { test } );
        }
       
          return testParams;
    } finally {
             manager.removeOntology( casesOntology );
      }
    }
   
    private TestCase<OWLOntology> test;
   
View Full Code Here

        IRI iri = IRI.create(namespace + _id);
        try {
            root = ontologyManager.createOntology(iri);
        } catch (OWLOntologyAlreadyExistsException e) {
            // It should be impossible, but just in case.
            ontologyManager.removeOntology(ontologyManager.getOntology(iri));
            try {
                root = ontologyManager.createOntology(iri);
            } catch (OWLOntologyAlreadyExistsException e1) {
                root = ontologyManager.getOntology(iri);
            } catch (OWLOntologyCreationException e1) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.