Examples of removeOntology()


Examples of org.apache.stanbol.ontologymanager.servicesapi.scope.OntologySpace.removeOntology()

            OWLOntologyID id = OntologyUtils.decode(ontologyId);
            OntologySpace cs = scope.getCustomSpace();
            if (!cs.hasOntology(id)) rb = Response.notModified(); // ontology not managed
            else try {
                onm.setScopeActive(scopeId, false);
                cs.removeOntology(id);
                rb = Response.ok();
            } catch (IrremovableOntologyException e) {
                throw new WebApplicationException(e, FORBIDDEN);
            } catch (UnmodifiableOntologyCollectorException e) {
                throw new WebApplicationException(e, FORBIDDEN);
View Full Code Here

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

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

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

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

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

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

      return result;
View Full Code Here

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

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

      return result;

    } catch (OWLOntologyCreationException e)
View Full Code Here

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

    }
    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

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

      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

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

          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

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

      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

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

          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
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.