Package org.semanticweb.owl.model

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


        if (args[1].compareToIgnoreCase("2") == 0){
          splitOntologyOWLClassAssertionAxiom(ontology, tboxURI, aboxURI);
        }
        logger.info("---------------------------------------------------------------");
       
        manager.removeOntology(ontologyURI);
       
      } catch (OWLOntologyCreationException e) {
        logger.error(e);
        logger.info("---------------------------------------------------------------");
      }
View Full Code Here


        return false;
      } catch (OWLOntologyStorageException e) {
        e.printStackTrace();
        return false;
      } finally{
        manager.removeOntology(ontology.getURI());
        manager = null;
      }
    }
    return false;
  }
View Full Code Here

          .info("============================================================================================================");

      reasoner.clearOntologies();
     
      reasoner.dispose();
      manager.removeOntology(abox.getURI());
      manager.removeOntology(tbox.getURI());
      reasoner = null;

      return result;
View Full Code Here

      reasoner.clearOntologies();
     
      reasoner.dispose();
      manager.removeOntology(abox.getURI());
      manager.removeOntology(tbox.getURI());
      reasoner = null;

      return result;

    } catch (OWLOntologyCreationException e)
View Full Code Here

    }
    reasoner.clearOntologies();
    reasoner.dispose();
    manager.removeOntology(tboxOntology.getURI());
    manager.removeOntology(aboxOntology.getURI());

    time = classificationTime + instanceRetrievalTime;
    RunResult result = new RunResult(allIndividualsCounts, time, classes
        .size(), properties.size());
    result.setClassificationTime(classificationTime);
View Full Code Here

      VocabularyManager vocabularyManager = new VocabularyManager(
          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);

      StepSizeStrategy stepSizeStrategy = StrategyFactory
          .newStepSizeStrategy(stepSizeStrategyID, concepts.size());
      /*
 
View Full Code Here

          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);

      StepSizeStrategy stepSizeStrategy = StrategyFactory
          .newStepSizeStrategy(stepSizeStrategyID, concepts.size());
      /*
       * SelectionStrategy selectionStrategy = StrategyFactory
View Full Code Here

      VocabularyManager vocabularyManager = new VocabularyManager(
          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);

      SelectionStrategy selectionStrategyCopy = new TrivialStrategy(
          selectionStrategy.getConceptsSet(), properties,
          StrategyFactory.newStepSizeStrategy("EqualParts",
View Full Code Here

          tboxOntology);
      Set<OWLClass> concepts = vocabularyManager.getConceptSet();
      Set<OWLProperty<?, ?>> properties = new HashSet<OWLProperty<?, ?>>();

      manager.removeOntology(tboxLogicalURI);
      manager.removeOntology(aboxLogicalURI);

      SelectionStrategy selectionStrategyCopy = new TrivialStrategy(
          selectionStrategy.getConceptsSet(), properties,
          StrategyFactory.newStepSizeStrategy("EqualParts",
              selectionStrategy.getConceptsSet().size()),
View Full Code Here

        reasoner.unloadOntologies(Collections
            .singleton(approximatedTboxOntology));
        reasoner.unloadOntologies(Collections.singleton(aboxOntology));
        reasoner.dispose();
        manager.removeOntology(aboxOntology.getURI());
        manager = null;
        reasoner = null;
        runCounter++;
      } else
      {
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.