Search in sources :

Example 1 with RefactorerImpl

use of org.apache.stanbol.rules.refactor.impl.RefactorerImpl 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)1 ClerezzaAdapter (org.apache.stanbol.rules.adapters.clerezza.ClerezzaAdapter)1 RuleAdaptersFactoryImpl (org.apache.stanbol.rules.adapters.impl.RuleAdaptersFactoryImpl)1 RuleAdaptersManagerImpl (org.apache.stanbol.rules.adapters.impl.RuleAdaptersManagerImpl)1 RuleAdapterManager (org.apache.stanbol.rules.base.api.RuleAdapterManager)1 RuleAdaptersFactory (org.apache.stanbol.rules.base.api.RuleAdaptersFactory)1 ClerezzaRuleStore (org.apache.stanbol.rules.manager.ClerezzaRuleStore)1 RefactorerImpl (org.apache.stanbol.rules.refactor.impl.RefactorerImpl)1 BeforeClass (org.junit.BeforeClass)1