Clean-room empirical reference · .prism · .pzfx
The closest thing we have to an actual specification
of .prism and .pzfx files.
Neither .prism nor .pzfx files come with a published schema. This technical reference documents every structural fact that CurveBook relies on, including the parts that remain a proprietary blob hidden by the vendor. All observations come from public standards and from 3,719 public CC-BY-4.0 and CC0-1.0 files on Zenodo: 2,240 XML .pzfx files, 496 legacy binary PCFF files, and 983 .prism archives from versions v10 and v11.
To open or convert these files offline, start with the scientist guide to .pzfx and .prism files.
- 3,719 Zenodo files
- Clean-room
- v10 and v11
.prism - v5.00 XML
.pzfx
Part 1 · .prism archive format
.prism ZIP container layout
Every valid .prism archive observed on Zenodo is a standard ZIP archive that uses Deflate compression (method 8), UTF-8 entry names, and forward slashes. None of them uses ZIP64. Across 165 deposits, the corpus contains 978 valid v10/v11 archives (960 unique archives after deduplication) and 979 readable ZIP files in total; 4 files have no ZIP end-of-central-directory (EOCD) record, and 686 unique deduplicated archives contain analyses. Entry paths are keyed by opaque sheet and table UIDs that document.json declares:
study.prism (ZIP, Deflate method 8)
├── document.json # @class="Document", formatVersion, sheets.*, sheetAttributesMap
├── data/
│ ├── sheets/<sheetUid>/
│ │ ├── sheet.json # @class="DataSheet", table.uid, format, dataFormat, xDataSetFormat, flags
│ │ └── floating_notes/<noteUid>.json # optional @class="FloatingNote" sticky notes on data sheets
│ ├── tables/<tableUid>/
│ │ ├── content.json # { $id, numberOfColumns, numberOfRows, version }
│ │ ├── data.csv # headerless RFC-4180 CSV (no headers, no exclusion flags)
│ │ └── data.dt # undocumented 128-bit raw-byte digest of data.csv (keyed, salted, or custom)
│ └── sets/<setUid>.json # @class="DataSet" | "VariableDataSet" | "SubColumnTitlesDataSet"
├── info/<infoUid>/sheet.json # experimentDate, constants[], notesText (string or rich-text object)
├── analyses/<analysisUid>/
│ ├── sheet.json # analysisClass, inputSheets[], resultSheets[], preferredResultSheet
│ ├── parameters.json # { version, content } analysis configuration
│ ├── parameters.dt # undocumented 128-bit raw-byte digest of parameters.json (keyed, salted, or custom)
│ ├── results.json # { version, content } structured raw analysis output
│ └── result_sheets/<rsUid>.json # indirection hop: { uid, name, dataSheet: <viewSheetUid> }
├── graphs/<graphUid>/
│ ├── sheet.json # sheet metadata only (inputDataSets, floatingNotes, mediaCollection)
│ ├── data.bin # PCFFGRA4 — proprietary blob hidden by the vendor
│ └── preview.png # optional raster thumbnail (200 observed across 6,978 graphs)
├── layouts/<layoutUid>/
│ ├── sheet.json # sheet metadata only (linkedGraphSheets, mediaCollection)
│ ├── data.bin # PCFFGRA4 — proprietary blob hidden by the vendor
│ └── preview.png # optional raster thumbnail (3 observed across 592 layouts)
├── media/<mediaUid>.{pdf,emf,png,svg,wmf} # embedded raster or vector media
└── misc/
├── used_fonts.bin # PCFF — proprietary blob hidden by the vendor (933 / 960 deduplicated valid archives)
└── <uid>.bin # opaque binary struct (18 00 00 00 ...) — proprietary blob hidden by the vendor
Observed JSON schema keys
| Entry | Key fields | Observed values and notes |
|---|---|---|
document.json |
@class, formatVersion, minFormatVersion, sheets, sheetAttributesMap |
@class is "Document". The hyphenated formatVersion ranges from 1-0-0 to 1-6-1, and minFormatVersion from 1-0-0 to 1-5-0. sheets.{data,info,analyses,graphs,layouts} list the sheet UIDs. Each sheetAttributesMap.<uid> entry holds title, an optional highlightColor, and isFrozen. |
data/sheets/<uid>/sheet.json |
table.uid, table.format, table.dataFormat, table.xDataSetFormat, table.dataSets[], flags |
Observed format values are view, xy, column, grouped, survival, contingency, multivariable, nested, and parts_of_whole. Observed dataFormat values are text, y_single, y_replicates, y_sd_n, y_plus_minus, y_se_n, y_high_low, text_replicates, y_sd, and y_se; y_cv was never observed. Observed flags are ANALYSIS_VIEW, NOT_DATA_FOLDER, HIDE_ROW_TITLES, and DATASETS_USES_OWN_TITLES. |
info/<uid>/sheet.json |
uid, title, experimentDate, constants[], notesText, linkedDataSheetID |
The corpus has 1,306 info sheets across 715 files. notesText is a plain string in 1,286 sheets and a rich-text object in 20. constants[].{name,value} is polymorphic: each value is either a plain string or a rich-text object. |
Data decoding traps
Headerless data.csv, error offsets, and exclusions
If you unzip a .prism file and load data/tables/<uid>/data.csv directly in R, Python, or a spreadsheet, you get silently corrupted tables unless you also apply the companion JSON metadata:
| Rule | Observed behaviour across the corpus |
|---|---|
| No column headers | Every data.csv is headerless. In 11,244 tables, row 0 is entirely numeric; a non-numeric row 0 occurs mostly in dataFormat="text" analysis views. Column titles are stored in data/sets/<setUid>.json. |
| Column order | [rowTitles? (0–1 col, before X)] → [X? (0, 1, or 2 cols)] → [Y datasets in table.dataSets order]. Row titles precede X in 377 tables; the order is reversed in 3. Trailing empty Y columns may be omitted (4 / 1,620 sampled tables), so readers must pad them. |
Generated X series and timeSpan |
When xDataSetFormat="series", X takes 0 columns in data.csv (639 / 641 tables); readers synthesize X from replicates[0].{startValue, interval} on a SeriesReplicate. y_single and timeSpan take 1 column (timeSpan stores hh:mm:ss strings with Title-Case dateTimeConversion.units); y_errorBar and date_se take 2. |
| Asymmetric error offsets | y_high_low and y_plus_minus store 3 subcolumns per Y dataset in the order [Y, +upper_offset, -lower_offset], always as non-negative offsets from Y (840 / 840 values across 137 tables). y_high_low displays Upper/Lower Limits (Y ± offset); y_plus_minus displays +Error and -Error directly. |
| Replicate ranges, decimals, and variables | Across 140,805 data/sets/<uid>.json files, replicates live in replicates[], compressed "replicate ranges" (0-based inclusive ~ ranges), or both. Each entry sets valueType (string/real/int/timespan/date) and decimalsLength (1..=15; omitting it displays integers). Text/categorical columns in multivariable tables use @class: "VariableDataSet" with currentType, categories[], and cellAttributes clearing "NUMERIC". |
| Out-of-band exclusions | Exclusions never appear in data.csv. Instead, they are stored in data/sets/<uid>.json under cellAttributes: [{rows: "N"|"N~M", attributes: ["EXCLUDED", "CENSORED", "SECTION_TITLE", "SCI_NOTATION", ...]}]. |
| Polymorphic rich text | Titles, subcolumn titles (SubColumnTitlesDataSet), and info fields are either plain strings or rich-text objects: {string, version, formatting: [{range, attributes}]}. Ranges must form a non-overlapping, 0-based inclusive partition ("N" or "start~end") covering 0..=len-1; overlapping ranges scramble rendered characters. |
Results, digests, and opaque binary data
Analysis snapshots, .dt digests, and proprietary blobs
Three-hop analysis result chain
A reader reaches stored analysis results by following three JSON indirection hops. This chain was verified in 784 / 784 cases across 7,021 analyses in 694 corpus files (686 unique deduplicated archives with analyses). The corpus contains 32 distinct analysisClass values, including TRNSFORM and shaproWilks, which are spelled exactly as stored:
analyses/<aUid>/sheet.json (preferredResultSheet: <rsUid>)
└─▶ analyses/<aUid>/result_sheets/<rsUid>.json (dataSheet: <viewSheetUid>)
└─▶ data/sheets/<viewSheetUid>/sheet.json (flags: ["ANALYSIS_VIEW"], table.format: "view")
└─▶ data/tables/<tableUid>/data.csv (tabular display values; 38 empty views omit data.csv)
Proprietary binary blobs and undocumented .dt digests
No .prism JSON file contains a checksum or signature key. Instead, the 979 readable archives contain 55,471 opaque entries that are not CSV, JSON, or image files:
| Archive entry | Corpus prevalence | Byte signature | Specification status |
|---|---|---|---|
graphs/<uid>/data.bin |
6,978 entries |
PCFFGRA4 binary |
Proprietary blob hidden by the vendor. It holds all graph styling and plot definitions; only the optional preview.png (200 observed) is readable. |
layouts/<uid>/data.bin |
592 entries |
PCFFGRA4 binary |
Proprietary blob hidden by the vendor. It holds all page-layout definitions; only the optional preview.png (3 observed) is readable. |
misc/used_fonts.bin |
933 / 960 deduplicated valid archives |
PCFF binary |
Proprietary blob hidden by the vendor. It holds a legacy binary table of font records; controlled write probes confirm omitting it does not prevent external readers from opening data tables or info sheets. |
misc/<uid>.bin |
15,717 entries |
18 00 00 00 … binary |
Proprietary blob hidden by the vendor. It holds undocumented auxiliary binary structures. |
data/tables/<uid>/data.dt |
20,872 entries (960 / 960 deduplicated valid archives) |
32-character lowercase hex (128-bit) | Undocumented 128-bit digest of the exact raw data.csv bytes (0 / 15,097 divergences; every empty CSV maps to 130ab2f63ec643bee541b74c960e10db). Optional for opening data tables. |
analyses/<uid>/parameters.dt |
7,021 entries (686 / 686 deduplicated archives with analyses) |
32-character lowercase hex (128-bit) | Undocumented 128-bit digest of the exact raw parameters.json bytes (0 / 2,818 divergences). Writing an uncalculated analysis without parameters.dt triggered recovery (data preserved; analysis dropped). |
Neither .dt token matches any standard unkeyed hash tested (CRC32, MD2/4/5, RIPEMD-128, SHA-1/2/3, BLAKE2/3, SHAKE, XXH3, FNV-1a, CityHash, SpookyHash, SipHash, or MurmurHash3—including an algebraic inversion ruling out all 264 seeds of MurmurHash3_x64_128), pointing to a keyed, salted, or proprietary algorithm.
Writing .prism files: what works without .dt
Clean-room write tests (19 / 19 table, info, and floating-note files) opened in an external .prism reader with zero warnings or recovery dialogs, even with data.dt and misc/used_fonts.bin omitted. What matters is the open-JSON contract, not the table digest:
| Area | Observed write-path behaviour |
|---|---|
| Optional container entries | Omitting, zeroing, or mismatching data.dt, omitting misc/used_fonts.bin, omitting explicit ZIP directory entries, and using Stored (method 0) instead of Deflate (method 8) all open cleanly for tables and info sheets. |
Supported without .dt |
All eight table archetypes (column, xy, grouped, survival, contingency, parts_of_whole, multivariable, nested), replicate and summary modes, series and timeSpan X columns, EXCLUDED masks, linked InfoSheets, and data-sheet FloatingNotes. |
| Required container JSON | Schema $id paths, uppercase UUIDv4-shaped UIDs, sequential integer fenIDs, version fields (formatVersion, minFormatVersion, and the minimum application version key), object-typed uiSettings.currentSheets with printer and navigator, and InfoSheet.{uiState,selectedCellsRange}. |
| Required table & title JSON | @class: "DriverReplicate" / "SeriesReplicate" / "VariableDataSet"; explicit decimalsLength for non-integers (for DS_ATTR_X y_errorBar, readers apply replicates[0].decimalsLength to both X and the X error bar, so set both to max(x_decimals, err_decimals)) and valueType: "int" for integer N; HIDE_ROW_TITLES when row titles are hidden; DATASETS_USES_OWN_TITLES + subColumnTitleType: "default" + SubColumnTitlesDataSet.format = "text_replicates" for per-group subcolumn titles; hh:mm:ss CSV tokens for timeSpan; and non-overlapping 0..=len-1 rich-text ranges. |
| Blocked / binary-only | Uncalculated analysis sheets without parameters.dt trigger file recovery (data preserved, analysis dropped). Editable graphs and layouts require proprietary PCFFGRA4 binary data.bin blobs. |
Part 2 · .pzfx XML format
.pzfx XML grammar and legacy PCFF detection
Before passing a .pzfx file to an XML parser, check its leading bytes:
- Legacy binary
PCFFfiles with a.pzfxname: On Zenodo,496of2,736.pzfx-named files (18.1%) begin with the 4-byte ASCII headerPCFF. That header marks an older binary container (a proprietary blob hidden by the vendor), not XML. Reject such a file before UTF-8 decoding. - UTF-8 and optional XSLT wrapper: All
2,240XML.pzfxfiles are UTF-8. None has aDOCTYPE, and none has trailing non-whitespace bytes. In22files, the root element sits directly inside<xsl:stylesheet version="1.0">, with no intermediate<xsl:template>.1,437files declare a defaultxmlnsand803omit it, so match tags by their XML local name.
XML element order shared by all 2,178 direct (unwrapped) corpus files
<Root *XMLVersion="5.00"> <!-- vendor root element; match by local name -->
<Created>...</Created>
<DefGraphButton>...</DefGraphButton> <!-- optional -->
<InfoSequence>
<Ref ID="Info0" Selected="1"/> <!-- always <Ref>; zero inline info sheets observed -->
</InfoSequence>
<Info ID="Info0"> <!-- 0..N top-level info sheets -->
<Title>...</Title>
<Notes>...</Notes>
<Constant><Name>...</Name><Value>...</Value></Constant>
</Info>
<TableSequence>
<Ref ID="Table0" Selected="1"/> <!-- always <Ref>; zero inline tables observed -->
</TableSequence>
<Table ID="Table0" TableType="XY" XFormat="numbers" YFormat="replicates"
Replicates="3" EVFormat="AsteriskAfterNumber">
<Title>...</Title>
<Info ID="..."/> <!-- optional embedded per-table info sheet (31 observed) -->
<FloatingNote Color="Yellow|Blue|Gray|Red">...</FloatingNote>
<RowTitlesColumn>...</RowTitlesColumn>
<SubColumnTitles OwnSet="0|1">...</SubColumnTitles>
<XColumn Width="..." Decimals="0..15" Subcolumns="1|2">...</XColumn>
<XAdvancedColumn Version="1" ...>...</XAdvancedColumn>
<YColumn Width="..." Decimals="0..15" Subcolumns="1..208">...</YColumn>
</Table> <!-- <HugeTable> and <Table1024> share identical grammar -->
<Template>...</Template> <!-- opaque ASCII/base64-like payload (up to 89 MB) — proprietary blob hidden by the vendor -->
</Root>
Three interchangeable root-level table elements share the same attributes, child order, and <TableSequence><Ref> linkage: <Table> (12,790 tables), <HugeTable> (120 tables, with up to 256 Y columns and 208 subcolumns), and <Table1024> (16 tables, with up to 745 Y columns). The trailing <Template> block appears in 2,239 / 2,240 files (median 39.9 KB, maximum 89.0 MB, and 657.7 MB in total across the corpus). It stores analyses, graphs, and layouts as an opaque proprietary blob hidden by the vendor, and a streaming reader must skip it.
Table grammar details
.pzfx table archetypes, summary modes, and rich text
| Feature | Exact encoding observed on Zenodo |
|---|---|
Eight table archetypes (TableType plus ExtTableType) |
OneWay (5,073), XY (4,199), TwoWay (3,272), Contingency (118), PartsOfWhole (116), Survival (61), TwoWay with ExtTableType="Nested" (81, with YFormat="replicates"), and OneWay with ExtTableType="MultipleVariables" (6, with an optional YColumn@MVType="Categorical"|"Continues"; the spelling is exactly as stored). |
YFormat modes |
replicates (6,883, with Table@Replicates from 1..208), omitted (5,258), SDN (322), SD (288), SE (102), SEN (32), upper-lower-limits (29), low-high (7), and CV (5 tables, whose 2 subcolumns store (mean, %CV) directly; verified across 162 pairs). The Subcolumns attribute appears on <YColumn>, <XColumn>, and <XAdvancedColumn>, never on <Table>. |
XFormat modes |
none (8,666), numbers (4,193), time (51; numeric elapsed values in <XColumn> and hh:mm:ss strings in <XAdvancedColumn Version="1">), error (15; never spelled "err"; both columns carry Subcolumns="2" for X and the X error), and date (1). <XColumn> always precedes <XAdvancedColumn>. |
| Exclusions and subcolumn titles | Tables use Table@EVFormat="AsteriskAfterNumber" (99.8%) and mark excluded cells with <d Excluded="1"> (2,055,926 excluded cells). <SubColumnTitles OwnSet="0|1"> (428 tables) holds either shared (0) or per-Y-column (1) subcolumn titles. |
| Decimals, colors, and rich text | Column elements carry Decimals as an integer from 0..=15 (-1 was never observed), with an optional YColumn@Scientific="1". Table@Highlighted uses 1-based palette index strings "1".."7". Inline rich text uses <I>, <B>, <U>, <SUP>, <SUB>, <Font Color="#RRGGBB">, and <Font Face="Symbol">, plus Windows Symbol characters in the Private Use Area (PUA) U+F020..=U+F0FE, which are decoded with the Unicode SYMBOL.TXT table. |
Provenance and open alternative
Full evidence ledger and open alternative
- Tracked evidence ledger: The full table of public-standard citations, corpus observation counts, and the CurveBook modules that depend on them is in
docs/evidence/interop-format-notes.md. It contains no corpus filenames, no user values, and no vendor prose. - Open or convert these files offline: See the
.pzfxand.prismguide for desktop GUI, CLI, and MCP workflows. - Need a genuinely open format? CurveBook’s native
.curvebookarchive and unpacked.curvebook.d/directory come with a published JSON Schema. They store data as RFC-4180 CSV files with explicit headers, contain no proprietary binary blobs, and produce deterministic plain-text diffs.