CoLan

CoLan is a high-level declarative Constraint Description Language, for use with an Object-Oriented Database (OODB). CoLan has features of both first-order logic and functional programming and is based on Daplex. CoLan expressions are translated into Prolog code that implements the operational semantics of the constraint. Pieces of generated code are cached inside the class descriptor of the 'host' class attached to appropriate slots. The pieces of code are retrieved along an inheritance path when an update on the database is attempted. If the update violates any of the retrieved constraints then it is rejected with an informative message. Thus constraints are expressed declaratively and they can even be retracted individually. However, they are implemented efficiently as code-generated methods, triggered selectively by an update.

CoLan has been implemented in two systems: a) in ADAM OODB, which uses meta-classes of the CoLan system to generate class descriptions, and b) in P/FDM, with changes to meta-data.

Relevant Publications




Department of Informatics Home Page

LPIS Group Home Page


For any comments regarding this page contact Nick Bassiliades.