Search Mailing List Archives
[protege-owl] How to define a rule in JessTab detecting and changing relation between two instances?
janee at softweave.com
Tue Apr 24 11:54:36 PDT 2007
I am a newbie, but it is my understanding that SWRL can only assign a
value to a property that is not yet valued. Allowing properties to be
changed might invalidate previous inferences.
Does your rule perhaps add a second hasState property to the Customer
rather than changing the existing value?
On Apr 24, 2007, at 11:51 AM, shahab wrote:
> Hi everyone,
> I do appreciate your help.
> I am using JessTab to run rules,I have written a rule to change the
> value(string) of an instance :
> (defrule Rule-1 ?obj1 <-(object (is-a Customer) (is-a-name
> "Customer") (:NAME "Customer_Inst") (hasState "Ready" )) => (slot-
> set ?obj1 hasState "waiting"))
> But now I want to introduce (Ready, Waiting) as intsances of class
> "State".I have done it and now I have two instances Ready and
> Waiting . Also I have defined "hasState" as a slot of type of State.
> But now I wonder how can I write similar rule (as above) to change
> the relation between Customer and Ready to a relation between
> Customer and Waiting?
> Ahhh...imagining that irresistible "new car" smell?
> Check out new cars at Yahoo! Autos.
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the protege-owl