Package de.fuberlin.wiwiss.d2rq.map

Examples of de.fuberlin.wiwiss.d2rq.map.Configuration


 
  private void parseConfiguration() {
    Iterator<Individual> it = this.model.listIndividuals(D2RQ.Configuration);
    if (it.hasNext()) {
      Resource configResource = it.next();
      Configuration configuration = new Configuration(configResource);
      StmtIterator stmts = configResource.listProperties(D2RQ.serveVocabulary);
      while (stmts.hasNext()) {
        configuration.setServeVocabulary(stmts.nextStatement().getBoolean());
      }     
      stmts = configResource.listProperties(D2RQ.useAllOptimizations);
      while (stmts.hasNext()) {
        configuration.setUseAllOptimizations(stmts.nextStatement().getBoolean());
      }     
      this.mapping.setConfiguration(configuration);

      if (it.hasNext())
        throw new D2RQException("Only one configuration block is allowed");
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.map.Configuration

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.