Example
Family
parents
sons
daughters
pets
address
Member
firstName
lastName
Parent
family
Son
family
Daughter
family
Pet
name
breed
Dog
Cat
RaceDog
HuntingDog
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="Example" nsURI="http://emf-rest.com/Example" nsPrefix="Example">
  <eClassifiers xsi:type="ecore:EClass" name="Family">
    <eStructuralFeatures xsi:type="ecore:EReference" name="parents" ordered="false"
        upperBound="2" eType="#//Parent" containment="true" eOpposite="#//Parent/family"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="sons" upperBound="-1" eType="#//Son"
        containment="true" eOpposite="#//Son/family"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="daughters" ordered="false"
        upperBound="-1" eType="#//Daughter" containment="true" eOpposite="#//Daughter/family"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="pets" upperBound="-1" eType="#//Pet"
        containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="address" ordered="false"
        unique="false" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Member" abstract="true">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="constraints" value="validFirstName validLastName"/>
      <details key="roles" value="admin user"/>
    </eAnnotations>
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore/OCL">
      <details key="validFirstName" value="not self.firstName.oclIsUndefined() and self.firstName &lt;> ''"/>
      <details key="validLastName" value="not self.lastName.oclIsUndefined() and self.lastName &lt;> ''"/>
    </eAnnotations>
    <eAnnotations source="http:emf-rest.com/ROLE">
      <details key="admin" value="rw-"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName" ordered="false"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString" iD="true"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="lastName" unique="false"
        eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Parent" eSuperTypes="#//Member">
    <eStructuralFeatures xsi:type="ecore:EReference" name="family" ordered="false"
        lowerBound="1" eType="#//Family" eOpposite="#//Family/parents"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Son" eSuperTypes="#//Member">
    <eStructuralFeatures xsi:type="ecore:EReference" name="family" ordered="false"
        lowerBound="1" eType="#//Family" eOpposite="#//Family/sons"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Daughter" eSuperTypes="#//Member">
    <eStructuralFeatures xsi:type="ecore:EReference" name="family" ordered="false"
        lowerBound="1" eType="#//Family" eOpposite="#//Family/daughters"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Pet" abstract="true">
    <eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
      <details key="roles" value="other admin"/>
    </eAnnotations>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="breed" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Dog" eSuperTypes="#//Pet"/>
  <eClassifiers xsi:type="ecore:EClass" name="Cat" eSuperTypes="#//Pet"/>
  <eClassifiers xsi:type="ecore:EClass" name="RaceDog" eSuperTypes="#//Dog"/>
  <eClassifiers xsi:type="ecore:EClass" name="HuntingDog" eSuperTypes="#//Dog"/>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"Example","nsURI":"http://emf-rest.com/Example","name":"Example","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Family","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Member","instanceClass":null,"abstract":true,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Parent","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Son","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Daughter","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Pet","instanceClass":null,"abstract":true,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Dog","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Cat","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RaceDog","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"HuntingDog","instanceClass":null,"abstract":false,"id":10,"interface":false,"eClass":"EClass"},{"container":false,"ordered":false,"upperBound":2,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"parents","changeable":true,"resolveProxies":true,"lowerBound":0,"id":11,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"sons","changeable":true,"resolveProxies":true,"lowerBound":0,"id":12,"derived":false},{"container":false,"ordered":false,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"daughters","changeable":true,"resolveProxies":true,"lowerBound":0,"id":13,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"pets","changeable":true,"resolveProxies":true,"lowerBound":0,"id":14,"derived":false},{"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":false,"name":"address","changeable":true,"lowerBound":0,"iD":false,"id":15,"derived":false},{"id":16,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"family","changeable":true,"resolveProxies":true,"lowerBound":1,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"family","changeable":true,"resolveProxies":true,"lowerBound":1,"id":19,"derived":false},{"id":20,"eClass":"EGenericType"},{"container":true,"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"family","changeable":true,"resolveProxies":true,"lowerBound":1,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"id":23,"eClass":"EGenericType"},{"ordered":false,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"firstName","changeable":true,"lowerBound":0,"iD":true,"id":24,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":false,"name":"lastName","changeable":true,"lowerBound":0,"iD":false,"id":25,"derived":false},{"id":26,"eClass":"EGenericType"},{"id":27,"eClass":"EGenericType"},{"id":28,"eClass":"EGenericType"},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"id":33,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":34,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"breed","changeable":true,"lowerBound":0,"iD":false,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":1,"target":0},{"source":1,"target":11},{"source":1,"target":12},{"source":1,"target":13},{"source":1,"target":14},{"source":1,"target":15},{"source":11,"target":3},{"source":11,"target":16},{"source":11,"target":1},{"source":11,"target":17},{"source":16,"target":3},{"source":12,"target":4},{"source":12,"target":18},{"source":12,"target":1},{"source":12,"target":19},{"source":18,"target":4},{"source":13,"target":5},{"source":13,"target":20},{"source":13,"target":1},{"source":13,"target":21},{"source":20,"target":5},{"source":14,"target":6},{"source":14,"target":22},{"source":14,"target":1},{"source":22,"target":6},{"source":15,"target":23},{"source":15,"target":1},{"source":2,"target":0},{"source":2,"target":24},{"source":2,"target":25},{"source":24,"target":26},{"source":24,"target":2},{"source":25,"target":27},{"source":25,"target":2},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":17},{"source":3,"target":28},{"source":17,"target":1},{"source":17,"target":29},{"source":17,"target":3},{"source":17,"target":11},{"source":29,"target":1},{"source":28,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":19},{"source":4,"target":30},{"source":19,"target":1},{"source":19,"target":31},{"source":19,"target":4},{"source":19,"target":12},{"source":31,"target":1},{"source":30,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":21},{"source":5,"target":32},{"source":21,"target":1},{"source":21,"target":33},{"source":21,"target":5},{"source":21,"target":13},{"source":33,"target":1},{"source":32,"target":2},{"source":6,"target":0},{"source":6,"target":34},{"source":6,"target":35},{"source":34,"target":36},{"source":34,"target":6},{"source":35,"target":37},{"source":35,"target":6},{"source":7,"target":0},{"source":7,"target":6},{"source":7,"target":38},{"source":38,"target":6},{"source":8,"target":0},{"source":8,"target":6},{"source":8,"target":39},{"source":39,"target":6},{"source":9,"target":0},{"source":9,"target":7},{"source":9,"target":40},{"source":40,"target":7},{"source":10,"target":0},{"source":10,"target":7},{"source":10,"target":41},{"source":41,"target":7}],"multigraph":true}