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] Is negation can be implement by swrlb:notEqual??

Jibbi najeeb at kth.se
Sat Jan 12 11:32:57 PST 2008


Hi Everyone,

I've problem with implementing negation in SWRL, the logic is very simple,
however i don't find any solution in SWRL.

 i want to say, If "Y" is not a friend of specific Member "X", get the
contact of Member "X" and forward the request on his contact. to achieve
that, I
have to define negation of hasFriend property.

1. Members(?x)  ∧ NOT hasFriend(?x, Elin)  ∧  hasContact(?x, ?t) →
SendRequest(?t) 

as i know i can't implement the Negation this way,

 shell i do this job done by this way?

2. Members(?x)  ∧ hasFriend(?x, ?y) ∧ swrlb:notEqual(?y,?z) ∧ 
hasContact(?x, ?t) →
SendRequest(?t)

when i'm trying to implement Rule 2, i got this exception

Exception importing SWRL rules and OWL knowledge:
edu.stanford.smi.protegex.owl.swrl.bridge.jess.exceptions.SWRLJessBridgeException:
Jess reported an error in routine invokeSWRLBuiltIn
	while executing (invokeSWRLBuiltIn "ForwardMobile" "swrlb:notEqual" 0 ?y
?a)
	while executing rule LHS (Node2)
	while executing rule LHS (Node2)
	while executing rule LHS (Node2)
	while executing rule LHS (Node2)
	while executing rule LHS (MTELN)
	while executing rule LHS (TECT)

thanks in advance
Cheers
Najeeb Elahi
-- 
View this message in context: http://www.nabble.com/Is-negation-can-be-implement-by-swrlb%3AnotEqual---tp14777868p14777868.html
Sent from the Protege - OWL mailing list archive at Nabble.com.




More information about the protege-owl mailing list