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

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


     * @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


    public void configurationChanged(@Observes ConfigurationChangedEvent e) {
        if(e.containsChangedKey(REASONING_ENABLED)) {
            sesameService.shutdown();
            sesameService.initialise();
        } 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

        } finally {
            connection.close();
        }

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

    }
View Full Code Here

    @Before
    public void initDatabase() throws Exception {
        store = new KiWiStore("test",jdbcUrl,jdbcUser,jdbcPass,dialect, "http://localhost/context/default", "http://localhost/context/inferred");
        tsail = new KiWiTransactionalSail(store);
        rsail = new KiWiReasoningSail(tsail, new ReasoningConfiguration());
        repository = new SailRepository(rsail);
        repository.initialize();
    }
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.