简体   繁体   English

OWLAPI:创建(HermiT)推理器后修改本体

[英]OWLAPI: modify ontology after creating (HermiT) reasoner

I use OWLAPI with HermiT and it works unless I try to modify the ontology after the reasoner has been created.我将 OWLAPI 与 HermiT 一起使用,除非我在创建推理器后尝试修改本体,否则它可以工作。

Should the reasoner be notified of modifications of the ontology?是否应该通知推理者本体的修改? Or do I need to recreate the reasoner, or can I notify the reasoner that it should "synchronize" with the changes?或者我是否需要重新创建推理器,或者我可以通知推理器它应该与更改“同步”吗? (like the menu item in Protege) (就像 Protege 中的菜单项)

Edit: what "does not work": I am adding an axiom that makes the ontology inconsistent, and if I add it after creating the reasoner, the reasoner still reports it is consistent.编辑:什么“不起作用”:我添加了一个使本体不一致的公理,如果我在创建推理器后添加它,推理器仍然报告它是一致的。

The reasoner can be created in buffering or non buffering mode.可以在缓冲或非缓冲模式下创建推理器。 In non buffering mode, ontology changes will be immediately synchronized.在非缓冲模式下,本体更改将立即同步。

You are likely using buffering mode.您可能正在使用缓冲模式。 To synchronize, call the flush() method.要同步,请调用 flush() 方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM