<?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>
      <deltah>0.1</deltah>
    </diagram>
  </presentation>
 
    <entity_type>
      <name>character</name>
      <presentation>  
         <x>0.1</x>
         <y>0.1</y>         
        <h>1.5</h>
      </presentation>
      <attribute>
        <name>name</name>
        <type><string/></type>
      </attribute> 
      <attribute>
        <name>sex</name>
        <type><string/></type>
      </attribute>  
      <reference>
        <name>shows</name>
        <cardinality>
          <OneOrMore/>
        </cardinality>
        <type>love</type>
        <inverse>of</inverse>
      </reference>
      <reference>
        <name>receives</name>
        <cardinality>
          <OneOrMore/>
        </cardinality>
        <type>love</type>
        <inverse>for</inverse>
      </reference>    
    </entity_type>
    <entity_type>
      <name>love</name>
      <presentation>
        <rightOf>character</rightOf>
        <x>2.4</x>        
        <h>1.5</h>
      </presentation>
      <attribute>
        <name>of character</name>
        <type><string/></type>
        <implementationOf>
          <rel>of</rel>
        </implementationOf>
      </attribute> 
      <attribute>
        <name>for character</name>
        <type><string/></type>
        <implementationOf>
          <rel>for</rel>
        </implementationOf>
      </attribute> 
      <reference>
        <name>of</name>
        <type>character</type>
        <cardinality>
          <ExactlyOne/>
        </cardinality>
        <inverse>shows</inverse>
        <id>R1</id>
        <diagram>
          <path>
            <srcattach>0.25</srcattach>
            <align>
              <ToSrc/>
            </align>
            <label>
              <position>
                <Upside/>
              </position>
            </label>
            <id>
              <label>
                <xAdjustment>-0.2</xAdjustment>
                <position><Downside/></position>
              </label>
            </id>
          </path>
        </diagram>
      </reference>
      <reference>
        <name>for</name>
        <type>character</type>
        <cardinality>
          <ExactlyOne/>
        </cardinality>
        <inverse>receives</inverse>
        <id>R2</id>
        <diagram>
          <path>
            <srcattach>0.75</srcattach>
            <align>
              <ToSrc/>
            </align>
            <inverse>
              <label>
                <position>
                  <Upside/>
                </position>
              </label>
            </inverse>
            <id>
              <label>
                <xAdjustment>-0.2</xAdjustment>
                <position><Downside/></position>
              </label>
            </id>
          </path>
        </diagram>
      </reference>
    </entity_type>
</entity_model>
