1
我想創建新的推理器(HermiT)。OWLAPI:創建新的推理器(HermiT)
是什麼以下兩種方法之間的差異: -
1)使用廠:[org.semanticweb.HermiT.ReasonerFactory]
ReasonerFactory factory = new ReasonerFactory();
OWLReasoner reasoner = factory.createReasoner(ontology, configuration);
2)使用構造:[有機.semanticweb.HermiT.Reasoner]
Reasoner reasoner = new Reasoner(configuration, ontology);
OWLReasoner接口和Reasoner類有什麼區別? Reasoner類是否實現OWLReasoner接口? – SuhasD
是的,Reasoner實現了OWLReasoner – Ignazio