Examples of loadRemoteReasonerConfiguration()


Examples of de.fzi.herakles.commons.configuration.ReasonerConfiguration.loadRemoteReasonerConfiguration()

      // Pellet requires the Pellet libraries  (pellet.jar, aterm-java-x.x.jar) and the
      // XSD libraries that are bundled with pellet: xsdlib.jar and relaxngDatatype.jar
      // make sure these jars are on the classpath
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));
             
      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.FaultTolerantPStrategy" );
     
      OWLReasoner reasoner = reasonerFactory.createReasoner( ontology );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

    public static void main(String[] args) {
    HeraklesConfiguration heraklesConfig = new HeraklesConfiguration();
    heraklesConfig.loadHeraklesConfiguration(new File("herakles.xml"));

    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));
     
    // Start Herakles as OWLlinkServer
    HeraklesOWLlinkServer herakles = new HeraklesOWLlinkServer(heraklesConfig);
    herakles.start(reasonerConfig);
  }
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

    }
  }
 
  public void start(File reasonerConfigFile) {   
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.loadRemoteReasonerConfiguration(reasonerConfigFile);
    this.start(reasonerConfig);   
  }
   
  public void start(ReasonerConfiguration reasonerConfig) {   
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();   
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy" );
           
            // We now need to load an ontology into the reasoner. 
      OWLReasoner reasoner = reasonerFactory.createReasoner( ont );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy" );
      //OWLReasonerFactory reasonerFactory = new PelletReasonerFactory();
   
      OWLReasoner reasoner = reasonerFactory.createReasoner( ont );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.AQAAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy" );
     
      OWLReasoner reasoner = reasonerFactory.createReasoner( ont );
           
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.AQAAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.AnalysingLoadStrategy", "de.fzi.herakles.strategy.impl.ABoxTBoxRatioSelectionStrategy" );
           
            // We now need to load an ontology into the reasoner. 
      OWLReasoner reasoner = reasonerFactory.createReasoner( ont );
View Full Code Here

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp.loadRemoteReasonerConfiguration()

     
      // Load a copy of the wine ontology.  We'll load the ontology from the web.
      OWLOntology ont = manager.loadOntologyFromOntologyDocument( IRI.create( PHYSICAL_URI ) );
     
      ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
      reasonerConfig.loadRemoteReasonerConfiguration(new File("reasoner.xml"));

      OWLReasonerFactory reasonerFactory = new HeraklesReasonerFactory( reasonerConfig, "de.fzi.herakles.strategy.impl.BasicLoadStrategy", "de.fzi.herakles.strategy.impl.ScreechAnytimeStrategy" );
     
      AnytimeOWLReasoner reasoner = (AnytimeOWLReasoner) reasonerFactory.createReasoner( ont );
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.