Search in sources :

Example 1 with ClerezzaRuleStore

use of org.apache.stanbol.rules.manager.ClerezzaRuleStore 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)

Example 2 with ClerezzaRuleStore

use of org.apache.stanbol.rules.manager.ClerezzaRuleStore in project stanbol by apache.

the class RefactoringTest method setUpClass.

@BeforeClass
public static void setUpClass() throws Exception {
    // recipeIRI = IRI.create("http://kres.iks-project.eu/ontology/meta/rmi_config.owl#MyTestRecipe");
    tcm = TcManager.getInstance();
    Dictionary<String, Object> configuration = new Hashtable<String, Object>();
    store = new ClerezzaRuleStore(configuration, tcm);
    Dictionary<String, Object> configuration2 = new Hashtable<String, Object>();
    RuleAdaptersFactory ruleAdaptersFactory = new RuleAdaptersFactoryImpl();
    Dictionary<String, Object> configuration3 = new Hashtable<String, Object>();
    new ClerezzaAdapter(configuration3, store, ruleAdaptersFactory);
    RuleAdapterManager ruleAdapterManager = new RuleAdaptersManagerImpl(configuration2, ruleAdaptersFactory);
    Dictionary<String, Object> configuration4 = new Hashtable<String, Object>();
    refactorer = new RefactorerImpl(tcm, store, ruleAdapterManager, configuration4);
}
Also used : RuleAdaptersFactory(org.apache.stanbol.rules.base.api.RuleAdaptersFactory) RuleAdaptersManagerImpl(org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl) ClerezzaAdapter(org.apache.stanbol.rules.adapters.clerezza.ClerezzaAdapter) ClerezzaRuleStore(org.apache.stanbol.rules.manager.ClerezzaRuleStore) Hashtable(java.util.Hashtable) RuleAdapterManager(org.apache.stanbol.rules.base.api.RuleAdapterManager) RuleAdaptersFactoryImpl(org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl) RefactorerImpl(org.apache.stanbol.rules.refactor.impl.RefactorerImpl) BeforeClass(org.junit.BeforeClass)

Aggregations

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