> For the complete documentation index, see [llms.txt](https://docs.geoprismregistry.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.geoprismregistry.com/version/v2.0.0/explore/spatial-knowledge-graphs-skg/create-and-publish-a-spatial-knowledge-graph-skg.md).

# Create and Publish a Spatial Knowledge Graph (SKG)

Publishing an SKG is a two-part process. First you create a configuration that says which types to include and which dates to use. Then you publish versions of it. External systems receive each version through an [external system synchronization](/version/v2.0.0/external-system-integration/synchronize-an-external-system.md).

## Creating an SKG configuration

1. Navigate to the **Publish SKG** page from the sidebar.

   <figure><img src="https://3732932512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9giVyCrmTxAs33YrSRbJ%2Fuploads%2FCZSbtN9CoIk6NaXzGPA6%2Fimage.png?alt=media&amp;token=66b53a00-4cc8-4658-8bdf-5881570030b6" alt=""><figcaption></figcaption></figure>
2. Click **Create** to open the **Configuration** form.

   <figure><img src="https://3732932512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9giVyCrmTxAs33YrSRbJ%2Fuploads%2FmCRd60lEyF7vi2i7jyRZ%2Fimage.png?alt=media&amp;token=0a1d21ad-5d59-400b-8714-262beeed011f" alt=""><figcaption></figcaption></figure>
3. Fill out the form. Select every type the SKG needs: an edge is only included when its edge type and the types at both of its ends are all selected.

   | Field                        | Description                                                                                                                                                                                                                                                                 | Required |
   | ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
   | Label                        | The label of the SKG.                                                                                                                                                                                                                                                       | Required |
   | Valid For                    | <p>The date whose attribute values are published. Geoprism Registry tracks changes over time, so each Geo-Object and business object is published with the values it had on this date.</p><p><em>Example: For a 2025 analysis, set Valid For to December 31, 2025.</em></p> | Required |
   | Start of period of validity  | The start of the period of validity recorded on the published data.                                                                                                                                                                                                         | Required |
   | End of period of validity    | The end of the period of validity recorded on the published data. In the current version, this second date field is also labelled **Start of period of validity**.                                                                                                          | Required |
   | Geo-Object Types             | The Geo-Object Types to include. If a Geo-Object Type has a Concept Set, its Concepts are published automatically.                                                                                                                                                          |          |
   | Hierarchy Types              | The hierarchies to include.                                                                                                                                                                                                                                                 |          |
   | Directed Acyclic Graph Types | The directed acyclic graph types to include.                                                                                                                                                                                                                                |          |
   | Undirected Graph Types       | The undirected graph types to include.                                                                                                                                                                                                                                      |          |
   | Business Types               | The Business Types to include.                                                                                                                                                                                                                                              |          |
   | Business Edge Types          | The Business Edge Types to include.                                                                                                                                                                                                                                         |          |
4. Click **Submit**. The SKG's configuration summary opens.

   <figure><img src="https://3732932512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9giVyCrmTxAs33YrSRbJ%2Fuploads%2Fq5wQ0QivhmU9eSMHegtu%2Fimage.png?alt=media&amp;token=f5abe704-fe97-46bd-ac59-ff7928ba0571" alt=""><figcaption></figcaption></figure>
5. Click **Publish updates** to publish the first version of the SKG.

   <figure><img src="https://3732932512-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9giVyCrmTxAs33YrSRbJ%2Fuploads%2Fz6KPG3H1ylbaKMJigzXq%2Fimage.png?alt=media&amp;token=46eeacfd-c458-44ef-bbf5-729b447bae3e" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Publishing deletes all [rollback checkpoints](/version/v2.0.0/curate/rollback-data.md). Imports made before a publish can no longer be rolled back.
{% endhint %}

## Publishing updates

After the first version, you control when external systems receive new data by publishing new versions.

1. On the **Publish SKG** page, click the SKG in the list.
2. Click **Publish updates**.

Each new version contains only the changes to the selected types since the previous version. If nothing has changed, a message says there are no new events to publish.

The **Versions** table lists each version with its **Number**, **UID** and **Date**.

## Deleting an SKG

Click the trash icon next to the SKG in the list and confirm by clicking **Delete**.
