Package org.openrdf.repository.manager

Examples of org.openrdf.repository.manager.RepositoryManager$SynchronizedRepository


   * @throws StoreException
   */
  private void createTestRepositories()
    throws StoreException, StoreConfigException
  {
    RepositoryManager manager = server.getRepositoryManager();

    // create a (non-inferencing) memory store
    MemoryStoreConfig memStoreConfig = new MemoryStoreConfig();
    SailRepositoryConfig sailRepConfig = new SailRepositoryConfig(memStoreConfig);
    RepositoryConfig repConfig = new RepositoryConfig(TEST_REPO_ID, sailRepConfig);

    manager.addRepositoryConfig(TEST_REPO_ID, repConfig.export());

    // create an inferencing memory store
    ForwardChainingRDFSInferencerConfig inferMemStoreConfig = new ForwardChainingRDFSInferencerConfig(
        new MemoryStoreConfig());
    sailRepConfig = new SailRepositoryConfig(inferMemStoreConfig);
    repConfig = new RepositoryConfig(TEST_INFERENCE_REPO_ID, sailRepConfig);

    manager.addRepositoryConfig(TEST_INFERENCE_REPO_ID, repConfig.export());
  }
View Full Code Here


   * @throws StoreException
   */
  private void createTestRepositories()
    throws StoreException, StoreConfigException
  {
    RepositoryManager manager = server.getRepositoryManager();
    ConfigTemplate memory = manager.getConfigTemplateManager().getTemplate("memory");
    manager.addRepositoryConfig(TEST_REPO_ID, memory.createConfig(null));
    ConfigTemplate memory_rdfs_dt = manager.getConfigTemplateManager().getTemplate("memory-rdfs");
    manager.addRepositoryConfig(TEST_INFERENCE_REPO_ID, memory_rdfs_dt.createConfig(null));
  }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.manager.RepositoryManager$SynchronizedRepository

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.