3 Data description

The demonstration dataset consists of two comma-separated files under data/fixtures/, described by the machine-readable descriptor data/example_descriptor.json (Friedman, n.d.).

3.1 File inventory

The descriptor declares each file’s media type, sha256 checksum, and row count. The file inventory figure shows the declared row counts, read directly from the descriptor by file_inventory_rows() in src/data_descriptor/figures.py and plotted by scripts/generate_figures.py.

Bar chart comparing declared row counts for the measurement and subject CSV files.
Figure 1: File inventory: declared row counts per file, from file_inventory_rows(). The measurement table is the larger of the two files; the subject table is its dimension companion. Both are declared as text/csv. The bars show the counts declared in the descriptor. Byte verification compares these declarations with actual file rows.

File paths in the descriptor resolve relative to its directory. Rerun the figure producer after changing the descriptor or fixtures so the embedded figures and their provenance registry reflect the same inputs.

3.2 Release boundary

The descriptor is deliberately a metadata object. For a real dataset, the descriptor and its checksums can be published even when the underlying bytes are access-controlled: the checksums let a downstream user verify integrity once they obtain the files through the appropriate channel. In this template the fixture bytes are public and small, so they are shipped alongside the descriptor and used to demonstrate end-to-end verification.