zhaoyaguang
zhaoyaguang

Reputation: 31

protege DataProperties compare

I have defined a class named "accelerate", set "Equivalent To" function as follow:
currentSpeed some xds:int [ < minSpeed ]
currentSpeed and minSpeed are DataProperties, and these value are assignmented by instance,
for example, create instance currentSpeed=25 minSpeed=30, compare them we know, currentSpeed is less than minSpeed, so I want protege can infer accelerate. however it does not work, please help me.

Upvotes: 1

Views: 150

Answers (1)

zhaoyaguang
zhaoyaguang

Reputation: 31

  1. Open protege swrltab

  2. Add rule:

  car(?c) ^ currentSpeed(?c, ?x) ^ minSpeed(?c, ?y) ^ swrlb:  greaterThan(?y, ?x) -> accelerate(?c)

Upvotes: 2

Related Questions