Package org.apache.marmotta.kiwi.reasoner.engine

Examples of org.apache.marmotta.kiwi.reasoner.engine.ReasoningConfiguration


    protected Repository createRepository() throws Exception {
        config.setDefaultContext(null);

        final KiWiStore sail = new KiWiStore(config);
        KiWiTransactionalSail tsail = new KiWiTransactionalSail(sail);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());

        Sail wsail = new SailWrapper(rsail) {
            @Override
            public void shutDown() throws SailException {
                rsail.getEngine().shutdown(true);
View Full Code Here


     * @param parent the parent sail to wrap by the provider
     * @return the wrapped sail
     */
    @Override
    public TransactionalSailWrapper createSail(TransactionalSail parent) {
        ReasoningConfiguration config = new ReasoningConfiguration();
        config.setBatchSize(configurationService.getIntConfiguration("reasoning.batchsize",1000));
        config.setRemoveDuplicateJustifications(configurationService.getBooleanConfiguration("reasoning.remove_duplicate_justifications",false));

        sail = new KiWiReasoningSail(parent,config);

        return sail;
    }
View Full Code Here

            if(!isEnabled()) {
                sail = null;
            }
        } else if(e.containsChangedKeyWithPrefix("reasoning")) {
            ReasoningConfiguration config = sail.getConfig();
            config.setBatchSize(configurationService.getIntConfiguration("reasoning.batchsize",1000));
            config.setRemoveDuplicateJustifications(configurationService.getBooleanConfiguration("reasoning.remove_duplicate_justifications",false));
        }
    }
View Full Code Here

    @Before
    public void initDatabase() throws Exception {
        store = new KiWiStore(config);
        tsail = new KiWiTransactionalSail(store);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());
        repository = new SailRepository(rsail);
        repository.initialize();
    }
View Full Code Here

        } finally {
            connection.close();
        }

        // instantiate reasoning engine, will load the programs into memory
        engine = new ReasoningEngine(rpersistence,tsail,new ReasoningConfiguration());

    }
View Full Code Here

     * @param parent the parent sail to wrap by the provider
     * @return the wrapped sail
     */
    @Override
    public TransactionalSailWrapper createSail(TransactionalSail parent) {
        ReasoningConfiguration config = new ReasoningConfiguration();
        config.setBatchSize(configurationService.getIntConfiguration("reasoning.batchsize",1000));
        config.setRemoveDuplicateJustifications(configurationService.getBooleanConfiguration("reasoning.remove_duplicate_justifications",false));

        sail = new KiWiReasoningSail(parent,config);

        return sail;
    }
View Full Code Here

            if(!isEnabled()) {
                sail = null;
            }
        } else if(e.containsChangedKeyWithPrefix("reasoning")) {
            ReasoningConfiguration config = sail.getConfig();
            config.setBatchSize(configurationService.getIntConfiguration("reasoning.batchsize",1000));
            config.setRemoveDuplicateJustifications(configurationService.getBooleanConfiguration("reasoning.remove_duplicate_justifications",false));
        }
    }
View Full Code Here

    protected Repository createRepository() throws Exception {
        config.setDefaultContext(null);

        final KiWiStore sail = new KiWiStore(config);
        KiWiTransactionalSail tsail = new KiWiTransactionalSail(sail);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());

        Sail wsail = new SailWrapper(rsail) {
            @Override
            public void shutDown() throws SailException {
                rsail.getEngine().shutdown(true);
View Full Code Here

    @Before
    public void initDatabase() throws Exception {
        store = new KiWiStore(config);
        tsail = new KiWiTransactionalSail(store);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());
        repository = new SailRepository(rsail);
        repository.initialize();
    }
View Full Code Here

        } finally {
            connection.close();
        }

        // instantiate reasoning engine, will load the programs into memory
        engine = new ReasoningEngine(rpersistence,tsail,new ReasoningConfiguration());

    }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.kiwi.reasoner.engine.ReasoningConfiguration

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.