1 USING: help.markup help.syntax strings ;
4 ARTICLE: "vocabs.metadata" "Vocabulary metadata"
5 "Vocabulary summaries:"
21 "Getting and setting arbitrary vocabulary metadata:"
24 set-vocab-file-contents
27 ABOUT: "vocabs.metadata"
29 HELP: vocab-file-contents
30 { $values { "vocab" "a vocabulary specifier" } { "name" string } { "seq" "a sequence of lines, or " { $link f } } }
31 { $description "Outputs the contents of the file named " { $snippet "name" } " from the vocabulary's directory, or " { $link f } " if the file does not exist." } ;
33 HELP: set-vocab-file-contents
34 { $values { "seq" "a sequence of lines" } { "vocab" "a vocabulary specifier" } { "name" string } }
35 { $description "Stores a sequence of lines to the file named " { $snippet "name" } " from the vocabulary's directory." } ;
38 { $values { "vocab" "a vocabulary specifier" } { "summary" "a string or " { $link f } } }
39 { $description "Outputs a one-line string description of the vocabulary's intended purpose from the " { $snippet "summary.txt" } " file in the vocabulary's directory. Outputs " { $link f } " if the file does not exist." } ;
41 HELP: set-vocab-summary
42 { $values { "string" "a string or " { $link f } } { "vocab" "a vocabulary specifier" } }
43 { $description "Stores a one-line string description of the vocabulary to the " { $snippet "summary.txt" } " file in the vocabulary's directory." } ;
46 { $values { "vocab" "a vocabulary specifier" } { "tags" "a sequence of strings" } }
47 { $description "Outputs a list of short tags classifying the vocabulary from the " { $snippet "tags.txt" } " file in the vocabulary's directory. Outputs " { $link f } " if the file does not exist." } ;
50 { $values { "tags" "a sequence of strings" } { "vocab" "a vocabulary specifier" } }
51 { $description "Stores a list of short tags classifying the vocabulary to the " { $snippet "tags.txt" } " file in the vocabulary's directory." } ;