# danielebottaro/inventiomemoriae architecture

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

- Interactive diagram: https://gitdiagram.com/danielebottaro/inventiomemoriae
- Repository: https://github.com/danielebottaro/inventiomemoriae

## Overview

Inventio Memoriae is a digital-humanities project presenting structured information about people, events, artworks, and related entities. One evidenced workflow parses TEI and supplemental JSON, merges and categorizes the records, then renders an HTML page. A separate script transforms the TEI source with XSLT into a styled HTML view. The tree also includes an RDF dataset and conceptual diagrams, but their generation or runtime connections are not shown in the excerpts. The map therefore distinguishes documented flows from standalone product assets.

Main entry points: [`python_script/jinja_template.py`](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/jinja_template.py) (Merge and categorize), [`python_script/json_xml_to_rdf.py`](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/json_xml_to_rdf.py) (Entity and relation parsing), [`python_script/xml-html_transformation.py`](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/xml-html_transformation.py) (TEI HTML transformation), [`xml_json_files/inMe_TEI.xml`](https://github.com/danielebottaro/inventiomemoriae/blob/main/xml_json_files/inMe_TEI.xml) (TEI records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Source data"]
  node_tei["TEI records<br/>[inMe_TEI.xml]"]
  node_extra["Supplemental entities"]
end

subgraph group_processing["Data processing"]
  node_parser["Entity and relation parsing<br/>[json_xml_to_rdf.py]"]
  node_merge["Merge and categorize<br/>[jinja_template.py]"]
  node_rdf["RDF graph conversion<br/>[json_xml_to_rdf.py]"]
  node_transform["TEI HTML transformation"]
  node_xslt["TEI transformation rules<br/>[inMe_XSLT.xslt]"]
end

subgraph group_presentation["Web presentation"]
  node_template["Entity page template<br/>[Index_src.html]"]
  node_index["Entity index page<br/>[index.html]"]
  node_styled["Styled TEI view"]
  node_zoom["Zoom page<br/>[zoom-page.html]"]
  node_style["Page styling<br/>[doc_style.css]"]
  node_xslstyle["Transformation styling<br/>[xsl_style.css]"]
end

subgraph group_models["Knowledge models"]
  node_rdfdata[("RDF dataset")]
  node_concept["Conceptual model"]
  node_theory["Theoretical model"]
end

node_user(("Site visitor"))

node_tei -->|"parses TEI"| node_parser
node_extra -->|"parses JSON"| node_parser
node_parser -->|"supplies records"| node_merge
node_tei -->|"loads source"| node_transform
node_xslt -->|"applies rules"| node_transform
node_transform -->|"writes HTML"| node_styled
node_merge -->|"renders data"| node_template
node_merge -->|"writes page"| node_index
node_user -.->|"views page"| node_index

click node_tei "https://github.com/danielebottaro/inventiomemoriae/blob/main/xml_json_files/inMe_TEI.xml"
click node_extra "https://github.com/danielebottaro/inventiomemoriae/blob/main/xml_json_files/inMe_extra_entities.json"
click node_parser "https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/json_xml_to_rdf.py"
click node_merge "https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/jinja_template.py"
click node_rdf "https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/json_xml_to_rdf.py"
click node_transform "https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/xml-html_transformation.py"
click node_xslt "https://github.com/danielebottaro/inventiomemoriae/blob/main/xslt/inMe_XSLT.xslt"
click node_template "https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/Index_src.html"
click node_index "https://github.com/danielebottaro/inventiomemoriae/blob/main/index.html"
click node_styled "https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/inMe_stylised_xml.html"
click node_zoom "https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/zoom-page.html"
click node_style "https://github.com/danielebottaro/inventiomemoriae/blob/main/style/doc_style.css"
click node_xslstyle "https://github.com/danielebottaro/inventiomemoriae/blob/main/style/xsl_style.css"
click node_rdfdata "https://github.com/danielebottaro/inventiomemoriae/blob/main/rdf_dataset/inventio_memoriae_graph.ttl"
click node_concept "https://github.com/danielebottaro/inventiomemoriae/blob/main/yED_files/conceptual_model_def.graphml"
click node_theory "https://github.com/danielebottaro/inventiomemoriae/blob/main/yED_files/theoretical_model_def.graphml"

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_tei,node_extra toneBlue
class node_parser,node_merge,node_rdf,node_transform,node_xslt toneAmber
class node_template,node_index,node_styled,node_zoom,node_style,node_xslstyle toneMint
class node_rdfdata,node_concept,node_theory toneRose
class node_user toneIndigo
```

## Components

### Source data

- [TEI records](https://github.com/danielebottaro/inventiomemoriae/blob/main/xml_json_files/inMe_TEI.xml): `xml_json_files/inMe_TEI.xml`
- [Supplemental entities](https://github.com/danielebottaro/inventiomemoriae/blob/main/xml_json_files/inMe_extra_entities.json): `xml_json_files/inMe_extra_entities.json`

### Data processing

- [Entity and relation parsing](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/json_xml_to_rdf.py): `python_script/json_xml_to_rdf.py`
- [Merge and categorize](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/jinja_template.py): `python_script/jinja_template.py`
- [RDF graph conversion](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/json_xml_to_rdf.py): `python_script/json_xml_to_rdf.py`
- [TEI HTML transformation](https://github.com/danielebottaro/inventiomemoriae/blob/main/python_script/xml-html_transformation.py): `python_script/xml-html_transformation.py`
- [TEI transformation rules](https://github.com/danielebottaro/inventiomemoriae/blob/main/xslt/inMe_XSLT.xslt): `xslt/inMe_XSLT.xslt`

### Web presentation

- [Entity page template](https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/Index_src.html): `html_files/Index_src.html`
- [Entity index page](https://github.com/danielebottaro/inventiomemoriae/blob/main/index.html): `index.html`
- [Styled TEI view](https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/inMe_stylised_xml.html): `html_files/inMe_stylised_xml.html`
- [Zoom page](https://github.com/danielebottaro/inventiomemoriae/blob/main/html_files/zoom-page.html): `html_files/zoom-page.html`
- [Page styling](https://github.com/danielebottaro/inventiomemoriae/blob/main/style/doc_style.css): `style/doc_style.css`
- [Transformation styling](https://github.com/danielebottaro/inventiomemoriae/blob/main/style/xsl_style.css): `style/xsl_style.css`

### Knowledge models

- [RDF dataset](https://github.com/danielebottaro/inventiomemoriae/blob/main/rdf_dataset/inventio_memoriae_graph.ttl): `rdf_dataset/inventio_memoriae_graph.ttl`
- [Conceptual model](https://github.com/danielebottaro/inventiomemoriae/blob/main/yED_files/conceptual_model_def.graphml): `yED_files/conceptual_model_def.graphml`
- [Theoretical model](https://github.com/danielebottaro/inventiomemoriae/blob/main/yED_files/theoretical_model_def.graphml): `yED_files/theoretical_model_def.graphml`

### Other components

- **Site visitor**

## Connections

- TEI records → Entity and relation parsing: parses TEI
- Supplemental entities → Entity and relation parsing: parses JSON
- Entity and relation parsing → Merge and categorize: supplies records (evidence: `python_script/jinja_template.py`)
- TEI records → TEI HTML transformation: loads source (evidence: `python_script/xml-html_transformation.py`)
- TEI transformation rules → TEI HTML transformation: applies rules (evidence: `python_script/xml-html_transformation.py`)
- TEI HTML transformation → Styled TEI view: writes HTML (evidence: `python_script/xml-html_transformation.py`)
- Merge and categorize → Entity page template: renders data (evidence: `python_script/jinja_template.py`)
- Merge and categorize → Entity index page: writes page (evidence: `python_script/jinja_template.py`)
- Site visitor → Entity index page: views page
