A method and apparatus for querying computer program design models
(metamodels) is provided. A tree structure representation of the subject
metamodel is likened to a database representation of the model elements.
The invention method and apparatus logically maps a model query statement
to the corresponding database version of the query. This leads to
abstraction of the underlying metamodel and hence the queries targeting
it in an automated and dynamic manner.