Encoding of Sz Metadata

00001012931200 · Info · (manual) · #api #manual #reference #zettelstore (all)

A single metadata (“metadatum”) is represented by a triple: a symbol representing the type, a symbol representing the key, and either a string or a list that represent the value.

The symbol depends on the metadata key type. The value also depends somehow on the key type: a set of values is represented as a list, all other values are represented by a string, even if it is a number.

The following table maps key types to symbols and to the type of the value representation.

Key TypeSymbolValue
CredentialCREDENTIALstring
EStringEMPTY-STRINGstring
IdentifierZIDstring
IdentifierSetZID-SETListValue
NumberNUMBERstring
StringSTRINGstring
TagSetTAG-SETListValue
TimestampTIMESTAMPstring
URLURLstring
WordWORDstring
ZettelmarkupZETTELMARKUPstring

ListValue = ( String1 String2 … Stringn ).

Examples: