Analysis of Narrative Networks in Spanish Literature: An Automatic Learning Method for Knowledge Graphs
DOI:
https://doi.org/10.56294/mr2025226Keywords:
Digital literary, knowledge graphs (KG), Graph Convolutional Networks (GCNs), Spanish literature, entity-relationalAbstract
Introduction: Spanish literature, known for its emotional depth and complex character interactions, has seen limited computational exploration of these relationships. The lack of annotated data and NLP tools for Spanish hampers the development of accurate knowledge graphs (KGs) to map character dynamics.
Objective:This research presents an automated pipeline to extract, organize, and visualize character relationships in Spanish literary classics, such as Don Quijote, La Regenta, and Fortunata y Jacinta, with over 2,500 entity interactions.
Method: The method leverages multilingual contextual embeddings for high-accuracy inferences, using Multilingual Bidirectional Encoder Representations from Transformers (mBERT) for feature extraction and Named Entity Recognition (NER) for character identification. Graph Convolutional Networks (GCNs) are employed to capture narrative ties through joint entity-relational learning, and the KG is built with RDF triples and visualized using SpaCy.
Results: The approach achieves significant performance metrics: precision (85.01%), recall (87.06%), and F1 score (87.96%). The generated networks effectively represent character interactions and narrative structure, offering valuable insights into the relational dynamics of the texts.
Conclusions: This method contributes to the development of high-quality KGs for Spanish literature, advancing comparative storytelling, computational literary research, and understanding character networks in literary analysis.
References
[1] Sepasgozar, S.M., Khan, A.A., Smith, K., Romero, J.G., Shen, X., Shirowzhan, S., Li, H. and Tahmasebinia, F., 2023. BIM and digital twin for developing convergence technologies as future of digital construction. Buildings, 13(2), p.441. https://doi.org/10.3390/buildings13020441
[2] Greco, D., Osborne, F., Pusceddu, S. and Reforgiato Recupero, D., 2025. Modelling big data platforms as knowledge graphs: the data platform shaper. Journal of Big Data, 12(1), p.64. https://doi.org/10.1186/s40537-025-01094-w
[3] Hofer, M., Obraczka, D., Saeedi, A., Köpcke, H. and Rahm, E., 2024. Construction of knowledge graphs: Current state and challenges. Information, 15(8), p.509. https://doi.org/10.3390/info15080509
[4] Georges, P. and Seckin, A., 2022. Music information visualization and classical composers discovery: an application of network graphs, multidimensional scaling, and support vector machines. Scientometrics, 127(5), pp.2277-2311. https://doi.org/10.1007/s11192-022-04331-8
[5] Li, J. and Xue, E., 2023. Dynamic interaction between student learning behaviour and learning environment: Meta-analysis of student engagement and its influencing factors. Behavioral Sciences, 13(1), p.59. https://doi.org/10.3390/bs13010059
[6] Chen, Y., Li, H., Li, H., Liu, W., Wu, Y., Huang, Q. and Wan, S., 2022. An overview of knowledge graph reasoning: key technologies and applications. Journal of Sensor and Actuator Networks, 11(4), p.78. https://doi.org/10.3390/jsan11040078
[7] Borrego, A., Dessi, D., Hernández, I., Osborne, F., Recupero, D.R., Ruiz, D., Buscaldi, D. and Motta, E., 2022. Completing scientific facts in knowledge graphs of research concepts. IEEE Access, 10, pp.125867-125880. https://doi.org/10.1109/ACCESS.2022.3220241
[8] Rios-Alvarado, A.B., Martinez-Rodriguez, J.L., Garcia-Perez, A.G., Guerrero-Melendez, T.Y., Lopez-Arevalo, I. and Gonzalez-Compean, J.L., 2023. Exploiting lexical patterns for knowledge graph construction from unstructured text in Spanish. Complex & Intelligent Systems, 9(2), pp.1281-1297. https://doi.org/10.1007/s40747-022-00805-7
[9] Chessa, A., Fenu, G., Motta, E., Osborne, F., Recupero, D.R., Salatino, A. and Secchi, L., 2023. Data-driven methodology for knowledge graph generation within the tourism domain. IEEE Access, 11, pp.67567-67599. https://doi.org/10.1109/ACCESS.2023.3292153
[10] Hao, X., Ji, Z., Li, X., Yin, L., Liu, L., Sun, M., Liu, Q. and Yang, R., 2021. Construction and application of a knowledge graph. Remote Sensing, 13(13), p.2511. https://doi.org/10.3390/rs13132511
[11] Lovera, F.A., Cardinale, Y.C. and Homsi, M.N., 2021. Sentiment analysis in Twitter based on knowledge graph and deep learning classification. Electronics, 10(22), p.2739. https://doi.org/10.3390/electronics10222739
[12] Hamroun, M. and Sauveron, D., 2025. A Hybrid Deep Learning and Knowledge Graph Approach for Intelligent Image Indexing and Retrieval. Applied Sciences, 15(19), p.10591. https://doi.org/10.3390/app151910591
[13] Chudasama, Y., Huang, H., Purohit, D. and Vidal, M.E., 2025. Towards interpretable hybrid ai: Integrating knowledge graphs and symbolic reasoning in medicine. IEEE Access, vol. 13, pp. 39489-39509, https://doi.org/10.1109/ACCESS.2025.3529133
[14] Escudero-Arnanz, Ó., Soguero-Ruiz, C. and Marques, A.G., 2025. Explainable spatio-temporal GCNNs for irregular multivariate time series: Architecture and application to ICU patient data. IEEE Transactions on Signal and Information Processing over Networks, vol. 11, pp. 1286-1301, https://doi.org/10.1109/TSIPN.2025.3613951
[15] Guzman-Monteza, Y., Fernandez-Luna, J.M. and Ribadas-Pena, F.J., 2025. IV-Nlp: A Methodology to Understand the Behavior of DL Models and Its Application from a Causal Approach. Electronics, 14(8), p.1676.https://doi.org/10.3390/electronics14081676
[16] Razzaq, K. and Shah, M., 2025. Machine learning and deep learning paradigms: From techniques to practical applications and research frontiers. Computers, 14(3), p.93. https://doi.org/10.3390/s25082405
[17] Gagliardi, I. and Artese, M.T., 2024. Exploring and visualizing multilingual cultural heritage data using multi-layer semantic graphs and transformers. Electronics, 13(18), p.3741.https://doi.org/10.3390/electronics13183741
[18] Amur, Z.H., Kwang Hooi, Y., Bhanbhro, H., Dahri, K. and Soomro, G.M., 2023. Short-text semantic similarity (stss): Techniques, challenges and future perspectives. Applied Sciences, 13(6), p.3911.https://doi.org/10.3390/app13063911
[19] Rios-Alvarado, A.B., Martinez-Rodriguez, J.L., Garcia-Perez, A.G., Guerrero-Melendez, T.Y., Lopez-Arevalo, I. and Gonzalez-Compean, J.L., 2023. Exploiting lexical patterns for knowledge graph construction from unstructured text in Spanish. Complex & Intelligent Systems, 9(2), pp.1281-1297. https://doi.org/10.1007/s40747-022-00805-7.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Kunfei Li (Author)

This work is licensed under a Creative Commons Attribution 4.0 International License.
The article is distributed under the Creative Commons Attribution 4.0 License. Unless otherwise stated, associated published material is distributed under the same licence.
