doc/book/en/B020-define-schema.en.txt
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Tue, 23 Dec 2008 13:04:06 -0800
changeset 284 f32b2896aa91
parent 127 ae611743f5c6
permissions -rw-r--r--
[doc] Add thematics within Part II - Development.

.. -*- coding: utf-8 -*-

Data model definition (*schema*)
================================

The schema is the core piece of a `CubicWeb` application as it defines
the data model handled. It is based on entities types already defined
in the `CubicWeb` standard library and others, more specific, we would 
expect to find in one or more Python files under the `schema` directory.

At this point, it is important to make clear the difference between
relation type and relation definition: a relation type is only a relation
name with potentially other additionnal properties (see XXXX), whereas a 
relation definition is a complete triplet 
"<subject entity type> <relation type> <object entity type>". 
A relation type could have been implied if none is related to a 
relation definition of the schema.


.. include:: B021-schema-stdlib.en.txt
.. include:: B022-schema-definition.en.txt