Search in sources :

Example 1 with ScopeManagerImpl

use of org.apache.stanbol.ontologymanager.core.scope.ScopeManagerImpl in project stanbol by apache.

the class MockOsgiContext method resetManagers.

public static void resetManagers() {
    // PersistentCollectorFactory factory = new ClerezzaCollectorFactory(ontologyProvider, config);
    onManager = new ScopeManagerImpl(ontologyProvider, offline, collectorfactory, collectorfactory, config);
    sessionManager = new SessionManagerImpl(ontologyProvider, offline, config);
}
Also used : SessionManagerImpl(org.apache.stanbol.ontologymanager.multiplexer.clerezza.session.SessionManagerImpl) ScopeManagerImpl(org.apache.stanbol.ontologymanager.core.scope.ScopeManagerImpl)

Example 2 with ScopeManagerImpl

use of org.apache.stanbol.ontologymanager.core.scope.ScopeManagerImpl in project stanbol by apache.

the class TestOntologyNetworkPersistence method cleanup.

/*
     * Before each test, everything is cleaned up, including the TcProvider.
     */
@Before
public void cleanup() throws Exception {
    tcp = new SimpleTcProvider();
    resetOntologyProvider();
    Dictionary<String, Object> empty = new Hashtable<String, Object>();
    ClerezzaCollectorFactory factory = new ClerezzaCollectorFactory(ontologyProvider, empty);
    onm = new ScopeManagerImpl(ontologyProvider, new OfflineConfigurationImpl(empty), factory, factory, empty);
}
Also used : Hashtable(java.util.Hashtable) SimpleTcProvider(org.apache.clerezza.rdf.simple.storage.SimpleTcProvider) ScopeManagerImpl(org.apache.stanbol.ontologymanager.core.scope.ScopeManagerImpl) OfflineConfigurationImpl(org.apache.stanbol.ontologymanager.core.OfflineConfigurationImpl) Before(org.junit.Before)

Aggregations

ScopeManagerImpl (org.apache.stanbol.ontologymanager.core.scope.ScopeManagerImpl)2 Hashtable (java.util.Hashtable)1 SimpleTcProvider (org.apache.clerezza.rdf.simple.storage.SimpleTcProvider)1 OfflineConfigurationImpl (org.apache.stanbol.ontologymanager.core.OfflineConfigurationImpl)1 SessionManagerImpl (org.apache.stanbol.ontologymanager.multiplexer.clerezza.session.SessionManagerImpl)1 Before (org.junit.Before)1