Examples of removeOntology()


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

                }
                log.debug("Filled ontology: {}", output);
                log.debug("Temporary ID is {}", output.getOntologyID());
                axioms = manager.getOntology(output.getOntologyID()).getAxioms();
                // IMPORTANT We remove the ontology from the manager
                manager.removeOntology(output);
            } catch (OWLOntologyCreationException e) {
                log.error("An exception have been thrown when instantiating the ontology");
                throw new ReasoningServiceException();
            }
View Full Code Here

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

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

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

                    }
                }
            }
View Full Code Here

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

        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

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

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

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

        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.