Package de.fzi.herakles.commons.configuration.impl

Examples of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp


   */
    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


      this.executionStrategy = config.getHeraklesConfiguration().getProperty("defaultexecstrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy")
    }
  }
 
  public void start(File reasonerConfigFile) {   
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.loadRemoteReasonerConfiguration(reasonerConfigFile);
    this.start(reasonerConfig);   
  }
View Full Code Here

    // load the ontology and get the imports closure
    ontology = manager.loadOntologyFromOntologyDocument( IRI.create(TEST_ONTOLOGY) );
   
    // Set up HeraklesReasoner
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.addRemoteReasoner("Reasoner", "Pellet", host, port)
    heraklesReasonerFactory = new HeraklesReasonerFactory(reasonerConfig)
    heraklesReasoner = heraklesReasonerFactory.createReasoner(ontology);
     
    // Set up reference reasoner
    URL url = new URL("http://" + host + ":" + port);
View Full Code Here

    // load the ontology and get the imports closure
    ontology = manager.loadOntologyFromOntologyDocument( IRI.create(TEST_ONTOLOGY) );
   
    // Set up HeraklesReasoner and start Herakles as OWLlinkServer
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.addRemoteReasoner("Pellet", "remotePellet", host, port)
    heraklesServer = new HeraklesOWLlinkServer();
    heraklesServer.start(reasonerConfig)
    OWLlinkReasonerConfiguration reasonerConfiguration1 = new OWLlinkReasonerConfiguration(new URL("http://127.0.0.1:8080"));
    heraklesReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    heraklesReasoner = (OWLlinkHTTPXMLReasoner) heraklesReasonerFactory.createReasoner(ontology, reasonerConfiguration1)
View Full Code Here

    // load the ontology and get the imports closure
    ontology = manager.loadOntologyFromOntologyDocument( IRI.create(TEST_ONTOLOGY) );
   
    // Set up HeraklesReasoner and start Herakles as OWLlinkServer
    ReasonerConfiguration reasonerConfig = new ReasonerConfigurationImp();
    reasonerConfig.addRemoteReasoner("Reasoner", "Pellet", host, port)
    heraklesServer = new HeraklesOWLlinkServer();
    heraklesServer.start(reasonerConfig)
    OWLlinkReasonerConfiguration reasonerConfiguration1 = new OWLlinkReasonerConfiguration(new URL("http://127.0.0.1:8080"));
    heraklesReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();
    heraklesReasoner = heraklesReasonerFactory.createReasoner(ontology, reasonerConfiguration1)
View Full Code Here

      OWLDataFactory factory = manager.getOWLDataFactory();
     
      // 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

      OWLDataFactory factory = manager.getOWLDataFactory();
     
      // 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

      OWLDataFactory factory = manager.getOWLDataFactory();
     
      // 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

      OWLDataFactory factory = manager.getOWLDataFactory();
     
      // 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

      OWLDataFactory factory = manager.getOWLDataFactory();
     
      // 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

TOP

Related Classes of de.fzi.herakles.commons.configuration.impl.ReasonerConfigurationImp

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.