---
pattern_id: A-002
slug: a-collection-centred-static-websites
title: Collection-centred static websites
pattern_type: architectural
problem: A research project has created or is creating a dataset it wants to put online on a website, and wants the benefits of a static website
applies_when:
  - The dataset is a collection of files, or abstract entities that can be managed in a spreadsheet plus a directory of assets
cluster: static-site
keywords:
  - static-site
  - collection
  - RO-Crate
  - FAIR
authors:
  - Peter Sefton (ANU / UQ)
  - Ben Foley (UQ)
  - Rosanna Smith (UQ)
diagrams:
  - slot: architecture
    caption: Core pattern architecture
  

---

## Summary

This is a particular form of the [Static websites] pattern focussed on representing a particular data collection on its own website. The Implementations section identifies two implementations of this approach.

| Recommendation | Why? |
|----------------|------|
| Make collection-based websites using the [Static websites] pattern. This approach takes a dataset as a collection of standardised data and metadata files as an input, and outputs HTML files and other assets that a simple web server can serve. It avoids using an application such as Omeka or WordPress, or making a new server-based application | To get all the sustainability and cost benefits of the Static websites pattern, including low-resource requirements to build, maintain and sustain datasets, with an assurance that outputs can be archived for the long term in standard archival repository services. |
| Structure sites so that they can be used in a variety of environments including from local or removable storage | To ensure data can be used without networks, or after hosting is no longer available. |
| Use existing data and metadata schemas and formats, such as RO-Crate, extending where necessary for representing the collection and its parts | To: <ul><li>aid in FAIR interoperability and findability<li>make it easier to reuse the data in future<li>make it possible to publish the same data to multiple places, eg depositing an RO-Crate package in a discipline repository (with a static site bundled-in)<li>reuse and adapt existing presentation templates, reducing technical and human resource requirements and improving consistency of outputs for users |


::diagram[architecture]

This diagram shows the main components needed for the pattern. Data curators can describe data assets with metadata, typically via spreadsheets, which they can then compile into a website via a build process set up by a developer. As per the [Static websites] pattern, this build process may be triggered automatically when data changes, or by the data curator.

The resulting site is ready to publish online, by an automated process or a manual action, such as a commit to git, or upload to a repository. 

This architecture shows two pathways for websites: they can be put online and served, or packaged for deposit in a repository and subsequent download.


## Context

This pattern applies when the data that needs to be presented can be represented in a spreadsheet or similar data structure, with or without a set of files that need to be served.

It does not apply when:
- There is a large amount of data (as a guide, something that does not fit in a GitHub repository)
- There are complex relationships to be modelled that would be better served with a live database and/or index and a query interface
- Where a live API is required for the data
- Where the data has mixed authorization requirements, that is content is licensed under more than one license, requiring some kind of authorization service. (It can be be used for non-open content if there is an authorization service in place for web based or download)

## Usage

To implement this pattern, choose one of the tools in Implementations or a similar application, or design a similar tool.

## Implementations

While this pattern could be coded in most static site generation tools we know of two main implementations of this pattern which use spreadsheets or other structured input to produce outputs.

1. [CollectionBuilder]: a tool that uses spreadsheets to describe data assets. See [I-003].
2. RO-Crate Static Site ([ROCSS]): a tool for rendering RO-Crate metadata, in spreadsheet or JSON-LD form, and data into an HTML website. See [I-004].

## References

### Models

This pattern addresses the \[Deposit / Publish\] action in the [HASS and Indigenous Research Data Commons (HASS&I RDC) Research Data Management (RDM): A Conceptual Overview].

### Other resources

## Acknowledgments

This pattern draws on sustainability and maintenance concerns raised by participants in the HASS and Indigenous RDC Community Data Lab co-design workshop. Participants repeatedly identified the long-term upkeep of research software, and the loss of systems when their builders move on, as the sector’s central challenge.

<!-- References -->
[CollectionBuilder]: https://collectionbuilder.github.io/
[HASS and Indigenous Research Data Commons (HASS&I RDC) Research Data Management (RDM): A Conceptual Overview]: /architecture/hass-rdc-rdm-concept-overview/
[I-003]: /patterns/i-collectionbuilder-static-websites/
[I-004]: /patterns/i-rocss-static-sites/
[ROCSS]: https://github.com/crate-works/ro-crate-static-site
[Static websites]: /patterns/a-static-websites/
