Package de.fzi.herakles.commons.configuration

Examples of de.fzi.herakles.commons.configuration.HeraklesConfiguration


  /**
   * Main entry point that start the HERAKLES OWLlink server.
   * @param args Command line arguments (currently not used)
   */
    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
View Full Code Here


    //config = new Configuration();
    //config.loadCenterReasonerFactoryConfiguration();
    //loadRemoteReasonerAdapter();
   
    // get the cache configuration
    config = new HeraklesConfiguration();
    config.loadHeraklesConfiguration();
    Properties property = config.getHeraklesConfiguration();
   
    enableCache = Boolean.parseBoolean(property.getProperty("enableCache", "" + enableCache));
    cacheSize = Integer.parseInt(property.getProperty("cacheSize", "" + cacheSize));
View Full Code Here

  private ReasonerRegistry registry;
 
  private OWLlinkServer server;
     
  public HeraklesOWLlinkServer() {
    this.config = new HeraklesConfiguration();
    this.config.loadHeraklesConfiguration();
    this.port = Integer.parseInt(config.getHeraklesConfiguration().getProperty("port", "8080"));
    this.loadStrategy = config.getHeraklesConfiguration().getProperty("defaultloadstrategy", "de.fzi.herakles.strategy.impl.BasicLoadStrategy");
    this.executionStrategy = config.getHeraklesConfiguration().getProperty("defaultexecstrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy")
  }
View Full Code Here

    this.loadStrategy = config.getHeraklesConfiguration().getProperty("defaultloadstrategy", "de.fzi.herakles.strategy.impl.BasicLoadStrategy");
    this.executionStrategy = config.getHeraklesConfiguration().getProperty("defaultexecstrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy")
  }
  
  public HeraklesOWLlinkServer(File configFile) {
    config = new HeraklesConfiguration();
    config.loadHeraklesConfiguration(configFile);
    this.port = Integer.parseInt(config.getHeraklesConfiguration().getProperty("port", "8080"));
    this.loadStrategy = config.getHeraklesConfiguration().getProperty("defaultloadstrategy", "de.fzi.herakles.strategy.impl.BasicLoadStrategy");
    this.executionStrategy = config.getHeraklesConfiguration().getProperty("defaultexecstrategy", "de.fzi.herakles.strategy.impl.BasicPStrategy")
  }
View Full Code Here

      // TODO Auto-generated catch block
      e.printStackTrace();
   
    this.owllinkHTTPXMLReasonerFactory = new OWLlinkHTTPXMLReasonerFactory();

    HeraklesConfiguration config = new HeraklesConfiguration();
    config.loadHeraklesConfiguration();
   
//    this.reasonerProperties = this.remoteAdapter.getReasonerProperties();
   
    // set the time measure option
    Properties property = config.getHeraklesConfiguration();
    boolean isRecordTime = false;
    isRecordTime = Boolean.parseBoolean(property.getProperty("timeMeasure", "" + isRecordTime));
    if(isRecordTime)
      this.setTimeMeasure();
  }
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.configuration.HeraklesConfiguration

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.