We'd like to automatically generate/ validate the data query
according to
the rules logic.
I imagine is an analyzer that receives as input a knowledge-base and returns
the greatest-common-query (like GCD). The returned query can be expressed in
OCL for example.
Does drolls provides a meta-data API to analyze the rule WHEN part?
To me that
sounds like overkill. Anyway, an option you should consider
is querying and inserting a basic set of facts, then use special
traversal/query/whatnot rules which assert the missing pieces. Not as
automatic, but viable. Meaning it worked for me :)
Cheers,
Simon