Package org.openrdf.repository.sail.config

Examples of org.openrdf.repository.sail.config.SailRepositoryConfig


  {
    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


    Repository systemRep = new HTTPRepository(Protocol.getRepositoryLocation(SERVER_URL,
        SystemRepository.ID));

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

    RepositoryConfigUtil.updateRepositoryConfigs(systemRep, repConfig);

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

    RepositoryConfigUtil.updateRepositoryConfigs(systemRep, repConfig);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.repository.sail.config.SailRepositoryConfig

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.