This repository has been archived on 2022-12-21. You can view files and clone it, but cannot push or open issues or pull requests.
ddm/hw01/graph_diagram.dot

102 lines
4.9 KiB
Text
Raw Normal View History

2022-11-09 14:28:14 +00:00
digraph D {
Publication [shape="box",label=<
<table border="0" cellborder="0" cellspacing="10" cellpadding="0">
<tr><td bgcolor="lightblue" colspan="5"><b> <br/>:Publication<br/> </b></td></tr>
<tr><td align="center" colspan="5">id: <i>int</i></td></tr>
<tr><td align="center" colspan="5">year: <i>int</i></td></tr>
<tr><td align="center" colspan="5">title: <i>string</i></td></tr>
<tr>
<td colspan="1">
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Article</b></td></tr>
<tr><td align="left">references: <i>string</i></td></tr>
<tr><td align="left">metadataVersion: <i>string</i></td></tr>
<tr><td align="left">pagesInJournal: <i>"[int]-[int]"</i></td></tr>
<tr><td align="left">volume: <i>string</i></td></tr>
</table>
</td>
<td colspan="1">
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Book</b></td></tr>
<tr><td align="left">isbn: <i>string</i></td></tr>
<tr><td align="left">metadataVersion: <i>string</i></td></tr>
<tr><td align="left">pages: <i>"[int]-[int]"</i></td></tr>
<tr><td> </td></tr>
</table>
</td>
<td colspan="1">
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:MastersThesis</b></td></tr>
<tr><td align="left">metadataVersion: <i>string</i></td></tr>
<tr><td align="left">references: <i>string</i></td></tr>
<tr><td> </td></tr>
<tr><td> </td></tr>
</table>
</td>
<td colspan="1">
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:MastersThesis</b></td></tr>
<tr><td align="left">metadataVersion: <i>string</i></td></tr>
<tr><td align="left">references: <i>string</i></td></tr>
<tr><td align="left">pagesInJournal: <i>"[int]-[int]"</i></td></tr>
<tr><td align="left">volume: <i>string</i></td></tr>
</table>
</td>
<td colspan="1">
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:WWW</b></td></tr>
<tr><td align="left">references: <i>string</i></td></tr>
<tr><td align="left">metadataVersion: <i>string</i></td></tr>
<tr><td align="left">pagesInJournal: <i>"[int]-[int]"</i></td></tr>
<tr><td align="left">url: <i>string</i></td></tr>
</table>
</td>
</tr>
</table>
>]
Author [shape="box", label=<
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Author</b></td></tr>
<tr><td align="left">id: int</td></tr>
<tr><td align="left">name: string</td></tr>
</table>
>]
Editor [shape="box", label=<
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Editor</b></td></tr>
<tr><td align="left">id: int</td></tr>
<tr><td align="left">name: string</td></tr>
</table>
>]
Publisher [shape="box", label=<
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Publsher</b></td></tr>
<tr><td align="left">id: int</td></tr>
<tr><td align="left">name: string</td></tr>
</table>
>]
Journal [shape="box", label=<
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:Journal</b></td></tr>
<tr><td align="left">id: int</td></tr>
<tr><td align="left">name: string</td></tr>
</table>
>]
School [shape="box", label=<
<table border="0" cellborder="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="lightblue"><b>:School</b></td></tr>
<tr><td align="left">id: int</td></tr>
<tr><td align="left">name: string</td></tr>
</table>
>]
Publication -> Author [label=" :AUTHORED_BY\n(1 or many)"]
Publication -> Editor [label=" :EDITED_BY\n(0 or 1)"]
Publication -> Publisher [label=" :PUBLISHED_BY\n(0 or 1)"]
Publication -> Journal [label=" :PUBLISHED_IN\n(0 or 1)"]
Publication -> School [label=" :SUBMITTED_AT\n(0 or many)"]
}