# sonlam1102/cokb-model-example architecture

> Architecture diagram of the GitHub repository sonlam1102/cokb-model-example, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sonlam1102/cokb-model-example
- Repository: https://github.com/sonlam1102/cokb-model-example

## Overview

This repository documents a Maple-based COKB inference engine for matrix and linear-equation knowledge. The principal workflow is a user problem being handled by the engine using a knowledge base. The two knowledge directories contain domain knowledge; their distinct contents include concepts, functions, operators, relations, and rules. The README does not describe the runtime input/output format or explain how the two bases differ, and no source excerpts were supplied, so those connections are not inferred.

Main entry points: [`Engine.mw`](https://github.com/sonlam1102/cokb-model-example/blob/master/Engine.mw) (COKB engine), [`Knowledge`](https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge) (Matrix knowledge), [`Knowledge2`](https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge2) (Extended knowledge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inference["Inference"]
  node_engine["COKB engine<br/>[Engine.mw]"]
end

subgraph group_knowledge["Knowledge bases"]
  node_kb1[("Matrix knowledge")]
  node_kb2[("Extended knowledge")]
end

node_user(("Problem solver"))

node_user -->|"submits problem"| node_engine
node_engine -->|"uses knowledge"| node_kb1
node_engine -->|"uses knowledge"| node_kb2

click node_engine "https://github.com/sonlam1102/cokb-model-example/blob/master/Engine.mw"
click node_kb1 "https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge"
click node_kb2 "https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge2"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_engine toneBlue
class node_kb1,node_kb2 toneAmber
class node_user toneIndigo
```

## Components

### Inference

- [COKB engine](https://github.com/sonlam1102/cokb-model-example/blob/master/Engine.mw): `Engine.mw`

### Knowledge bases

- [Matrix knowledge](https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge): `Knowledge`
- [Extended knowledge](https://github.com/sonlam1102/cokb-model-example/tree/master/Knowledge2): `Knowledge2`

### Other components

- **Problem solver**

## Connections

- Problem solver → COKB engine: submits problem
- COKB engine → Matrix knowledge: uses knowledge
- COKB engine → Extended knowledge: uses knowledge
