Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

how to reactivate Drools engine each time I add new instance through java code

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!