(zettel (meta (back "00001012931000") (backward "00001012931000") (box-number "1") (created "20230403161618") (forward "00001006030000 00001006031000 00001006031500 00001006032000 00001006032500 00001006033000 00001006033500 00001006034000 00001006034500 00001006035000 00001006035500 00001006036500") (modified "20240219161848") (published "20240219161848") (role "manual") (syntax "zmk") (tags "#api #manual #reference #zettelstore") (title "Encoding of Sz Metadata")) (rights 4) (encoding "") (content "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.\n\nThe symbol depends on the [[metadata key type|00001006030000]].\nThe 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.\n\nThe following table maps key types to symbols and to the type of the value representation.\n\n|=Key Type<| Symbol<| Value<\n| [[Credential|00001006031000]] | ''CREDENTIAL'' | string\n| [[EString|00001006031500]] | ''EMPTY-STRING'' | string\n| [[Identifier|00001006032000]] | ''ZID'' | string\n| [[IdentifierSet|00001006032500]] | ''ZID-SET'' | ListValue\n| [[Number|00001006033000]] | ''NUMBER'' | string\n| [[String|00001006033500]] | ''STRING'' | string\n| [[TagSet|00001006034000]] | ''TAG-SET'' | ListValue\n| [[Timestamp|00001006034500]] | ''TIMESTAMP'' | string\n| [[URL|00001006035000]] | ''URL'' | string\n| [[Word|00001006035500]] | ''WORD'' | string\n| [[Zettelmarkup|00001006036500]] | ''ZETTELMARKUP'' | string\n\n:::syntax\n__ListValue__ **=** ''('' String,,1,, String,,2,, … String,,n,, '')''.\n:::\n\nExamples:\n* The title of this zettel is represented as: ''(EMPTY-STRING title \"Encoding of Sz Metadata\")''\n* The tags of this zettel are represented as: ''(TAG-SET tags (\"#api\" \"#manual\" \"#reference\" \"#zettelstore\"))''"))