misc: |context>


|context>:
    description:
        |context> => |local context>
        a special learn rule that sets the local context
        learn rules in different context's are fully independent of each other
        the general idea is that something might be true or have meaning in one context, but not in another
        so we need a way to keep them separate
        if not specified then the default context is the |Global context>
        there are also commands in the shell to change or view the current context
        see the shell help message for a little more on that

    examples:
        -- learn some work related knowledge:
        |context> => |work>
        friends |Fred> => |Tom> + |Emma>
        boss |Fred> => |Robert>

        -- learn some home related knowledge:
        |context> => |home>
        wife |Fred> => |Liz>
        friends |Fred> => |Mary> + |Sam> + |Jack>

        -- now see what we know:
        sa: dump multi
            ------------------------------------------
            |context> => |Global context>

            ------------------------------------------
            ------------------------------------------
            |context> => |work>

            friends |Fred> => |Tom> + |Emma>
            boss |Fred> => |Robert>
            ------------------------------------------
            ------------------------------------------
            |context> => |home>

            wife |Fred> => |Liz>
            friends |Fred> => |Mary> + |Sam> + |Jack>
            ------------------------------------------

    see also:
        dump

Home