Skip to content

Commit

Permalink
database serialization: diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
michmech committed Aug 19, 2023
1 parent c2ef71b commit 857214b
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<mxfile host="Electron" modified="2023-08-19T15:55:33.563Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.3.0 Chrome/104.0.5112.114 Electron/20.1.3 Safari/537.36" etag="CtaF4uOgUQqGKUXkn79G" version="20.3.0" type="device"><diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">7V1rk6K6Fv01frxT8hL9OPbjzK3bfaare07dcz+mIa05g4TCOOr8+pvwUDSg2D4C7Ex11UAID7PXzoK1d5KedTdb/RGjaPpMfRz0zL6/6ln3PdM0+oM+/0+UrNOSwWiYFkxi4meVtgVv5DfOz8xKF8TH852KjNKAkWi30KNhiD22U4bimC53q33QYPeuEZpgqeDNQ4Fc+l/is2laOjTdbfk3TCbT/M7GYJQemaG8cvZL5lPk0+VOEV6xRxqy7BFfcDxDIQ4ZP/KM4p847jkPU8bEL/3aMx/534eo/WVC6STAKCLzLx6d8WJvzqs8fqAZCUQzFy40zi7Eb2c99Ky7mFKWbs1WdzgQtsrNkD7TY8XRTTvE4ro1ThiRr7/t9+Xzw+z5xb9/IYEVRf/KrvILBYusfTFbz2hAJ4QbOW0mts7bnrdYJDYZehdF4zlDMcsgYvV5ATc6QyTkv8+6N5L9IEDRnCTV05IpCfwntKYLll8o3xt/kBX2X1OEiLocLE/8YmJXXFy09Vv2MOIwCsgk5NsebwBxx3GM5/xZntCcZTWSM9LHMwZ8P/uxOGZ4VdmKxsY23IcwnWEWr3mV7IRhhpTMezbIWW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5tDqmKE94K0PJyhLqf1oCuXqviKKKHV+qh+W5MKSu+p4jZQ56pj0WN/wM=</diagram></mxfile>
<mxfile host="Electron" modified="2023-08-19T17:20:26.886Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/20.3.0 Chrome/104.0.5112.114 Electron/20.1.3 Safari/537.36" etag="0IUA9s2v68zaY-f-5oTe" version="20.3.0" type="device"><diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">7V3bcqM6Fv0aP54uc/HtsZ3L6alJTqeSPjVnHhVQbE1j5MJyO+6vHwkQYMuOIbEjkHZXqhqEEFh7bZa0tCX1vKvF658JWs7vaYijntsPX3vedc91nf6wz/8TKdssZTgZZwmzhIR5pjLhifzG8s48dU1CvNrJyCiNGFnuJgY0jnHAdtJQktDNbrYXGu0+dYlmWEl4ClCkpv6HhGyepY7dUZn+DZPZXD7ZGU6yKwskM+e/ZDVHId3sJOFXdktjlr/iA04WKMYx41fuUfITJ73BzZwx8Uu/9txb/vcicn+ZUTqLMFqS1ZeALnhysOJZbl/QgkSimisFTfOC+OO8m553lVDKsqPF6xWOhK2kGbJ3uj1ytaiHRJRb44YJ+frbf97c3yzuH8LrBxJ5y+UfeSm/ULTO6xez7YJGdEa4kbNqYltZ97zGluKQoWeRNF0xlLAcIl6fJ3CjM0Ri/vu8ayc9jyK0XJE0e5YyJ1F4h7Z0zWRB8mz6Ql5x+JghROTlYLnjhYlTUbio66f8ZcRlFJFZzI8DXgHiidMEr/i73KEVy3Okd2Sv5wz5uVpl8vfjhOHXSlJehX9iusAs2fIs+dVxjpTcewrkbEosun6eNq/iUPodysE1K4ounvbI/QXFHEnl4/z+7vP8sfq8yYHHeXtPQxGvohgxPKXrOFxVgcIPKj+0TErh0wBKrgKlt/HzKHxvOqcJ+S1QE+VWrmIqPd+QRcSd5xtG4V7SlKYfsRQbJIquOGwF8GIaYwV7IlOY0OUPlMwwyxOWlOTOPpjyP15nV/0vg96Av+sVP3fKc/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kDEOh3J6avhykAkZx5seAeRaJ/v5vTVBRkMnvBW+gHwiNM/MATBu7xBthMmCR5x1nuzagZcE4RYSCNqmDPQiH4a0T4JzumrSy8YTCKj2gYyn0TUdRRCslpGaPsXWrS+P6IJFfYRh3wPRZL8sV2CHFlHjvRaIEc6IEdeXo50GtO/fjnSsUyOdECOLOviQGxzBzaIuaQU2QAeFjYFQIq8fB+yOYnolyIdu6RIB6TIsi5AivwYQiykETU0Gljj01lDv/LoHF9bofsUAUJjWRcHhEa8ChKytGwKZRNU2EcLUjWrwERAYPX95WmJcTB/mzQ6KDVWo397rjdJ//X2w4qrV1ScNe6u+nvx44O6y2y5bjOIdW9XAscFkfT9Iuk50Hziw9AhWVUip+uy6gWtCkJsWReqEGvm9getgJOFTSsQbt/fBW8TsemXel0zpN4LGhXE4bIuVHE4nWJphhjcCgxZSGYgH3eSu/QLzq4a6grcdci1gLt4Xaiq9Zx/KjY0CX+UCwACk50NUfYxmXwmMFm3mEz/1hSOp0rVBlBZP/13Fqt69a1qPJV5qhhdbt1tJIPpAZKFDNZgCzWgtDZTmvYtNhyvgUjdFUI7o00LVwNCczxVhGZoZiCP6cGPhTx2fKs3oK0205b2XUAc77gcbSNLDWub0HyWUuVm0xaKbwWQLKQrVZs+iqZgnUTbaYKCn4JKpps5YfiJG1tc2yRo2dtZX3d3gd6XiCy/5ceKSYs+dq3lbt030KJionEwz3BvudbhIYnugPXGF+MFyULtWTNZHjdaM9nptXjN5F2lpxOrJsuQiJOrJhdzyDQvm+z09yK4T2wDoOT3h5+xcrKvbsoH7gbuVt/d+oa42/hz3E1tcHRxR4CuulvmS99b6nTFKhonvW7otsLpvPEeZXkntrrZyz/wPsXnvLb53Lsort9Rn2srxY1qU5zsqp7P2z7YRVL3SwQSAUAX68GfRPS4nfQxbkgfo4/t4cRPE0pZNbtYe+Wehljk+D8=</diagram></mxfile>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions dmlex-v1.0/specification/serializations/RDB/specification.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,65 @@
</itemizedlist>
</section>

<section role="informative">
<title>Database diagrams</title>
<para>
The following diagrams provide a high-level overview of the relational database serialization of DMLex.
Each diagram presents a "view" of the database from the perspective of one of the modules or from the perspective of the DMLex Core.
The diagrams shown here follow the usual conventions used in relational database diagrams:
</para>
<itemizedlist>
<listitem>
<para>Each box represents a database table and contains a list of its column headings.
The abbreviation PK next to a column name indicates that the column is a primary key.
The abbreviation FK next to a column name indicates that the column is a foreign key.
</para>
</listitem>
<listitem>
<para>
Lines between the boxes represent relationships between tables,
with the conventional "crow's feet" symbols at the ends of the lines
to indicate the relation's arity (one-to-many etc.).
</para>
</listitem>
</itemizedlist>
<para>In addition to that, the following non-standard conventions are used in the diagrams:</para>
<itemizedlist>
<listitem>
<para>A curly bracket surrounding a group of foreign keys in a table indicates the constraint
that exactly one of the foreign keys in this group must be non-empty while all the other ones must be null.</para>
</listitem>
<listitem>
<para>Tables and columns shown in grey are tables are defined in another module (or in the core)
and are shown only for information.</para>
</listitem>
</itemizedlist>
<section>
<title>Database diagram: DMLex Core</title>
<graphic fileref="serializations/RDB/databaseDiagrams/core.svg" contentwidth="16cm"/>
</section>
<section>
<title>Database diagram: DMLex Crosslingual Module</title>
<graphic fileref="serializations/RDB/databaseDiagrams/xlingual.svg" contentwidth="16cm"/>
</section>
<section>
<title>Database diagram: DMLex Controlled Values Module</title>
<graphic fileref="serializations/RDB/databaseDiagrams/values.svg" contentwidth="16cm"/>
</section>
<section>
<title>Database diagram: DMLex Linking Module</title>
<graphic fileref="serializations/RDB/databaseDiagrams/linking.svg" contentwidth="16cm"/>
</section>
<section>
<title>Database diagram: DMLex Annotation Module</title>
<graphic fileref="serializations/RDB/databaseDiagrams/annotation.svg" contentwidth="16cm"/>
</section>
<section>
<title>Database diagram: DMLex Etymology Module</title>
<graphic fileref="serializations/RDB/databaseDiagrams/etymology.svg" contentwidth="16cm"/>
</section>
</section>

<section id="RDBTables" role="normative">
<title>DMLex relational database serialization tables</title>
<xi:include href="tables/lexicographicResources.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
Expand Down

0 comments on commit 857214b

Please sign in to comment.