Package org.openrdf.repository.contextaware

Examples of org.openrdf.repository.contextaware.ContextAwareRepository


    throws StoreConfigException
  {
    if (configuration instanceof ContextAwareConfig) {
      ContextAwareConfig config = (ContextAwareConfig)configuration;

      ContextAwareRepository repo = new ContextAwareRepository();

      repo.setIncludeInferred(config.isIncludeInferred());
      repo.setMaxQueryTime(config.getMaxQueryTime());
      repo.setQueryLanguage(config.getQueryLanguage());
      repo.setReadContexts(config.getReadContexts());
      repo.setAddContexts(config.getAddContexts());
      repo.setRemoveContexts(config.getRemoveContexts());
      repo.setArchiveContexts(config.getArchiveContexts());
      repo.setQueryResultLimit(config.getQueryResultLimit());

      return repo;
    }

    throw new StoreConfigException("Invalid configuration class: " + configuration.getClass());
View Full Code Here

TOP

Related Classes of org.openrdf.repository.contextaware.ContextAwareRepository

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.