1 USING: help.markup help.syntax strings vocabs.loader
5 ARTICLE: "vocabs.hierarchy" "Vocabulary hierarchy tools"
6 "These tools operate on all vocabularies found in the current set of " { $link vocab-roots } ", loaded or not. A prefix is the first part of a vocabulary name."
8 "Loading vocabulary hierarchies:"
15 "Getting all vocabularies from disk:"
17 all-disk-vocabs-by-root
18 all-disk-vocabs-recursive
20 "Getting all vocabularies from disk whose names which match a string prefix:"
22 disk-vocabs-for-prefix
23 disk-vocabs-recursive-for-prefix
25 "Words for modifying output:"
31 "Getting " { $link "vocabs.metadata" } " for all vocabularies from disk:"
37 ABOUT: "vocabs.hierarchy"
40 { $values { "prefix" string } }
41 { $description "Load all vocabularies that match the provided prefix." }
42 { $notes "This word differs from " { $link require } " in that it loads all subvocabularies, not just the given one." } ;
45 { $description "Load all vocabularies in the source tree." } ;
49 { "root" "a vocaulary root" } { "prefix" string }
51 { $description "Attempts to load all of the vocabularies with a certain prefix from a vocabulary root." } ;
55 { "root" "a vocabulary root" }
57 { $description "Attempts to load all of the vocabularies in a vocabulary root." } ;