parent(?a,?b) ∧ brother(?b,?c) →
uncle(?a,?c) bodyPart(?a,?b) ∧ disease(?b,?c) → disease(?a,?c) child(?a,?b) ∧ Student(?b) → dependent(?a,?b) Student ≤ Person ∩ (∃ ssn xsd:int)
ssn ≤ Person × xsd:int john ∈ Student ∩ (ssn :
"565"^^xsd:int)
rule ::= 'Implies(' { annotation } antecedent consequent ')'
antecedent ::= 'Antecedent(' { atom } ')'
consequent ::= 'Consequent(' { atom } ')'
atom ::= description '(' i-object ')'
atom ::= individualvaluedPropertyID '(' i-object i-object ')'
atom ::= datavaluedPropertyID '(' i-object d-object ')'
atom ::= sameAs '(' i-object i-object ')'
atom ::= differentFrom '(' i-object i-object ')'
i-object ::= 'I-variable(' URIreference ')' | individualID
d-object ::= 'D-variable(' URIreference ')' | dataLiteral
All variables in a rule must occur (at least) in the antecedent.
Transferring style from an artist to his/her paintings
(from Guus Schreiber).
Artist(?x) ∧ Style(?y) ∧ artistStyle(?x, ?y) ∧ creator(?x, ?z)
→
style/period(?z, ?y)
Inheriting trauma from body parts
(often needed in medical ontologies).
Location(?x) ∧ Trauma(?y) ∧ isLocationOf(?x, ?y) ∧ isPartOf(?x,?z)
→
isLocationOf(?z, ?y)