Overview
- Duration
- 180 minutes
- Format
Tutorial · 9 chapters in four parts · about 3 hours
- Worked example
The lab's Taiwan Politics database (
twpolitics)- Part I
Foundations. What kind of thing we are building, and who owns the schema.
- Part II
Getting Data In. From a researcher's spreadsheet to attributed, structured rows.
- Part III
The Audit Layer. Turning data quality problems into tractable human tasks.
- Part IV
Getting Data Out. Making trustworthiness legible to someone who was not there.
A research database is not a record of what happened. It is a record of what we have been able to establish about what happened, together with an honest account of how well we have established it. That second half is the difficult part, and it is what this workshop is about.
Most writing about data management assumes an application database — one that defines its own truth, validates at the point of entry, and treats bad input as something to reject. Research data is the opposite case. It arrives in bulk, from sources of varying quality, long after the events it describes, and rejecting a messy row destroys evidence that a specialist could later recover.
This workshop works through what follows from taking that difference seriously: how to design a schema you will certainly have to change, how to preserve an original while making it computable, how to write an audit rule that produces tractable human work rather than an unreadable backlog, how to decide whether two records are the same person, and how to publish the result so that a stranger can tell what was checked and what was not.
Every table, column, file path, rule code, and count named in these chapters is real. Only the example records are invented, so that nothing here depends on publishing an actual person's biographical data.
How to read this
The chapters build on each other and are best read in order, but Parts II, III, and IV each stand on their own if you already know the material before them.
Every chapter is written for two readers at once. The main text assumes no data-engineering background — it is written for a graduate student or a new research assistant. Passages marked IN THE CODE, with a blue rule down the left, give the exact files, functions, tables, and SQL for a developer. You can skip every one of them and the argument still works.
Each chapter closes with the terminology it introduced, defined once.
Content
Read the nine chapters in order or start with the part most relevant to your work. Each chapter has skippable In the Code passages for readers who want file, table, and SQL detail.
- 01 What a Research Database Is ForWhy a booking system and a research database that look alike are not alike at all. The admit-then-audit choice and its three consequences.
- 02 Designing the Schemadbdiagram.io owns the schema until the first load; Django migrations own it forever after. Three things worth reserving, and four classes of change.
- 03 Raw Data, Staging, and LoadingStaged types must be loadable, not correct. What immutable raw capture preserves, and what a 40% quarantine looks like.
- 04 ProvenanceSources, locators, record evidence, violation evidence. Four concepts that must not be merged, and what becomes unanswerable if they are.
- 05 Intake and the Legacy-Field PatternKeep the original, add validated fields beside it. The six-word vocabulary that stops a completeness audit from manufacturing plausible fiction.
- 06 Rules, Versions, and BindingsWhat “clean” cannot mean. The four rule types, the three nested objects behind every rule, and the four sets a binding declares.
- 07 One Rule, End to EndFrom an empty workshop document to a live task queue, through checksums, a disposable-restore rehearsal, and eleven separately approved gates.
- 08 Identity ResolutionThe only process allowed to change what a primary key means. Minting, adjudication, consolidation — and why a tolerance predicate chains.
Workshops
Resources
- Relevant Literature
-
Browse references and supporting literature for this training module in the Organization of Power Lab Zotero library.
Open this training module's Zotero collection
A note on the examples. The Taiwan Politics database holds records on real named political figures. Publishing their biographical data in a tutorial would raise disclosure questions that have nothing to do with teaching, so all example records here are invented — 林文德, 陳淑芬, 黃建宏, 吳美玲, 蔡承翰 — and recur across chapters as a consistent cast. Table names, column names, file paths, rule codes, route names, model fields, and counts are real.
A note on what is built. This workshop describes a system that is under active development. Chapters 1 through 6 describe machinery that is in production. Chapters 7 and 8 describe the release process and the identity-resolution design as they have been specified and rehearsed; parts of both are not yet deployed. Chapter 9 describes the release and codebook discipline the lab is adopting, before its first versioned dataset has shipped. Where a chapter says the lab does something, read it as the standard the lab holds itself to rather than a claim about what ran this morning.
Organization of Power Lab · National Chengchi University, Taipei. Written 2026.