Patent ID: 8639711

Claim:
A method for evaluating data, comprising: receiving an Object Constraint Language (OCL) expression-based evaluation request; transforming at least part of the OCL expressions in said OCL expression-based evaluation request into query requests; querying relevant data based on said query requests; and evaluating data obtained from said querying based on said evaluation request; wherein transforming at least part of said OCL expressions in said evaluation request into query requests comprises: normalizing at least part of said OCL expressions into normalized OCL expressions; rewriting said normalized OCL expressions; and transforming said rewritten normalized OCL expressions into query requests based on a transforming rule; wherein rewriting said normalized OCL expressions comprises removing from said normalized OCL expressions those OCL expressions going beyond the capability of a data querying engine; wherein said OCL expressions going beyond the capability of said data querying engine involve arithmetic operations, and the removing from said normalized OCL expressions those OCL expressions going beyond the capability of the data querying engine comprises rewriting each normalized OCL expression that is a Boolean expression into a true value TRUE; and wherein the removing from said normalized OCL expressions those OCL expressions going beyond the capability of the data querying engine comprises: deleting, in a case that the normalized OCL expression is not a Boolean expression, a definition of said OCL expression and definitions of those other expressions that use said definition of said OCL expression, and replacing those deleted expressions with operands of said OCL expression.