Hi,
I'm trying to use the Jena Reasoner to remove an old statement and add a
new statement to my ontology model. I want to change trackStatus from True
to False when waterAcc is greater than 6. I have the following rule:
[WaterFail: (?x rdf:type af:Track) (?x af:trackStatus
"true"^^xs:boolean) (?x af:waterAcc ?y) greaterThan(?y, 6.0) -> remove(1)
(?x af:trackStatus "false"^^xs:boolean)]
When I run the code, the statement gets removed from the model, however the
new "false" statement is not added. If I get rid of the remove() in the
rule, the "false" statement is added to the model. Additionally, if I
replace remove(1) with print("test"), the rule executes the print command
and adds the "false" statement.
Am I doing something wrong that is not letting me call remove() and add a
new statement?