I have information in AG knowlwedgebase like this
Person1 hasBrother Person2
Person1 hasSister Person 3
How can I write a rule in prolog to find out additional relations from the the above facts
Person2 hasSister Person3
Person3 hasBrother Person2
Person 3 is SiblingOf Person 2
I have tried like this but no success:
(<-(Family ?p1 relation ?p2)
(q ?p1 !ns:hasBrother ?p2)
(q ?p1 !ns:hasSister ?p2)
)
Can anyone help me out to write a rule to get additional transitive relations?