OpenCog

OpenCogPrime:ContextAtom

From OpenCog

Context Atoms

Next, a Context is simply an Atom that is used as the source of a PLN ContextLink, for instance

Context
    quantum_computing
    Inheritance Ben amateur

or

Context
    game_of_fetch
    PredictiveAttraction
        Evaluation give (ball, teacher)
        Satisfaction

The former simply says that Ben is an amateur in the context of quantum computing. The latter is a more pertinent example to the present page: it says that in the context of the game of fetch, giving the ball to the teacher implies satisfaction.

Note: in the implementation of OpenCog, ContextLinks are implicit rather than explicit entities. An atom can contain a CompositeTruthValue which in turn contains a number of VersionHandles. Each VersionHandle associates a Context or a Hypothetical with a TruthValue.