compound context sp fn: save-as-dot
save-as-dot:
description:
save-as-dot["filename.dot", op1, ... , opn] input-sp
save-as-dot["filename.dot", *] input-sp
Save learn rules as a dot file, so it can be visualized with graphviz.
The first parameter is the filename to save it to,
noting the file will be saved to the current directory, even if you specify a path.
The operators then define which operators to use, * means use all operators.
input-sp is a list of the kets we want to save as dot files.
examples:
-- Save everything, to the file foo.dot:
save-as-dot["foo.dot", *] rel-kets[*]
-- Save only age and friends for Fred, Sam and Jack, to filename foo2.dot:
save-as-dot["foo2.dot", age, friends] split[" "] |Fred Sam Jack>
see also:
Home