Skip to content

Commit

Permalink
Moved ERDs to hsds/serialiaztion.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Marshall committed Oct 25, 2023
1 parent c55a7d1 commit 59afd2d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 39 deletions.
39 changes: 0 additions & 39 deletions docs/hsds/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,42 +56,3 @@ HSDS also defines some special objects which have relationships that fall outsid
* `attribute` – see [Attribute](schema_reference.md#attribute). This can be joined to any table other than itself or `metadata` by using its `_link_id` property. It can be linked to `taxonomy_term` using its `taxonomy_term_id` property.
* `metadata` – see [Metadata](schema_reference.md#metadata). This can be joined to any table other than itself or `attribute` through its `resource_id` property.
* `taxonomy_term` – see [Taxonomy Term](schema_reference.md#taxonomy_term). This can be joined to `taxonomy` using its `taxonomy_id` property.

#### Entity Relationship Diagram

##### Core Objects only

```{eval-rst}
`[enlarge] <../_images/entity_relationship_diagram_core_tables.svg>`_
.. raw:: html
:file: ../extras/_images/entity_relationship_diagram_core_tables.svg
:download:`[download] <../extras/_images/entity_relationship_diagram_core_tables.svg>`
```

##### Full

<div style="background-color: #77DD77;">

Core objects are shown in green.

</div>

<div style="background-color: #AEC6CF;">

Other objects are shown in blue.

</div>

```{eval-rst}
`[enlarge] <../_images/entity_relationship_diagram.svg>`_
.. raw:: html
:file: ../extras/_images/entity_relationship_diagram.svg
:download:`[download] <../extras/_images/entity_relationship_diagram.svg>`
```
41 changes: 41 additions & 0 deletions docs/hsds/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,44 @@ Instead of dereferencing and embedding objects such as in the canonical JSON ser
We provide an existing package descriptor generated directly from the canonical HSDS JSON Schema files. It is available [here](../../datapackage.json) and contains details of field names and file names for this serialization. Publishers should use this to support their Tabular Data Package serialization rather than develop their own `datapackage.json` file. Examples CSV files are available in the HSDS Github repo [here](https://github.com/openreferral/specification/tree/3.0/examples/csv).

Prior to HSDS 3.0, Tabular Data Packages were the primary publication format for HSDS data.

### Entity Relationship Diagrams

The following diagrams are generated directly from the [datapackage.json](https://raw.githubusercontent.com/openreferral/specification/3.0/datapackage.json) file. They are representative of the Tabular Data Package serialization of HSDS but not the JSON model.

#### Core Objects only

```{eval-rst}
`[enlarge] <../_images/entity_relationship_diagram_core_tables.svg>`_
.. raw:: html
:file: ../extras/_images/entity_relationship_diagram_core_tables.svg
:download:`[download] <../extras/_images/entity_relationship_diagram_core_tables.svg>`
```

#### Full

<div style="background-color: #77DD77;">

Core objects are shown in green.

</div>

<div style="background-color: #AEC6CF;">

Other objects are shown in blue.

</div>

```{eval-rst}
`[enlarge] <../_images/entity_relationship_diagram.svg>`_
.. raw:: html
:file: ../extras/_images/entity_relationship_diagram.svg
:download:`[download] <../extras/_images/entity_relationship_diagram.svg>`
```

0 comments on commit 59afd2d

Please sign in to comment.