Examples of KiWiStore


Examples of org.apache.marmotta.kiwi.sail.KiWiStore

    public synchronized void initialize() throws RepositoryException {
        if (repository != null && repository.isInitialized()) {
            throw new IllegalStateException("repository already initialized");
        }
        log.debug("initializing kiwi-store: {}", kiwi);
        KiWiStore store = new KiWiStore(kiwi.getName(), kiwi.getJdbcUrl(), kiwi.getDbUser(), kiwi.getDbPassword(), kiwi.getDialect(), context, context);

        final Sail sail;
        if (isVersioningEnabled || isReasoningEnabled) {
            TransactionalSail tSail = new KiWiTransactionalSail(store);
            if (isVersioningEnabled) {
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

    }


    @Before
    public void initDatabase() throws RepositoryException {
        store = new KiWiStore("test",jdbcUrl,jdbcUser,jdbcPass,dialect, "http://localhost/context/default", "http://localhost/context/inferred");
        tsail = new KiWiTransactionalSail(store);
        vsail = new KiWiVersioningSail(tsail);
        repository = new SailRepository(vsail);
        repository.initialize();
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

    }


    @Before
    public void initDatabase() throws RepositoryException {
        store = new KiWiStore("test",jdbcUrl,jdbcUser,jdbcPass,dialect, "http://localhost/context/default", "http://localhost/context/inferred");
        tsail = new KiWiTransactionalSail(store);
        vsail = new KiWiVersioningSail(tsail);
        repository = new SnapshotRepository(vsail);
        repository.initialize();
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

   
   
   
    @Override
    protected Sail createSail() throws SailException {
        KiWiStore store = new KiWiStore(kiwiConfig);
        store.setDropTablesOnShutdown(true);
        return store;
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

        this.kiwiConfig = kiwiConfig;
    }
   
    @Override
    protected Sail createSail() throws SailException {
        KiWiStore store = new KiWiStore(kiwiConfig);
        store.setDropTablesOnShutdown(true);
        store.initialize();
        return store;
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

        this.kiwiConfig = kiwiConfig;
    }
   
    @Override
    protected Sail createSail() throws SailException {
        KiWiStore store = new KiWiStore(kiwiConfig);
        store.setDropTablesOnShutdown(true);
        return store;
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

        this.kiwiConfig = kiwiConfig;
    }
   
    @Before
    public void initialize() throws SailException {
        store = new KiWiStore(kiwiConfig);
        store.setDropTablesOnShutdown(true);
      store.initialize();
      vf = new KiWiValueFactory(store, "http://example.org");
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

            config.setDatacenterId(datacenterIds++);
            config.setClustered(true);
            config.setCachingBackend(type);
            config.setClusterPort(port);

            KiWiStore store = new KiWiStore(config);

            Repository repository = new SailRepository(store);
            repository.initialize();

            return repository;
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

        KiWiConfiguration mysqlConfig = KiWiDatabaseRunner.createKiWiConfig("MySQL", new MySQLDialect());
        DBConnectionChecker.checkDatabaseAvailability(mysqlConfig);
       
        rnd = new Random();

        store = new KiWiStore(mysqlConfig);
        store.setDropTablesOnShutdown(true);
        repository = new SailRepository(store);
        repository.initialize();
    }
View Full Code Here

Examples of org.apache.marmotta.kiwi.sail.KiWiStore

    public ProfileLoading(String jdbcUrl, String user, String password) throws RepositoryException {
        this(new KiWiConfiguration("profiling",jdbcUrl,user,password, new PostgreSQLDialect()));
    }

    public ProfileLoading(KiWiConfiguration cfg) throws RepositoryException {
        store = new KiWiStore(cfg);
        repository = new SailRepository(store);
        repository.initialize();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.