<?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.2</deltaw>
    </diagram>
  </presentation>
  <entity_type>
    <name>character</name>
    <presentation>
      <x>0.5</x>
      <y>0.1</y>
      <w>2.0</w>
    </presentation>
    <attribute>
      <name>name</name>
      <type>
        <string/>
      </type>
      <identifying/>
    </attribute>
    <attribute>
      <name>sex</name>
      <type>
        <string/>
      </type>
    </attribute>  
    <composition>      
      <name>receives</name>
      <type>love</type>
      <cardinality>
        <OneOrMore/>
      </cardinality>
      <inverse>for</inverse>
      <diagram>
        <path>
          <align>
            <ToSrc/>
          </align>
          <label><position><Left/></position></label>
          <inverse><label><position><Left/></position></label></inverse>
           <id><label><position><Left/></position></label></id>
        </path>
      </diagram>
    </composition>
    <composition>
      <name>shows</name>
      <cardinality>
        <OneOrMore/>
      </cardinality>
      <type>love</type>
      <inverse>of</inverse>
      <diagram>
        <path>
          <align>
            <ToSrc/>
          </align>
        </path>
      </diagram>
    </composition>
  </entity_type>
  <entity_type>
    <name>love</name>
    <dependency>
      <name>for</name>
      <cardinality>
        <ExactlyOne/>
      </cardinality>
      <type>character</type>
    </dependency>
    <dependency>
      <name>of</name>
      <type>character</type>
      <cardinality>
        <ExactlyOne/>
      </cardinality>
      <inverse>shows</inverse>
    </dependency>
    <!--
        <attribute>
      <name>for character</name>
      <type>
        <string/>
      </type>
      <implementationOf>
        <rel>for</rel>
      </implementationOf>
    </attribute>
    <attribute>
      <name>of character</name>
      <type>
        <string/>
      </type>
      <implementationOf>
        <rel>of</rel>
      </implementationOf>
    </attribute>
    -->

    <presentation>
      <below>character</below>
    </presentation>
  </entity_type>
</entity_model>
