如何更改 owl api 中现有的 OWLDataPropertyAssertionAxiom 值?

问题描述

考虑遵循 Datapropertyassertion 公理

DataPropertyAssertion(http://www.sample.com/ontologies/Blank#demo http://www.sample.com/ontologies/Blank#node "value"@en).

我需要用 new 更新对象值而不是删除它。

解决方法

OWLAPI 公理实例是不可变的,因此要更新一个实例,您必须删除它并添加一个具有更改值的新公理。