# arthursrz/knowledge_glossary architecture

> Architecture diagram of the GitHub repository arthursrz/knowledge_glossary, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/arthursrz/knowledge_glossary
- Repository: https://github.com/arthursrz/knowledge_glossary

## Overview

1. **Repository type and purpose**
   - This is not an application codebase; it is a **knowledge graph vault** built in Markdown, centered on data science, machine learning, and AI concepts.
   - The repository’s main asset is the `graph/` directory, which contains the graph nodes as human-readable notes.

2. **Primary storage layer: one concept per file**
   - Each concept is represented by a single Markdown file such as `graph/AI.md`, `graph/Knowledge graph.md`, or `graph/Retrieval Augmented Generation.md`.
   - File names act as **canonical node identifiers** in the graph.

3. **Node structure**
   - A node usually contains:
     - YAML frontmatter for structured metadata
     - A prose definition/description
     - Wiki-links like `[[Ontology]]` or `[[Taxonomy]]` that create cross-links between concepts
   - The README shows typed relationships such as `uses`, `partOf`, `subclass of`, and `studied in`.

4. **Relationship model**
   - The graph is **typed**, not just a pile of backlinks.
   - Relationship types encode semantics: hierarchy, composition, usage, study context, and similar ontology-style links.
   - This makes the repository suitable as a lightweight **domain ontology** rather than only a note collection.

5. **Graph topology**
   - The content spans multiple connected domains:
     - ML concepts: training, evaluation, feature engineering, model selection
     - Data engineering: pipelines, lineage, quality, warehousing
     - NLP/LLM topics: embeddings, transformers, RAG, prompt engineering
     - MLOps: deployment, monitoring, drift, retraining
     - Privacy/compliance and knowledge representation
   - The repository is therefore a **semantic network of concepts**, not a single linear document set.

6. **Primary interaction surface**
   - The vault is designed for **Obsidian**, which provides graph navigation and wiki-link rendering.
   - In practice, Obsidian is the main UI for reading, traversing, and editing the knowledge graph.

7. **Derived analytics and stats**
   - The `scripts/count_richness.py` script suggests a small analytics pipeline for measuring graph “richness” or content growth.
   - `stats/data.json` stores generated statistics, and `stats/chart.png` is the visual output shown in the README.
   - This separates **raw knowledge content** from **derived metrics**.

8. **Automation**
   - `.github/workflows/daily-stats.yml` indicates GitHub Actions is used to run the stats update on a schedule.
   - The repo therefore has a lightweight CI-like automation path for keeping the chart and metrics current.

9. **Output and presentation boundary**
   - `media/` likely holds embedded visual assets used by notes or documentation.
   - The README is the only top-level narrative document and explains the intended uses and graph conventions.

10. **External export targets**
   - The repository is explicitly positioned for conversion into more formal graph systems:
     - Neo4j via Cypher
     - RDF/OWL
     - JSON-LD
   - That means the Markdown vault is the **source of truth**, and other graph formats are downstream projections.

11. **Main architectural boundary**
   - The core boundary is between:
     - **authoring layer**: Markdown notes + frontmatter in `graph/`
     - **derived layer**: stats, charting, and potential formal graph exports
   - Nothing here suggests runtime services, APIs, or application state; the system is content-centric.

12. **How to diagram it**
   - The cleanest architecture diagram would show:
     - `graph/` as the central knowledge store
     - wiki-links and frontmatter as the relationship fabric
     - Obsidian as the primary editor/viewer
     - `scripts/` and GitHub Actions as the metrics automation path
     - `stats/` as generated artifacts
     - optional downstream consumers like Neo4j/RDF/LLM grounding systems

Main entry points: [`graph/Knowledge graph.md`](https://github.com/arthursrz/knowledge_glossary/blob/HEAD/graph/Knowledge%20graph.md) (Knowledge graph), [`graph`](https://github.com/arthursrz/knowledge_glossary/tree/main/graph) (Graph vault), [`README.md`](https://github.com/arthursrz/knowledge_glossary/blob/main/README.md) (README), [`.github/workflows/daily-stats.yml`](https://github.com/arthursrz/knowledge_glossary/blob/main/.github/workflows/daily-stats.yml) (Scheduled workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Authoring layer"]
  node_readme["README<br/>overview doc<br/>[README.md]"]
  node_graph_store[("Graph vault<br/>markdown corpus")]
  node_typed_links(("Typed links<br/>relationship fabric"))
  node_ontology{{"Ontology<br/>domain model<br/>[ontology.md]"}}
  node_knowledge_graph{{"Knowledge graph<br/>core concept<br/>[Knowledge graph.md]"}}
  node_ml_core["ML concepts<br/>concept cluster"]
  node_llm_rag["LLM & RAG<br/>concept cluster"]
  node_data_engineering["Data engineering<br/>concept cluster"]
  node_mlops["MLOps<br/>concept cluster"]
  node_privacy_governance["Privacy & governance<br/>concept cluster"]
end

subgraph group_derived["Derived layer"]
  node_scripts["Stats script<br/>analytics script<br/>[count_richness.py]"]
  node_github_actions["Scheduled workflow<br/>automation<br/>[daily-stats.yml]"]
  node_stats_data[("Stats data<br/>generated data<br/>[data.json]")]
  node_media_assets["Media assets<br/>embedded assets"]
end

subgraph group_external["External consumers"]
  node_obsidian(("Obsidian<br/>editor/viewer"))
  node_neo4j_exports["Graph exports<br/>downstream targets<br/>[CYPHER.md]"]
end

node_readme -->|"describes"| node_graph_store
node_readme -->|"uses"| node_obsidian
node_graph_store -->|"expresses"| node_typed_links
node_graph_store -->|"organizes"| node_ontology
node_graph_store -->|"contains"| node_knowledge_graph
node_ontology -->|"shapes"| node_knowledge_graph
node_knowledge_graph -->|"includes"| node_ml_core
node_knowledge_graph -->|"includes"| node_llm_rag
node_knowledge_graph -->|"includes"| node_data_engineering
node_knowledge_graph -->|"includes"| node_mlops
node_knowledge_graph -->|"includes"| node_privacy_governance
node_knowledge_graph -->|"edited in"| node_obsidian
node_neo4j_exports -->|"projects"| node_knowledge_graph
node_scripts -->|"generates"| node_stats_data
node_github_actions -->|"runs"| node_scripts
node_github_actions -->|"updates"| node_stats_data
node_media_assets -->|"supports"| node_readme
node_typed_links -->|"rendered by"| node_obsidian

click node_readme "https://github.com/arthursrz/knowledge_glossary/blob/main/README.md"
click node_graph_store "https://github.com/arthursrz/knowledge_glossary/tree/main/graph"
click node_ontology "https://github.com/arthursrz/knowledge_glossary/blob/main/graph/ontology.md"
click node_knowledge_graph "https://github.com/arthursrz/knowledge_glossary/blob/main/graph/Knowledge graph.md"
click node_llm_rag "https://github.com/arthursrz/knowledge_glossary/blob/main/graph/Retrieval Augmented Generation.md"
click node_neo4j_exports "https://github.com/arthursrz/knowledge_glossary/blob/main/graph/CYPHER.md"
click node_scripts "https://github.com/arthursrz/knowledge_glossary/blob/main/scripts/count_richness.py"
click node_github_actions "https://github.com/arthursrz/knowledge_glossary/blob/main/.github/workflows/daily-stats.yml"
click node_stats_data "https://github.com/arthursrz/knowledge_glossary/blob/main/stats/data.json"
click node_media_assets "https://github.com/arthursrz/knowledge_glossary/tree/main/media"

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_readme,node_graph_store,node_typed_links,node_ontology,node_knowledge_graph,node_ml_core,node_llm_rag,node_data_engineering,node_mlops,node_privacy_governance toneBlue
class node_scripts,node_github_actions,node_stats_data,node_media_assets toneAmber
class node_obsidian,node_neo4j_exports toneMint
```

## Components

### Authoring layer

Markdown knowledge notes and linking conventions

- [README](https://github.com/arthursrz/knowledge_glossary/blob/main/README.md): overview doc · Top-level narrative and conventions for the vault. · `README.md`
- [Graph vault](https://github.com/arthursrz/knowledge_glossary/tree/main/graph): markdown corpus · Canonical concept notes stored one idea per file. · `graph`
- **Typed links**: relationship fabric · Wiki-links and semantic relations such as uses, partOf, subclass of, and studied in.
- [Ontology](https://github.com/arthursrz/knowledge_glossary/blob/main/graph/ontology.md): domain model · The conceptual structure that organizes terms, types, and relationships. · `graph/ontology.md`
- [Knowledge graph](https://github.com/arthursrz/knowledge_glossary/blob/HEAD/graph/Knowledge%20graph.md): core concept · The repository's central representation of connected concepts. · `graph/Knowledge graph.md`
- **ML concepts**: concept cluster · Training, evaluation, model selection, feature engineering, and related machine learning ideas.
- [LLM & RAG](https://github.com/arthursrz/knowledge_glossary/blob/HEAD/graph/Retrieval%20Augmented%20Generation.md): concept cluster · Embeddings, transformers, prompt engineering, retrieval augmented generation, and related NLP topics. · `graph/Retrieval Augmented Generation.md`
- **Data engineering**: concept cluster · Data pipelines, lineage, quality, warehousing, and preparation concepts.
- **MLOps**: concept cluster · Deployment, monitoring, drift, retraining, and operational model lifecycle concepts.
- **Privacy & governance**: concept cluster · Privacy, compliance, fairness, accountability, and governance concepts.

### Derived layer

Generated metrics and automation outputs

- [Stats script](https://github.com/arthursrz/knowledge_glossary/blob/main/scripts/count_richness.py): analytics script · Counts content richness and supports repository metrics generation. · `scripts/count_richness.py`
- [Scheduled workflow](https://github.com/arthursrz/knowledge_glossary/blob/main/.github/workflows/daily-stats.yml): automation · GitHub Actions job that runs the daily stats update. · `.github/workflows/daily-stats.yml`
- [Stats data](https://github.com/arthursrz/knowledge_glossary/blob/main/stats/data.json): generated data · Machine-generated metrics stored as JSON. · `stats/data.json`
- [Media assets](https://github.com/arthursrz/knowledge_glossary/tree/main/media): embedded assets · Visual or embedded files referenced by notes and documentation. · `media`

### External consumers

Downstream graph systems and reading/editing surfaces

- **Obsidian**: editor/viewer · Primary surface for navigating, editing, and visualizing the vault.
- [Graph exports](https://github.com/arthursrz/knowledge_glossary/blob/main/graph/CYPHER.md): downstream targets · Formal graph projections such as Neo4j/Cypher, RDF/OWL, and JSON-LD. · `graph/CYPHER.md`

## Connections

- README → Graph vault: describes · Explains the note corpus and how it is organized.
- README → Obsidian: uses · Positions Obsidian as the main interaction surface.
- Graph vault → Typed links: expresses · Notes encode relationships through wiki-links and frontmatter.
- Graph vault → Ontology: organizes · The corpus functions as a lightweight ontology.
- Graph vault → Knowledge graph: contains · The repository's main content is the concept graph itself.
- Ontology → Knowledge graph: shapes · Ontology concepts define the graph's structure and semantics.
- Knowledge graph → ML concepts: includes · Covers classic machine learning concepts and workflows.
- Knowledge graph → LLM & RAG: includes · Covers LLM, embedding, and retrieval concepts.
- Knowledge graph → Data engineering: includes · Covers data preparation, lineage, and warehousing concepts.
- Knowledge graph → MLOps: includes · Covers deployment, monitoring, and retraining concepts.
- Knowledge graph → Privacy & governance: includes · Covers privacy, fairness, accountability, and compliance.
- Knowledge graph → Obsidian: edited in · Obsidian is the intended authoring and browsing environment.
- Graph exports → Knowledge graph: projects · Downstream formal graph systems consume the vault as source material.
- Stats script → Stats data: generates · Script computes or refreshes the richness metrics artifact.
- Scheduled workflow → Stats script: runs · Scheduled automation executes the stats pipeline.
- Scheduled workflow → Stats data: updates · Workflow refreshes generated metrics on a schedule.
- Media assets → README: supports · Embedded assets can be referenced from documentation and notes.
- Typed links → Obsidian: rendered by · Wiki-link semantics are surfaced through Obsidian navigation.
