use of org.apache.clerezza.rdf.core.access.TcManager 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);
}
use of org.apache.clerezza.rdf.core.access.TcManager in project stanbol by apache.
the class MockOsgiContext method reset.
/**
* Sets up a new mock OSGi context and cleans all resources and components.
*/
public static void reset() {
// reset Clerezza objects
tcManager = new TcManager();
tcManager.addWeightedTcProvider(new SimpleTcProvider());
// reset Stanbol objects
ontologyProvider = new ClerezzaOntologyProvider(tcManager, offline, parser);
collectorfactory = new ClerezzaCollectorFactory(ontologyProvider, config);
resetManagers();
}
use of org.apache.clerezza.rdf.core.access.TcManager in project stanbol by apache.
the class MockOsgiContext method reset.
public static void reset() {
tcManager = new TcManager();
tcManager.addWeightedTcProvider(new SimpleTcProvider());
}
use of org.apache.clerezza.rdf.core.access.TcManager in project stanbol by apache.
the class RuleStoreTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
/*class SpecialTcManager extends TcManager {
public SpecialTcManager(QueryEngine qe, WeightedTcProvider wtcp) {
super();
bindQueryEngine(qe);
bindWeightedTcProvider(wtcp);
}
}
QueryEngine qe = new JenaSparqlEngine();
WeightedTcProvider wtcp = new SimpleTcProvider();*/
//new SpecialTcManager(qe, wtcp);
TcManager tcm = TcManager.getInstance();
Dictionary<String, Object> configuration = new Hashtable<String, Object>();
store = new ClerezzaRuleStore(configuration, tcm);
}
Aggregations