Package org.protege.editor.core

Examples of org.protege.editor.core.ModelManager


   */
  private void getAllLoadedReasoners(){
    config.loadRemoteReasonerConfiguration();
   
    ReasonerRegistry registry = HeraklesManager.getReasonerRegistry();
    ModelManager modelManager = workspace.getEditorKit().getModelManager();
    if(modelManager instanceof OWLModelManager){
      OWLOntologyManager manager = ((OWLModelManager)modelManager).getOWLOntologyManager();
     
      Set<String> types = config.getRemoteReasonerTypes();
     
View Full Code Here


         String host = getHost();
         String port = getPort();
        
         Properties pro = null;
//         try {
          ModelManager modelManager = workspace.getEditorKit().getModelManager();
          if(modelManager instanceof OWLModelManager){
            OWLOntologyManager manager = ((OWLModelManager)modelManager).getOWLOntologyManager();
            ReasonerRegistry registry = HeraklesManager.getReasonerRegistry();
            ReasonerAdapter adapter = null;
            boolean isNewReasoner = false;
View Full Code Here

    ontologyPanel.setLayout(new BoxLayout(ontologyPanel, BoxLayout.Y_AXIS));
    ontologyPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder
        (BorderFactory.createLineBorder(Color.LIGHT_GRAY), "Ontology Selection"),
        BorderFactory.createEmptyBorder(3, 3, 3, 3)));
   
    ModelManager model = this.getWorkspace().getEditorKit().getModelManager();
    OWLModelManager owlModel = null;
    if(model instanceof OWLModelManager){
      owlModel = (OWLModelManager) model;
    }
    Set<OWLOntology> ontologies = owlModel.getActiveOntologies();
View Full Code Here

          else {
            ExecutionConfigurationView.getInstance().clear();
          }
         
          // if the current running reasoner is herakles, set the new load strategy
          ModelManager modelManager = workspace.getEditorKit().getModelManager();
          if(modelManager instanceof OWLModelManager){
            OWLModelManager owlModelManager = (OWLModelManager)modelManager;
            OWLReasoner reasoner = owlModelManager.getReasoner();
            if(reasoner instanceof Herakles){
              Herakles herakles = (Herakles)reasoner;
View Full Code Here

          JRadioButton rb = (JRadioButton) e.getSource();
          String cn = rb.getName();
          config.setSelectedLoadStrategy(cn);
         
          // if the current running reasoner is herakles, set the new load strategy
          ModelManager modelManager = workspace.getEditorKit().getModelManager();
          if(modelManager instanceof OWLModelManager){
            OWLModelManager owlModelManager = (OWLModelManager)modelManager;
            OWLReasoner reasoner = owlModelManager.getReasoner();
            if(reasoner instanceof Herakles){
              Herakles herakles = (Herakles)reasoner;
View Full Code Here

  /**
   * get class iterator for test
   */
  @SuppressWarnings("unused")
  private void setup(){
    ModelManager model = this.getWorkspace().getEditorKit().getModelManager();
    OWLModelManager owlModel = null;
    if(model instanceof OWLModelManager){
      owlModel = (OWLModelManager) model;
    }
//    classIt = owlModel.getActiveOntology().getReferencedClasses().iterator();
View Full Code Here

  /**
   * get class iterator for test
   */
  @SuppressWarnings("unused")
  private void setup(){
    ModelManager model = this.getWorkspace().getEditorKit().getModelManager();
    OWLModelManager owlModel = null;
    if(model instanceof OWLModelManager){
      owlModel = (OWLModelManager) model;
    }
//    classIt = owlModel.getActiveOntology().getReferencedClasses().iterator();
View Full Code Here

TOP

Related Classes of org.protege.editor.core.ModelManager

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.