In OWL it is not possible to establish that a person is the boss of a secretary, only that a person is a boss.
SWRL Tips:
- A SWRL rule contains an antecedent part, which is referred to as the body, and a consequent part, which is referred to as the head
- Both the body and head consist of positive conjunctions of atoms. SWRL does not support negated atoms or disjunction. Thus, a SWRL rule may be read as meaning that if all the atoms in the antecedent are true, then the consequent must also be true.
- How to write rule like : Prop1(?x,?y) V Prop2(?y,?x) -> Prop3(?y,?x) ?. Answer: As disjunction is not allowed in SWRL, we can break it down into two sub-rules. R1: Prop1(?x,?y) -> Prop3(?y,?x) and R2: Prop2(?y,?x) -> Prop3(?y,?x)
0 comments:
Post a Comment