simpleRdbms
Schema
tables
RModelElement
kind
name
Table
schema
column
key
foreignKey
Column
owner
key
foreignKey
type
Key
column
owner
ForeignKey
column
refersTo
owner
<?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="simpleRdbms" nsURI="http://simpleRdbms/1.0" nsPrefix="simpleRdbms">
  <eClassifiers xsi:type="ecore:EClass" name="Schema" eSuperTypes="#//RModelElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1"
        eType="#//Table" containment="true" eOpposite="#//Table/schema"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="RModelElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="kind" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//RModelElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="schema" lowerBound="1"
        eType="#//Schema" eOpposite="#//Schema/tables"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="column" upperBound="-1"
        eType="#//Column" containment="true" eOpposite="#//Column/owner"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="key" upperBound="-1" eType="#//Key"
        containment="true" eOpposite="#//Key/owner"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKey" upperBound="-1"
        eType="#//ForeignKey" containment="true" eOpposite="#//ForeignKey/owner"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//RModelElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/column"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="key" upperBound="-1" eType="#//Key"
        eOpposite="#//Key/column"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKey" upperBound="-1"
        eType="#//ForeignKey" eOpposite="#//ForeignKey/column"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Key" eSuperTypes="#//RModelElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="column" lowerBound="1"
        eType="#//Column" eOpposite="#//Column/key"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/key"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//RModelElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="column" lowerBound="1"
        eType="#//Column" eOpposite="#//Column/foreignKey"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="refersTo" lowerBound="1"
        eType="#//Key"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/foreignKey"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"simpleRdbms","nsURI":"http://simpleRdbms/1.0","name":"simpleRdbms","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Schema","instanceClass":null,"abstract":false,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"RModelElement","instanceClass":null,"abstract":false,"id":2,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Table","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Column","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Key","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ForeignKey","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"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":"tables","changeable":true,"resolveProxies":true,"lowerBound":0,"id":7,"derived":false},{"id":8,"eClass":"EGenericType"},{"id":9,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"schema","changeable":true,"resolveProxies":true,"lowerBound":1,"id":10,"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":"kind","changeable":true,"lowerBound":0,"iD":false,"id":11,"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":"name","changeable":true,"lowerBound":0,"iD":false,"id":12,"derived":false},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"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":"column","changeable":true,"resolveProxies":true,"lowerBound":0,"id":15,"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":"key","changeable":true,"resolveProxies":true,"lowerBound":0,"id":16,"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":"foreignKey","changeable":true,"resolveProxies":true,"lowerBound":0,"id":17,"derived":false},{"id":18,"eClass":"EGenericType"},{"id":19,"eClass":"EGenericType"},{"id":20,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":21,"derived":false},{"id":22,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"owner","changeable":true,"resolveProxies":true,"lowerBound":1,"id":25,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"key","changeable":true,"resolveProxies":true,"lowerBound":0,"id":26,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"foreignKey","changeable":true,"resolveProxies":true,"lowerBound":0,"id":27,"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":"type","changeable":true,"lowerBound":0,"iD":false,"id":28,"derived":false},{"id":29,"eClass":"EGenericType"},{"id":30,"eClass":"EGenericType"},{"id":31,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"column","changeable":true,"resolveProxies":true,"lowerBound":1,"id":32,"derived":false},{"id":33,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"column","changeable":true,"resolveProxies":true,"lowerBound":1,"id":34,"derived":false},{"id":35,"eClass":"EGenericType"},{"id":36,"eClass":"EGenericType"},{"id":37,"eClass":"EGenericType"},{"id":38,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"refersTo","changeable":true,"resolveProxies":true,"lowerBound":1,"id":39,"derived":false},{"id":40,"eClass":"EGenericType"},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"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":1,"target":0},{"source":1,"target":2},{"source":1,"target":7},{"source":1,"target":8},{"source":7,"target":3},{"source":7,"target":9},{"source":7,"target":1},{"source":7,"target":10},{"source":9,"target":3},{"source":8,"target":2},{"source":2,"target":0},{"source":2,"target":11},{"source":2,"target":12},{"source":11,"target":13},{"source":11,"target":2},{"source":12,"target":14},{"source":12,"target":2},{"source":3,"target":0},{"source":3,"target":2},{"source":3,"target":10},{"source":3,"target":15},{"source":3,"target":16},{"source":3,"target":17},{"source":3,"target":18},{"source":10,"target":1},{"source":10,"target":19},{"source":10,"target":3},{"source":10,"target":7},{"source":19,"target":1},{"source":15,"target":4},{"source":15,"target":20},{"source":15,"target":3},{"source":15,"target":21},{"source":20,"target":4},{"source":16,"target":5},{"source":16,"target":22},{"source":16,"target":3},{"source":16,"target":23},{"source":22,"target":5},{"source":17,"target":6},{"source":17,"target":24},{"source":17,"target":3},{"source":17,"target":25},{"source":24,"target":6},{"source":18,"target":2},{"source":4,"target":0},{"source":4,"target":2},{"source":4,"target":21},{"source":4,"target":26},{"source":4,"target":27},{"source":4,"target":28},{"source":4,"target":29},{"source":21,"target":3},{"source":21,"target":30},{"source":21,"target":4},{"source":21,"target":15},{"source":30,"target":3},{"source":26,"target":5},{"source":26,"target":31},{"source":26,"target":4},{"source":26,"target":32},{"source":31,"target":5},{"source":27,"target":6},{"source":27,"target":33},{"source":27,"target":4},{"source":27,"target":34},{"source":33,"target":6},{"source":28,"target":35},{"source":28,"target":4},{"source":29,"target":2},{"source":5,"target":0},{"source":5,"target":2},{"source":5,"target":32},{"source":5,"target":23},{"source":5,"target":36},{"source":32,"target":4},{"source":32,"target":37},{"source":32,"target":5},{"source":32,"target":26},{"source":37,"target":4},{"source":23,"target":3},{"source":23,"target":38},{"source":23,"target":5},{"source":23,"target":16},{"source":38,"target":3},{"source":36,"target":2},{"source":6,"target":0},{"source":6,"target":2},{"source":6,"target":34},{"source":6,"target":39},{"source":6,"target":25},{"source":6,"target":40},{"source":34,"target":4},{"source":34,"target":41},{"source":34,"target":6},{"source":34,"target":27},{"source":41,"target":4},{"source":39,"target":5},{"source":39,"target":42},{"source":39,"target":6},{"source":42,"target":5},{"source":25,"target":3},{"source":25,"target":43},{"source":25,"target":6},{"source":25,"target":17},{"source":43,"target":3},{"source":40,"target":2}],"multigraph":true}