Search in sources :

Example 1 with RuleStore

use of org.apache.stanbol.rules.base.api.RuleStore in project stanbol by apache.

the class ClerezzaAdpterTest method setUpClass.

@BeforeClass
public static void setUpClass() {
    //new SpecialTcManager(qe, wtcp);
    TcManager tcm = TcManager.getInstance();
    Dictionary<String, Object> configuration = new Hashtable<String, Object>();
    RuleAdaptersFactory ruleAdaptersFactory = new RuleAdaptersFactoryImpl();
    RuleStore ruleStore = new ClerezzaRuleStore(configuration, tcm);
    ruleAdapter = new ClerezzaAdapter(configuration, ruleStore, ruleAdaptersFactory);
}
Also used : RuleAdaptersFactory(org.apache.stanbol.rules.base.api.RuleAdaptersFactory) RuleStore(org.apache.stanbol.rules.base.api.RuleStore) ClerezzaRuleStore(org.apache.stanbol.rules.manager.ClerezzaRuleStore) TcManager(org.apache.clerezza.rdf.core.access.TcManager) ClerezzaAdapter(org.apache.stanbol.rules.adapters.clerezza.ClerezzaAdapter) ClerezzaRuleStore(org.apache.stanbol.rules.manager.ClerezzaRuleStore) Hashtable(java.util.Hashtable) RuleAdaptersFactoryImpl(org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

Hashtable (java.util.Hashtable)1 TcManager (org.apache.clerezza.rdf.core.access.TcManager)1 ClerezzaAdapter (org.apache.stanbol.rules.adapters.clerezza.ClerezzaAdapter)1 RuleAdaptersFactoryImpl (org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl)1 RuleAdaptersFactory (org.apache.stanbol.rules.base.api.RuleAdaptersFactory)1 RuleStore (org.apache.stanbol.rules.base.api.RuleStore)1 ClerezzaRuleStore (org.apache.stanbol.rules.manager.ClerezzaRuleStore)1 BeforeClass (org.junit.BeforeClass)1