The Leiden DMP, Programmatically

Here, we introduce the Leiden DMP template, with all its fields, but in programmatic form. Easier to create, update, version-control, and compile to any required output format — even .docx, if anyone still insists on Microsoft Word.

Richard Karlsson Linnér · Universiteit Leiden · 13 November 2026

This programmatic template was developed to comply with all applicable data management requirements, from international down to institutional: Science Europe Practical Guide to the International Alignment of RDM (2021) · Netherlands Code of Conduct for Research Integrity · AVG/GDPR · Leiden University Data Management Regulations · Leiden Law School Research Data Protocol (2025). It adds programmatic features to the already comprehensive Leiden DMP and produces the same outputs: PDF, HTML, plain text, and Word if needed. By reproducing the v4.3 template exactly, it should be fully compliant with University policy.

You know this template

Leiden University DMP template v4.3, first page: section 0 Administrative details in a Word table with empty checkboxes and placeholder text

Source: Zenodo

The Leiden University DMP template v4.3. The front page already looks programmatic: fields have IDs (0.1, 0.5, 0.12), a label, and a typed value.

But Word struggles with:

  • Poor version control — does not work with Git, and you cannot diff two .docx or .pdf files. How do you line-by-line review what changed between versions? How do you easily produce a trace of how a field changed over time?
  • Versioning — even the .docx footer holds data to manage: a version number and a date (v. 4.3 / 20231124). This researcher has received DPIA and other templates where the footer version was already broken against the filename version. The double versioning also violates the single source of truth principle (SSOT; cf. Hunt & Thomas, The Pragmatic Programmer, 1999).
  • No validation — Word cannot check whether a field is filled correctly. Nothing aggregates across projects. A template update means re-entering all existing fields by hand.
  • Storage — where does the authoritative master document live? Currently under some department-level policy on an obscure J-drive, if at all.
  • Format — checkboxes designed for printing, ~$ lock files, autoformat, spellcheck. Most has little to do with data management. A worldwide Office 365 outage today revealed another reason why DMPs should not be locked into a Microsoft Office format.

Overall, Word struggles with the principle of a DMP as a living, accurate document: one that collects data continuously from various programmatic sources and that remains up to date.

Copy-paste, copy-waste

Much of this information has to be hand-copied from one system to another. Researchers can handle tedium, but this is a buzzkill even by academic standards, especially for those who already work programmatically to avoid error-prone hand-copying. Hand-copying from one system to another is what keeps admin employed; for a researcher, it is a substitute for the actual research.

And once copied, the values no longer track the source. The programmatic version is easily updated on demand from the source.


Two views of the same plan

Nothing changes for the DMP: same template, same fields, same information. But for a power user, this workflow will make the information more relevant, more up to date, and easier to verify. Thus, it improves compliance. Who is this for? Researchers with programmatic data flows or high-performance computing experience. They are used to structuring and describing data, but not inside a fixed template form. Here, e.g., every field carries a schema ID, a type, and validation rules. The Markdown source on the left compiles to a styled PDF that matches the Word template. On the right, the DMP data as JSON: flat keys, one row per DMP, loadable as a data frame.

Frontend — what the researcher fills in
0. Administrative details
0.1 Contact Dr. A. de Vries
a.de.vries@law.leidenuniv.nl
0.3 Project Veni: The labor market consequences of unexpected health shocks
0.5 Duration 01-01-2025 – 31-12-2027
0.12 Personal data ☑ I collect personal data and I will contact the privacy officer.
1. Data collection
1.1 Existing data? ☑ Publicly available
☑ Other: CBS microdata
1.6 Data size Raw: 5 GB (CBS RA)
Output: 50 MB
Synthetic: 200 MB
↓
Backend — what the machine reads
{ "_schema_version": "4.3", "_mode": "planning", "_status": "Active", "0.1.name": "Dr. A. de Vries", "0.1.email": "a.de.vries@law...", "0.3": "Veni: The labor...", "0.5.start": "01-01-2025", "0.5.end": "31-12-2027", "0.12.selection": "I collect personal data...", "1.1.sources": [ "Publicly available", "Other: CBS microdata" ], "1.6.table": [ {"stage": "Raw", "max_size": "5 GB"}, {"stage": "Output", "max_size": "50 MB"} ] }

Every field number in the form (0.1, 0.5, 1.1) maps to a key in the JSON. Both are derived from a single YAML schema (SSOT): one source defines the template, the form, and the validation rules.


The human-machine workflow

The researcher understands the project, makes decisions, and writes explanations. The machine collects, transforms, validates, formats, versions, and aggregates.

The researcher plans & writes

  • Own project design, governance, and ethics
  • Map information sources and how they connect
  • Decide on storage, access, and archival
  • Fill in fields, check boxes, write prose
  • Review diffs when the plan changes
  • Approve freezes at status transitions

The machine does the rest

  • Enforce compliance against the plan
  • Validate all fields against the schema
  • Structure data as JSON (SSOT)
  • Compile to any required output format
  • Version-control every change in Git
  • Produce dated archival snapshots
  • Migrate across template versions
  • Resolve subproject inheritance
  • Aggregate across the DMP portfolio

Living document, not a one-time form

The DMP carries its own status field, and Git records every change. At each transition, make freeze produces a dated PDF for institutional archival.

Draft
→
Under review
→
Approved
→
Active
→
Frozen fr-DD-MM-YYYY

When a paper is published, it gets an archival-mode DMP: the full planning template obscures that end state with N/A fields, scrubbed sections, and empty rows, which looks incomplete. For this programmatic template, we have developed an archival version that better matches the end stage of a project, focused on replication, archival, and future-proofing, while preventing disclosure of project internals and remaining fully publishable. Ultimately, it is the proof that the project is closed and all code and data are FAIR. Example: "Where will you store the data?" becomes "Where was the data deposited?" The archival record documents what actually happened, alongside the original plan.

make pdf → make freeze → dmp-veni-fr-13-11-2026.pdf → J-drive

What this enables at scale


Do you see any meaningful difference?

Word template — from Zenodo
Leiden University DMP template v4.3 rendered from Word
↔
Programmatic template — from Markdown
Leiden University DMP template v4.3 rendered from Markdown via Pandoc

Same template, same fields. One is a text file.
For now, the Markdown version reads “This version was created using the Markdown Edition.”

Want to know more or see it in action? r.karlsson.linner@law.leidenuniv.nl