Appendix A: Data Model DiagramΒΆ

digraph airports {
    graph [
        fontname="Roboto"
        fontsize=10
        rankdir=LR
        newrank=true
        splines=polyline
        outputorder=edgesfirst
        nodesep=0.45
        ranksep=0.8
        pad=0.2
        bgcolor="white"
    ]
    node [fontname="Roboto" fontsize=8 shape=plain]
    edge [fontname="Roboto" fontsize=7 color="#4A4A4A" arrowsize=0.7]

    subgraph cluster_external {
        label="Tables not included in product"
        color="#8A8A8A"
        style="rounded"

        state [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFD966">
            <TR><TD COLSPAN="2"><B>STATE</B></TD></TR>
            <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">state_pid: varchar2(15)</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">state_name: varchar2(50)</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">state_abbreviation: varchar2(3)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
        </TABLE>>]

        locality [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFD966">
            <TR><TD COLSPAN="2"><B>LOCALITY</B></TD></TR>
            <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">locality_pid: varchar2(15)</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">locality_name: varchar2(100)</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">postcode: varchar2(4)</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">primary_postcode: varchar2(4)</TD></TR>
            <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT">locality_class_code: char(1)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
            <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_gazetted: date</TD></TR>
            <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="state_fk">state_pid: varchar2(15)</TD></TR>
        </TABLE>>]
    }

    airport_lg [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFD966">
        <TR><TD COLSPAN="2"><B>AIRPORT_LG</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">airport_lg_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">airport_name: varchar2(200)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="locality_fk">locality_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="hierarchy_fk">transport_hierarchy_code: number(5)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="state_fk">state_pid: varchar2(15)</TD></TR>
    </TABLE>>]

    transport_hierarchy [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFB570">
        <TR><TD COLSPAN="2"><B>TRANSPORT_HIERARCHY_AUT</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">code: number(5)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">name: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">description: varchar2(254)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
    </TABLE>>]

    airport_line [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#7EA6E0">
        <TR><TD COLSPAN="2"><B>AIRPORT_LG_LINE</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT">airport_lg_line_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="airport_fk">airport_lg_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="surface_fk">surface_type_code: number(2)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="status_fk">operational_status_code: number(2)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">jurisdiction_id: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">geometry: line</TD></TR>
    </TABLE>>]

    airport_polygon [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#7EA6E0">
        <TR><TD COLSPAN="2"><B>AIRPORT_LG_POLYGON</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT">airport_lg_polygon_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="airport_fk">airport_lg_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="surface_fk">surface_type_code: number(2)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="status_fk">operational_status_code: number(2)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">jurisdiction_id: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">geometry: polygon</TD></TR>
    </TABLE>>]

    airport_point [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#7EA6E0">
        <TR><TD COLSPAN="2"><B>AIRPORT_LG_POINT</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT">airport_lg_point_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_created: date</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">date_retired: date</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="airport_fk">airport_lg_pid: varchar2(15)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="surface_fk">surface_type_code: number(2)</TD></TR>
        <TR><TD BGCOLOR="white">FK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="status_fk">operational_status_code: number(2)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">jurisdiction_id: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">geometry: point</TD></TR>
    </TABLE>>]

    surface_type [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFB570">
        <TR><TD COLSPAN="2"><B>SURFACE_TYPE_AUT</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">code: number(2)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">name: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">description: varchar2(254)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
    </TABLE>>]

    operational_status [label=<<TABLE BORDER="1" CELLBORDER="0" STYLE="ROUNDED" CELLSPACING="0" CELLPADDING="5" BGCOLOR="#FFB570">
        <TR><TD COLSPAN="2"><B>OPERATIONAL_STATUS_AUT</B></TD></TR>
        <TR><TD BGCOLOR="white">PK</TD><TD BGCOLOR="white" ALIGN="LEFT" PORT="pk">code: number(2)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">name: varchar2(50)</TD></TR>
        <TR><TD BGCOLOR="white"></TD><TD BGCOLOR="white" ALIGN="LEFT">description: varchar2(254)&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</TD></TR>
    </TABLE>>]

    legend [label=<<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="4" CELLPADDING="3">
        <TR><TD COLSPAN="2" ALIGN="LEFT"><B>Legend</B></TD></TR>
        <TR><TD BORDER="1" BGCOLOR="#7EA6E0">  </TD><TD ALIGN="LEFT">Spatial Attribute Table</TD></TR>
        <TR><TD BORDER="1" BGCOLOR="#FFD966">  </TD><TD ALIGN="LEFT">Textual Attribute Table</TD></TR>
        <TR><TD BORDER="1" BGCOLOR="#FFB570">  </TD><TD ALIGN="LEFT">Authority Code Table</TD></TR>
    </TABLE>>]

    { rank=same; state; locality; legend }
    { rank=same; airport_lg; transport_hierarchy }
    { rank=same; surface_type; airport_line; airport_polygon; airport_point; operational_status }

    state -> locality -> legend [style=invis weight=20]
    airport_lg -> transport_hierarchy [style=invis weight=20]
    surface_type -> airport_line -> airport_polygon -> airport_point -> operational_status [style=invis weight=20]

    state:pk:s -> locality:state_fk:n [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
    state:pk:e -> airport_lg:state_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
    locality:pk:e -> airport_lg:locality_fk:w [dir=both arrowtail=odot arrowhead=crowodot]
    transport_hierarchy:pk:n -> airport_lg:hierarchy_fk:s [dir=both arrowtail=tee arrowhead=crowodot constraint=false]

    airport_lg:pk:e -> airport_line:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
    airport_lg:pk:e -> airport_polygon:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]
    airport_lg:pk:e -> airport_point:airport_fk:w [dir=both arrowtail=tee arrowhead=crowodot]

    surface_type:pk:e -> airport_line:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
    surface_type:pk:e -> airport_polygon:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
    surface_type:pk:e -> airport_point:surface_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]

    operational_status:pk:e -> airport_line:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
    operational_status:pk:e -> airport_polygon:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
    operational_status:pk:e -> airport_point:status_fk:e [dir=both arrowtail=tee arrowhead=crowodot constraint=false]
}