Graphilosophy: Graph-Based Digital Humanities Computing with The Four Books

Minh-Thu Do1,2, Quynh-Chau Le-Tran1,2, Duc-Duy Nguyen-Mai1,2, Thien-Trang Nguyen1,2, Khanh-Duy Le1,2, Minh-Triet Tran1,2, Tam V. Nguyen3, Trung-Nghia Le1,2*
1University of Science, VNU-HCM, Ho Chi Minh City, Vietnam, 2Vietnam National University - Ho Chi Minh, Ho Chi Minh City, Vietnam, 3University of Dayton, Dayton, Ohio, United States
AI & Society 2026
*Corresponding author
Figure 1: The multi-layered ontology architecture of the Graphilosophy knowledge graph.

Graphilosophy links six ontology layers to support cross-lingual exploration of The Four Books.

Abstract

The Four Books have shaped East Asian intellectual traditions, yet their multi-layered interpretive complexity limits their accessibility in the digital age. While traditional bilingual commentaries provide a vital pedagogical bridge, computational frameworks are needed to preserve and explore this wisdom. This paper bridges AI and classical philosophy by introducing Graphilosophy, an ontology-guided, multi-layered knowledge graph framework for modeling and interpreting The Four Books. Integrating natural language processing, multilingual semantic embeddings, and humanistic analysis, the framework transforms a bilingual Chinese-Vietnamese corpus into an interpretively grounded resource.

Graphilosophy encodes linguistic, conceptual, and interpretive relationships across interconnected layers, enabling cross-lingual retrieval and AI-assisted reasoning while explicitly preserving scholarly nuance and interpretive plurality. The system also enables non-expert users to trace the evolution of ethical concepts across borders and languages, ensuring that ancient wisdom remains a living resource for modern moral discourse rather than a static relic of the past. Through an interactive interface, users can trace the evolution of ethical concepts across languages, ensuring ancient wisdom remains relevant for modern discourse. A preliminary user study suggests the system's capacity to enhance conceptual understanding and cross-cultural learning.

By linking algorithmic representation with ethical inquiry, this research exemplifies how AI can serve as a methodological bridge, accommodating the ambiguity of cultural heritage rather than reducing it to static data. The Source code and data are released at https://github.com/ThuDoMinh1102/confucian-texts-knowledge-graph.

Method

Graphilosophy builds an ontology-guided knowledge graph for the bilingual Classical Chinese–Vietnamese Four Books corpus. Its six layers—Meta, Textual, Linguistic, Conceptual, Commentary and Speaker, and Semantic—separate distinct analytical roles while remaining linked for cross-layer queries. The schema defines 20 entity classes and 18 directed relation types; relations are generated through automatic rules, semi-automatic processing with human validation, or manual expert annotation.

The corpus combines 2,222 segmented sentences, 80 scholarly commentary annotations, and a lexical dictionary of 2,788 entries, including 2,562 unique Classical Chinese characters and 23 core Confucian concepts. The resulting graph contains 16,468 nodes and 71,249 edges. Tri-parallel text aligns Classical Chinese, Sino-Vietnamese readings, and modern Vietnamese translations; the lexical corpus connects dictionary entries to context, and the exegesis corpus links expert commentary to canonical passages. Contextual multilingual embeddings help resolve polysemy without forcing a single definitive meaning, while expert review checks alignment and preserves interpretive plurality.

Figure 2: User interface of the proposed system integrating layered KG visualization, semantic search, and commentary exploration.

Figure 2. User interface of the proposed system integrating layered KG visualization, semantic search, and commentary exploration. The interface enables cross-lingual retrieval and interpretive analysis of The Four Books through Gemini-powered natural language querying. Some instructions in the interface are displayed in Vietnamese to enhance usability for local users.

Quantitative Results

Table 3. Retrieval performance comparison between BM25, Semantic, and Hybrid approach. Best in bold, second best underlined.

MetricBM25Semantic (E5)HybridBest Performer
P@10.7731.0001.000Hybrid/Semantic
P@30.6521.0001.000Hybrid/Semantic
P@50.5641.0001.000Hybrid/Semantic
P@100.5051.0000.995Semantic
MRR0.7731.0001.000Hybrid/Semantic
NDCG@50.7701.0001.000Hybrid/Semantic
NDCG@100.7661.0001.000Semantic

Semantic and Hybrid reach 1.000 on most reported metrics, while BM25 declines from 0.773 at P@1 to 0.505 at P@10. The evaluation uses a synthetic corpus of Confucian concepts and unrelated topics; the paper cautions that this controlled test does not establish performance for nuanced philosophical relevance judgments.

Table F2. Retrieval effectiveness between Adaptive Semantic and Fixed Chunking. Best in bold.

MethodRecall@5NDCG@5Mean Similarity
Fixed Chunking (Baseline)0.3150.2810.861
Adaptive Semantic Chunking (Ours)0.3800.3330.863

On a test corpus of 200 annotated queries, Adaptive Semantic Chunking reports higher Recall@5 (0.380 versus 0.315) and NDCG@5 (0.333 versus 0.281) than Fixed Chunking. Mean Similarity is 0.863 versus 0.861; the paper reports improvements of 20.6% in Recall@5 and 18.5% in NDCG@5.

Pilot Study

A preliminary evaluation with six graduate students in Educational Science examined Graphilosophy’s pedagogical and scholarly use. Participants traced the concept 仁 across The Analects and The Works of Mencius, compared speakers’ uses of 禮, and used exact-text search to find commentary links. Interviews suggested the system helped learners explore conceptual structure and intertextual relationships, while identifying visual density, labeling, and chatbot presentation as areas to improve. The authors caution that this small exploratory study does not establish generalizability or long-term educational impact.

Table 2. Summary of participant response trends (n = 6).

Table 2: Summary of participant response trends (n = 6).

Participants reported positive learning benefit (4/6), AI helpfulness (5/6), and system usability (3/6), alongside concerns about visual clutter, chatbot presentation, and navigation. The paper presents these as exploratory qualitative feedback from six participants.

The response summary shows positive feedback from 4 of 6 participants on learning benefit, 5 of 6 on AI helpfulness, and 3 of 6 on system usability. Reported concerns included visual clutter in complex subgraphs, chatbot text formatting and missing visual links, and mixed language and navigation flow. Each session lasted about 60 minutes, including task completion and a post-study interview. These response counts summarize a small exploratory sample rather than a generalizable effectiveness evaluation.

Applications

The paper extends the knowledge graph into generative storytelling, turning philosophical passages into sequential visual narratives. The prototype supports collaborative narrative composition, panel organization, and visual coherence, connecting classical commentary with AI-assisted cultural heritage storytelling.

Figure 9: AI-generated narrative visualization from The Analects.

Figure 9. AI-generated narrative visualization from The Analects.

Figure 10: Qualitative results of the Philosophy-Unfolded - The Great Learning (大学/ Đại Học) system.

Figure 10. Qualitative results of the Philosophy-Unfolded - The Great Learning (大学/ Đại Học) system. Eight visual narratives depict sequential moral progressions derived from the canonical text and commentary through multimodal generative interpretation.

BibTeX

@article{do2026graphilosophy,
  author  = {Do, Minh-Thu and Le-Tran, Quynh-Chau and Nguyen-Mai, Duc-Duy and Nguyen, Thien-Trang and Le, Khanh-Duy and Tran, Minh-Triet and Nguyen, Tam V. and Le, Trung-Nghia},
  title   = {Graphilosophy: Graph-Based Digital Humanities Computing with The Four Books},
  journal = {AI & Society},
  year    = {2026},
}