File layout
Groups and arrays inside a store — format version 6
/.BG attrs: numQuads, formatVersion (=6)
|- dictionary/
| |- entities/ IRIs + blank nodes used as G, S or non-literal O
| |- predicates/ predicate IRIs
| |- literals/ every literal object, then every RDF 1.2 triple term
| |- graphs graphs_blocks the DISTINCT sorted ids used in each
| |- subjects subjects_blocks position, block-structured, with their
| |- objects objects_blocks directories (graph enumeration, membership)
|- GSPO/ index ordered graph > subject > predicate > object
| |- Bs Ss Ss_blocks SBs BBs level 1 (subject layer)
| |- Bp Sp Sp_blocks SBp BBp level 2 (predicate layer)
| |- Bo So So_blocks SBo BBo level 3 (object layer)
|- GPOS/ index ordered graph > predicate > object > subject
|- Bp Sp Sp_blocks SBp BBp
|- Bo So So_blocks SBo BBo
|- Bs Ss Ss_blocks SBs BBs
- Every packed integer array carries
numEntriesandwidth(on a block-structured one, its widest block’s); the raw value arrays (floats,doubles, an FCD’soffsets) carrynumEntriesalone. A block-structured array also carriesblockEntries— its presence is what marks the form — and has its_blocksdirectory beside it (Integer sequences) - A section holds per-node columns (
datatypes,offsets; inliteralsalsotypedLiterals,langTags,langDirs) and value stores (iri,strings,integers,longs,floats,doubles,tripleTerms,typedLiteralsDictionary,langs), each present only when used (Inside a dictionary section) - Readers find features by presence: no language tags → no
langs/langTags; no triple terms → notripleTerms.formatVersiononly stops older readers from misreading newer stores - In Zarr the same tree is a hierarchy of groups and
uint8arrays:.BG/GSPO/Sois.BG/GSPO/So/zarr.jsonplus its chunk.BG/GSPO/So/c/0— about 60 arrays, some 130 files, with the metadata of all of them consolidated into the rootzarr.json