If a n:rectangle R has a n:length L1 and R has a n:length L2 then R v:has-surface S, and S = ( L1 * L2 ). Ontology( http://attempto.ifi.uzh.ch/ontologies/owlswrl/test Implies( Antecedent( description( Class(:rectangle) I-variable(1) ) description( Class(:length) I-variable(2) ) description( ObjectProperty(:have) I-variable(1) I-variable(2) ) description( Class(:length) I-variable(4) ) description( ObjectProperty(:have) I-variable(1) I-variable(4) ) ) Consequent( description( Class(owl:Thing) I-variable(6) ) description( ObjectProperty(:has-surface) I-variable(1) I-variable(6) ) builtIn(equal, I-variable(6), I-variable(g1)) builtIn(multiply, I-variable(g1), I-variable(2), I-variable(4)) ) ) ) If a rectangle R has a length L1 and R has a length L2 then R v:has-surface ( L1 * L2 ). Ontology( http://attempto.ifi.uzh.ch/ontologies/owlswrl/test Implies( Antecedent( description( Class(:rectangle) I-variable(1) ) description( Class(:length) I-variable(2) ) description( ObjectProperty(:have) I-variable(1) I-variable(2) ) description( Class(:length) I-variable(4) ) description( ObjectProperty(:have) I-variable(1) I-variable(4) ) ) Consequent( description( DataProperty(:has-surface) I-variable(1) I-variable(g1) ) builtIn(multiply, I-variable(g1), I-variable(2), I-variable(4)) ) ) ) ERROR: Unexpected error. If there is a circle C and C's radius is R and C's area is S then S = Pi * (R * R) / 1. Ontology( http://attempto.ifi.uzh.ch/ontologies/owlswrl/test Implies( Antecedent( description( ObjectProperty(:area) I-variable(2) I-variable(3) ) description( ObjectProperty(:radius) I-variable(2) I-variable(5) ) description( Class(:circle) I-variable(2) ) description( Class(owl:Thing) I-variable(5) ) description( Class(owl:Thing) I-variable(3) ) ) Consequent( builtIn(equal, I-variable(3), I-variable(g1)) builtIn(divide, I-variable(g1), I-variable(g2), ^^(1, http://www.w3.org/2001/XMLSchema#integer)) builtIn(multiply, I-variable(g2), Individual(:Pi), I-variable(g3)) builtIn(multiply, I-variable(g3), I-variable(5), I-variable(5)) ) ) ) ERROR: Unexpected error.