Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Create Rules in Eclipse using Protege 3.4.4

Jean-Marc Vanel jeanmarc.vanel at
Mon Jul 19 02:31:12 PDT 2010

2010/7/19 aros <aros at>

>  Is there any way to design rules that can modify the already existing
> content on my ontology through my java application?
No, this is not at the level of writing rules , but modifications will occur
by a explicit action from the API or in the Jess tab by the relevant button.

> I am modeling a home scenario where I have an ontology with all the
> appliances. An example of a rule that I want to build in is:
> If (light_sensor detects >80% light) then turn off lamp
> In my ontology this would mean:
> light_sensor(?s) ^ hasState(?s,?state) ^swrlb:greaterThan(?state, 80) ->
> light(?l) ^hasState(?l, false)
> light_sensor state can change at any time and more than once (as the light
> sensor state can go down and up again).
> Can I use Jess to do this?

> Do you have any example code of how to do it?
The best there is this :

For running rules embedded inside an application you might also want try our
EulerGUI API, based on Drools, an Open Source RETE engine. Indeed Jess has
license issues and AFAIK gets invalid after 1 month.

See "Using the EulerGUI API" :
"Running SWRL rules in EulerGUI"


And with extensions to the N3 rule language, explicit modification from
within rules is possible:

Also non-monotonic and Unique Name Assumption reasonning are possible in
EulerGUI (with the usual reservations about the unclean aspect).

Jean-Marc Vanel
Consulting, services, training,
Rule-based programming, Semantic Web
EulerGUI, a turntable GUI for Semantic Web + rules, XML, UML, eCore, Java
+33 (0)6 89 16 29 52 -- +33 (0)1 39 55 58 16
( we rarely listen to voice messages, please send a mail instead )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the protege-owl mailing list