This reads a small document about the Wikidata item Q42 (Douglas Adams) from start to finish. It contains the following.

  • English name: Douglas Adams
  • Q42 is an instance of human (Q5) (P31).
  • Q42 was educated at St John’s College (Q691283) (P69). The start time (P580) is 1971.

The document is document 0x510000000000002A of Issuer 0x00000001, 63 WORDs (126 bytes) in total.

Whole Document

1C01 003F 1C51 0001 1C79 0418 0000 0001 5100 0000 0000 002A 0000 0000
1C30
0A4E 0010 0051 0001 0141 002A 0799 0761 656E 446F 7567 6C61 7320 4164 616D 7300
0AA9 0051 0002 0191 001F 0141 002A 0141 0005 0000
0AAA 0051 0003 0191 0045 0141 002A 0142 000A 8C53 0000
0AB9 0051 0004 0191 0244 0051 0003 06E2 3139 3731
1C40
1C01 003F

1C01 is Meta (section 14), Codec 0x1C0L (DOC-1WORD), Length 2 WORDs. The value 003F (63) is the total number of WORDs in the document. With this value the decoder knows the end of the document in advance.

1C51 0001

Meta 0x1C5L SPEC-VERSION. This is the specification edition the document follows. v1 is 0001.

1C79 0418 0000 0001 5100 0000 0000 002A 0000 0000

Meta 0x1C7L DOC-ID, 10 WORDs in total. The Payload is one DOC-POINTER Reference.

WORDMeaning
0418Reference, Codec 0x041L (DOC-POINTER), 9 WORDs
0000 0001Issuer 0x00000001 (2 WORDs)
5100 0000 0000 002ADocument ID 0x510000000000002A
0000 0000Version 0 (itself)
1C30

BODY. The HEAD ends and the BODY begins.

BODY

#1 LABEL — English name

0A4E 0010 0051 0001 0141 002A 0799 0761 656E 446F 7567 6C61 7320 4164 616D 7300
WORDMeaning
0A4EEdge, Codec 0x0A4L LABEL, Length 1110 (extended)
0010Extended length: 16 WORDs in total
0051 0001Edge Id: LOCAL 1
0141 002ASubject: Wikidata Q42
0799Object: UTF8-LANGUAGE-TEXT, odd byte count (0x079L), 10 WORDs
0761 656ELanguage: BCP 47 en
446F … 7300Douglas Adams, 13 bytes + padding 00

#2 TRIPLE — Q42 is a human

0AA9 0051 0002 0191 001F 0141 002A 0141 0005 0000
WORDMeaning
0AA9Edge, Codec 0x0AAL TRIPLE, 10 WORDs
0051 0002Edge Id: LOCAL 2
0191 001FPredicate: P31 (instance of)
0141 002ASubject: Q42
0141 0005Object: Q5 (human)
0000Rank: normal

#3 TRIPLE — Q42 was educated at St John’s College

0AAA 0051 0003 0191 0045 0141 002A 0142 000A 8C53 0000
WORDMeaning
0AAAEdge, TRIPLE, 11 WORDs
0051 0003Edge Id: LOCAL 3
0191 0045Predicate: P69 (educated at)
0141 002ASubject: Q42
0142 000A 8C53Object: Q691283. The value exceeds 16 bits, so it is a 3-WORD Reference
0000Rank: normal

#4 QUALIFIER — start time 1971

0AB9 0051 0004 0191 0244 0051 0003 06E2 3139 3731
WORDMeaning
0AB9Edge, Codec 0x0ABL QUALIFIER, 10 WORDs
0051 0004Edge Id: LOCAL 4
0191 0244Property: P580 (start time)
0051 0003Target: #3 (the TRIPLE above)
06E2 3139 3731Value: EDTF 1971 (year precision, so EDTF rather than GREGORIAN-DATE)

The meaning of #3 is #3 itself together with every QUALIFIER that points to #3: “Q42 was educated at St John’s College starting in 1971.”

1C40

END. Everything up to here is 63 WORDs.

Reading Without a Codebook

A decoder that does not know the codebook still knows the following.

  • The document is 63 WORDs, with 2 Meta in the HEAD and 4 Edges in the BODY.
  • The Codec of each Edge (LABEL, TRIPLE, TRIPLE, QUALIFIER) and the Edge Id (1, 2, 3, 4).
  • The position of the next record for every record.

The roles of the components (Predicate, Subject, Object, Rank) are known only by reading the specification document of each Codec.

Content Hash

The content hash (SHA-256) of this document is as follows. When published, this hash is recorded in the version list together with the version ID.

0x561C157203D51AF8C754D53E20AD190F17E73ACDC4235BA47C87F608C946737F