我正在将 HermiTv1.3.8.4
与 OWLAPI 一起使用,v3.5.6
并遇到了一个永远运行的问题reasoner.isSatisfiable(clazz)
。
有没有办法检查 HermiT 正在做什么,即获取调试信息的方法?
我目前的设置大致是这样的
OWLReasonerFactory reasonerFactory = new Reasoner.ReasonerFactory();
OWLReasonerConfiguration config;
if (this.verbose_output) {
ConsoleProgressMonitor progressMonitor = new ConsoleProgressMonitor();
config = new SimpleConfiguration(
progressMonitor
);
} else {
config = new SimpleConfiguration();
}
OWLReasoner reasoner = reasonerFactory.createReasoner(this.ontology, config);
...
for (OWLClass c: this.ontology.getClassesInSignature(this.include_import_closure)) {
if (!reasoner.isSatisfiable(c)) { // This step takes forever
continue;
}
...
}