<?xml version="1.0" encoding="UTF-8"?>
<!--
  ****************************************************************
ERmodel_v1.2/instances/catalogue/src/conceptualModels/2RegularHypergraph.xml 
****************************************************************

Copyright 2016, 2107 Cyprotex Discovery Ltd.

This file is part of the the ERmodel suite of models and transforms.

The ERmodel suite is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

ERmodel suite is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************
-->
<entity_model xmlns="http://www.entitymodelling.org/ERmodel">
   <presentation>
      <diagram>
         <deltaw>0.6</deltaw>
         <deltah>0.4</deltah>
      </diagram>
   </presentation>
   <absolute>
      <name>function (expression) types</name>
      <composition>
         <type>declaration</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <sequence/>
         <diagram>
            <path/>
         </diagram>
      </composition>
   </absolute>
   <entity_type>
      <name>declaration</name>
      <presentation>
         <x>1.9</x>
         <y>1.2</y>
      </presentation>
      <entity_type>
         <name>quantity (declaration)</name>
         <description>
         Previously this represented in relational scheme as table named META-ELEMENT and with 
         Primary key ELEMENT_ID.
      </description>
         <presentation>
            <w>3.3</w>
         </presentation>
         <composition>
            <type>type expression</type>
            <cardinality>
               <ExactlyOne/>
            </cardinality>
            <diagram>
               <path>
                  <destattach>0.66</destattach>
                  <align>
                     <ToDest/>
                  </align>
               </path>
            </diagram>
         </composition>
      </entity_type>
      <entity_type>
         <name>type (declaration)</name>
         <presentation>
            <rightOf>quantity (declaration)</rightOf>
            <x>1.2</x>
            <w>3.2</w>
         </presentation>
      </entity_type>
      <attribute xmlns:era="http://www.entitymodelling.org/ERmodel">
         <name>name</name>
         <type>
            <string/>
         </type>
      </attribute>
      <composition>
         <name>relative to</name>
         <id>R1</id>
         <type>formal_given</type>
         <cardinality>
            <ZeroOneOrMore/>
         </cardinality>
         <sequence/>
         <diagram>
            <path>
               <align>
                  <ToDest/>
               </align>
               <srcarmlen>0</srcarmlen>
               <destarmlen>0</destarmlen>
               <label>
                  <position>
                     <Left/>
                  </position>
               </label>
            </path>
         </diagram>
      </composition>
   </entity_type>
   <entity_type>
      <name>formal_given</name>
      <presentation>
         <below>declaration</below>
         <x>-2.0</x>
         <y>1.0</y>
         <name>
            <Split/>
         </name>
      </presentation>
      <description>
       These are previously represented in relational table META_TYPE_DEPENDENCY with
       primary key DEPENDENCY_SEQ_ID.
   </description>
      <composition>
         <type>type expression</type>
         <cardinality>
            <ExactlyOne/>
         </cardinality>
         <diagram>
            <path>
               <align>
                  <ToDest/>
               </align>
               <destattach>0.33</destattach>
            </path>
         </diagram>
      </composition>
   </entity_type>
   <entity_type>
      <name>expression</name>
      <presentation>
         <below>formal_given</below>
         <x>0.9</x>
         <deltaw>1.0</deltaw>
         <deltah>0.2</deltah>
      </presentation>
      <entity_type>
         <name>type expression</name>
         <presentation>
            <x>1.2</x>
            <y>0.75</y>
            <deltaw>0.5</deltaw>
         </presentation>
         <dependency_group/>
         <composition>
            <type>quantity expression</type>
            <cardinality>
               <ZeroOneOrMore/>
            </cardinality>
            <sequence/>
            <diagram>
               <path>
                  <destattach>0.33</destattach>
                  <align>
                     <ToDest/>
                  </align>
               </path>
            </diagram>
         </composition>
         <reference>
            <type>type (declaration)</type>
            <cardinality>
               <ExactlyOne/>
            </cardinality>
            <diagram>
               <path>
                  <srcarmlen>0.3</srcarmlen>
               </path>
            </diagram>
         </reference>
      </entity_type>
      <entity_type>
         <name>quantity expression</name>
         <presentation>
            <below>type expression</below>
            <y>0.6</y>
            <deltah>0.3</deltah>
            <deltaw>0.1</deltaw>
         </presentation>
         <dependency_group>
            <presentation>
               <y>0.4</y>
            </presentation>
         </dependency_group>
         <reference>
            <name>substitutes_for</name>
            <type>formal_given</type>
            <cardinality>
               <ExactlyOne/>
            </cardinality>
            <diagram>
               <path>
                  <srcarmlen>0.7</srcarmlen>
                  <srcattach>0.15</srcattach>
                  <destattach>0.66</destattach>
                  <hstep>
                     <absdim>
                        <src>-0.40</src>
                     </absdim>
                  </hstep>
                  <srcsign>-1</srcsign>
                  <destsign>-1</destsign>
                  <label>
                     <xAdjustment>-0.2</xAdjustment>
                     <name>
                        <Split/>
                     </name>
                  </label>
               </path>
            </diagram>
         </reference>
         <entity_type>
            <name>actual_given</name>
            <presentation>
               <x>1.4</x>
               <y>0.6</y>
               <w>2.6</w>
               <name>
                  <Split/>
               </name>
            </presentation>
            <description>
              This is previously represented by relational table META_SET_DEPENDENCY.
         </description>
            <reference>
               <name>as</name>
               <type>formal_given</type>
               <cardinality>
                  <ExactlyOne/>
               </cardinality>
               <diagram>
                  <path>
                     <srcarmlen>0.7</srcarmlen>
                     <destattach>0.33</destattach>
                     <hstep>
                        <absdim>
                           <src>-2.4</src>
                        </absdim>
                     </hstep>
                     <srcsign>-1</srcsign>
                     <destsign>-1</destsign>
                     <label>
                        <name>
                           <Split/>
                        </name>
                     </label>
                  </path>
               </diagram>
            </reference>
         </entity_type>
         <entity_type>
            <name>quantival_term</name>
            <presentation>
               <below>actual_given</below>
               <w>2.6</w>
               <name>
                  <Split/>
               </name>
            </presentation>
            <description/>
            <composition>
               <name>with</name>
               <type>quantity expression</type>
               <cardinality>
                  <ZeroOneOrMore/>
               </cardinality>
               <sequence/>
               <diagram>
                  <path>
                     <srcarmlen>0.7</srcarmlen>
                     <destattach>0.66</destattach>
                     <destarmlen>0.8</destarmlen>
                     <hstep>
                        <absdim>
                           <src>1.8</src>
                        </absdim>
                     </hstep>
                     <label>
                        <position>
                           <Left/>
                        </position>
                     </label>
                  </path>
               </diagram>
            </composition>
            <reference>
               <name>head</name>
               <type>quantity (declaration)</type>
               <cardinality>
                  <ExactlyOne/>
               </cardinality>
               <diagram>
                  <path>
                     <srcarmlen>0.7</srcarmlen>
                     <hstep>
                        <absdim>
                           <src>-2.8</src>
                        </absdim>
                     </hstep>
                     <srcsign>-1</srcsign>
                     <destsign>-1</destsign>
                     <label>
                        <name>
                           <Split/>
                        </name>
                     </label>
                  </path>
               </diagram>
            </reference>
         </entity_type>
      </entity_type>
   </entity_type>
</entity_model>
