(((meta (@ (content . "Encoding of Sz Metadata") (name . "title"))) (meta (@ (content . "manual") (name . "role"))) (meta (@ (content . "#api #manual #reference #zettelstore") (name . "tags"))) (meta (@ (content . "zmk") (name . "syntax"))) (meta (@ (content . "00001012931000") (name . "back"))) (meta (@ (content . "00001012931000") (name . "backward"))) (meta (@ (content . "1") (name . "box-number"))) (meta (@ (content . "(c) 2020-present by Detlef Stern ") (name . "copyright"))) (meta (@ (content . "20230403161618") (name . "created"))) (meta (@ (content . "00001006030000 00001006031000 00001006031500 00001006032000 00001006032500 00001006033000 00001006033500 00001006034000 00001006034500 00001006035000 00001006035500 00001006036500") (name . "forward"))) (meta (@ (content . "en") (name . "lang"))) (meta (@ (content . "EUPL-1.2-or-later") (name . "license"))) (meta (@ (content . "20240219161848") (name . "modified"))) (meta (@ (content . "20240219161848") (name . "published"))) (meta (@ (content . "public") (name . "visibility")))) (p "A single metadata (" (@L (@H "“") "metadatum" (@H "”")) ") 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.") (p "The symbol depends on the " (a (@ (href . "00001006030000")) "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.") (p "The following table maps key types to symbols and to the type of the value representation.") (table (thead (tr (th (@ (class . "left")) "Key Type") (th (@ (class . "left")) "Symbol") (th (@ (class . "left")) "Value"))) (tbody (tr (td (@ (class . "left")) (a (@ (href . "00001006031000")) "Credential")) (td (@ (class . "left")) (kbd "CREDENTIAL")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006031500")) "EString")) (td (@ (class . "left")) (kbd "EMPTY-STRING")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006032000")) "Identifier")) (td (@ (class . "left")) (kbd "ZID")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006032500")) "IdentifierSet")) (td (@ (class . "left")) (kbd "ZID-SET")) (td (@ (class . "left")) "ListValue")) (tr (td (@ (class . "left")) (a (@ (href . "00001006033000")) "Number")) (td (@ (class . "left")) (kbd "NUMBER")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006033500")) "String")) (td (@ (class . "left")) (kbd "STRING")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006034000")) "TagSet")) (td (@ (class . "left")) (kbd "TAG-SET")) (td (@ (class . "left")) "ListValue")) (tr (td (@ (class . "left")) (a (@ (href . "00001006034500")) "Timestamp")) (td (@ (class . "left")) (kbd "TIMESTAMP")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006035000")) "URL")) (td (@ (class . "left")) (kbd "URL")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006035500")) "Word")) (td (@ (class . "left")) (kbd "WORD")) (td (@ (class . "left")) "string")) (tr (td (@ (class . "left")) (a (@ (href . "00001006036500")) "Zettelmarkup")) (td (@ (class . "left")) (kbd "ZETTELMARKUP")) (td (@ (class . "left")) "string")))) (div (@ (class . "syntax")) (p (em "ListValue") " " (strong "=") " " (kbd "(") " String" (sub "1") " String" (sub "2") " … String" (sub "n") " " (kbd ")") ".")) (p "Examples:") (ul (li "The title of this zettel is represented as: " (kbd "(EMPTY-STRING title \"Encoding of Sz Metadata\")")) (li "The tags of this zettel are represented as: " (kbd "(TAG-SET tags (\"#api\" \"#manual\" \"#reference\" \"#zettelstore\"))"))))