Hello, and Happy new year
we suppose that I'm a user who don't know about protege and even ontology;
ok from a Java application I add Martin as student (I just have a graphical interface I create the name the surname, and the score in English) then through a button (add) this student is added to the ontology then I have a button mention when I press it I would know the mention.
I have created a swrl rule that is well executed based on Drools engine integrated in protege, but with the old instances and does not take into account Martin. for that I was obliged to reopen my ontology in protege and to execute the SWRL rule another time in order to give me the correct answer
the swrl rule is as follow:
the user does not know these instructions. so for him all these steps should be effectuated automatically without his interaction.
Hope it is clear
so the question is
how to execute the SWRL rule for the second time (Third time) via java code (without using protege). In another term I mean how to reactivate Drools engine each time I add new instance through java code?
Thnak you for your help and Good day
Run away! Run away! Here, take this tiny ad with you: