.dbquity
source filesThe Dbquity Modeling Language is a textual source language that
#
-commentsA model source declares a hierarchy of element
s, and each element
is given a name,
which separated by at least a single space follows the element
type. Under each element
properties and nested element
s are defined. Thus:
<element-type> <name>
<property>: <value>
<property-2>: <value>
<property-3>:
<line-1>
<line-2>
<line-3>
...
<property-4>: <line-1>
<line-2>
<line-3>
...
...
<nested-element-type> <name>
...
<nested-element-2-type> <name>
...
...
<element-2-type> <name>
...
...
Some properties support multi-line values as illustrated for <property-3>
and <property-4>
above.
The nested element
s follow the same structure as the top-most element
s.
The structure of a syntactically well-formed Dbquity model is defined by the metamodel:
element
s declare models - either
library
orsite
classifier
s, which are one out of these
seven:
enumeration
, which is the only non-complex
classifier
,class
,entity
, or specialisations of entity
:
area
, which specialises container
,container
,association
, orblob
The two complex
classifier
specializations, entity
and class
support
inheritance, which is specified in one of two equivalent ways:
<complex-type> <base-name>
...
<complex-type> <name>
base: <base-name>
...
or shorthand:
<complex-type> <base-name>
...
<base-name> <name>
...
where the shorthand notation combined with the stereotype
modifier and the property
model element and the modelconstraint
property effectively forms a capability to extend the set of built-in complex
types.