Thinking Through Data

Understanding your content as data enables powerful means to transform web features.

tl;dr

Static web applications and frameworks depend on data structures and data transformations to enable their features and utility. Data can be structured via a variety of formats, including tabular data represented most often via CSV spreadsheets, semi-structured data represented as JSON, and human readable key-value pairs listed in YAML files or frontmatter. These formats are all plain text formats, and making sure that your content and files are in plain text is essential for static sites and frameworks to operate.

How Static Site Generators use Data

Static web projects and frameworks depend on users following specific data requirements in order to make available, via data transformation, the visualization and alternative data output features core to their use. They do so because the features they’re building require data be ingested into their scripts or templates in specifically organized and formatted ways in order for the visualizations to work.

Static web frameworks can enable a number of different types of visualizations and interactions, as well as a variety of additional data outputs, by iterating over collection and configuration data. This enables a user to focus on their collection or exhibit data as a whole rather than learning a series of specific ways of representing that data for various scripts or presentations.

Data Requirements

The important thing to remember in regards to a static context is that any static framework or model you might be working on will require certain features of your data. These might include:

Data Transformation as Preservation Practice

Many static projects and frameworks, especially those coming out of the library world, use this inherent data transformation ability to provide project data in a variety of open formats. For instance, CollectionBuilder (following the #collectionsasdata mantra) provides digital collection data in several different formats, including CSV and JSON files that present the entirety of the collection to GEOJSON files of just those items that have latitude and longitude to enable reuse in various mapping applications.

This transformational ability allows project/collection data:


contributor: Devin Becker (University of Idaho Library)
last update: 2021-08-04