1 USING: help.markup help.syntax strings vocabs.loader
\r
5 ARTICLE: "vocabs.hierarchy" "Vocabulary hierarchy tools"
\r
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."
\r
8 "Loading vocabulary hierarchies:"
\r
15 "Getting all vocabularies from disk:"
\r
17 all-disk-vocabs-by-root
\r
18 all-disk-vocabs-recursive
\r
20 "Getting all vocabularies from disk whose names which match a string prefix:"
\r
22 disk-vocabs-for-prefix
\r
23 disk-vocabs-recursive-for-prefix
\r
25 "Words for modifying output:"
\r
31 "Getting " { $link "vocabs.metadata" } " for all vocabularies from disk:"
\r
37 ABOUT: "vocabs.hierarchy"
\r
40 { $values { "prefix" string } }
\r
41 { $description "Load all vocabularies that match the provided prefix." }
\r
42 { $notes "This word differs from " { $link require } " in that it loads all subvocabularies, not just the given one." } ;
\r
45 { $description "Load all vocabularies in the source tree." } ;
\r
47 HELP: load-from-root
\r
49 { "root" "a vocaulary root" } { "prefix" string }
\r
51 { $description "Attempts to load all of the vocabularies with a certain prefix from a vocabulary root." } ;
\r
55 { "root" "a vocabulary root" }
\r
57 { $description "Attempts to load all of the vocabularies in a vocabulary root." } ;
\r