简体   繁体   中英

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.

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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