2011-10-23 20:05:22 -04:00
USING: help.markup help.syntax strings vocabs.loader
2011-11-02 14:23:41 -04:00
sequences vocabs ;
2009-05-04 07:44:17 -04:00
IN: vocabs.hierarchy
ARTICLE: "vocabs.hierarchy" "Vocabulary hierarchy tools"
2011-10-23 20:05:22 -04:00
"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."
2009-05-04 07:44:17 -04:00
$nl
"Loading vocabulary hierarchies:"
2009-10-01 15:56:36 -04:00
{ $subsections
load
load-all
2011-10-23 20:05:22 -04:00
load-root
load-from-root
2009-10-01 15:56:36 -04:00
}
2009-07-06 05:23:26 -04:00
"Getting all vocabularies from disk:"
2009-10-01 15:56:36 -04:00
{ $subsections
all-vocabs
all-vocabs-recursive
}
2009-07-06 05:23:26 -04:00
"Getting all vocabularies from disk whose names which match a string prefix:"
2009-10-01 15:56:36 -04:00
{ $subsections
child-vocabs
child-vocabs-recursive
}
2009-07-06 05:55:23 -04:00
"Words for modifying output:"
2009-10-01 15:56:36 -04:00
{ $subsections
no-roots
no-prefixes
2011-10-23 20:05:22 -04:00
filter-vocabs
2009-10-01 15:56:36 -04:00
}
2009-07-06 05:23:26 -04:00
"Getting " { $link "vocabs.metadata" } " for all vocabularies from disk:"
2009-10-01 15:56:36 -04:00
{ $subsections
all-tags
all-authors
} ;
2009-05-04 07:44:17 -04:00
ABOUT: "vocabs.hierarchy"
HELP: load
{ $values { "prefix" string } }
{ $description "Load all vocabularies that match the provided prefix." }
{ $notes "This word differs from " { $link require } " in that it loads all subvocabularies, not just the given one." } ;
HELP: load-all
{ $description "Load all vocabularies in the source tree." } ;
2011-10-23 20:05:22 -04:00
HELP: load-from-root
{ $values
{ "root" "a vocaulary root" } { "prefix" string }
}
{ $description "Attempts to load all of the vocabularies with a certain prefix from a vocabulary root." } ;
HELP: load-root
{ $values
{ "root" "a vocabulary root" }
}
{ $description "Attempts to load all of the vocabularies in a vocabulary root." } ;