{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,22]],"date-time":"2026-05-22T05:08:21Z","timestamp":1779426501619,"version":"3.53.1"},"reference-count":38,"publisher":"MDPI AG","issue":"5","license":[{"start":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T00:00:00Z","timestamp":1779235200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Information"],"abstract":"<jats:p>DTDL (Digital Twins Definition Language) provides no mechanism for logical reasoning or constraint checking over digital twin models. We integrate DTDL with ASP Chef, a web-based Answer Set Programming (ASP) platform, via a structured DTDL-to-ASP mapping and three dedicated operations: @DTDL\/Parse for fact generation, @DTDL\/Analysis for structural metrics, and @DTDL\/Debug for symbolic validation with LLM-guided repair. The key design decision is that error detection is symbolic and deterministic within the implemented set of constraint classes; a language model is invoked only after the ASP layer has produced a concrete, grounded diagnostic, keeping the correctness boundary with the symbolic layer. Soundness and completeness guarantees are scoped to these constraint classes; a formal proof is left as future work. We illustrate the framework on two agricultural use cases and report a proof-of-concept assessment on 99 diagnostics spanning 21 error classes across four domains. Three binary metrics are used: json_valid and entity_recall are computed mechanically; fix quality (judge_correct) is assessed by an independent LLM judge (Claude Sonnet 4.6). The complete grounded workflow achieves 90% judge_correct and 86% json_valid; a fair ablation baseline\u2014same LLM and system message, but error type and entity name in natural language without structured diagnostics\u2014achieves 77% and 75%, respectively. The gap is consistent across three independent judges and statistically significant (McNemar p&lt;0.01), but the inter-judge reliability of judge_correct is limited (\u03ba ranging from 0.00 to 0.44), so results should be read as directional evidence rather than precise effect estimates. Excluding the dominant isolated_interface class (n=28, ceiling score), the conservative estimate is 87% vs. 79% on the remaining 71 diagnostics. These results constitute a preliminary proof-of-concept limited to a small number of models, a few application domains, and a single LLM configuration; results do not generalize beyond this specific setting. The judge_correct metric is assessed by LLM-as-judge and does not carry a perfect inter-annotator agreement.<\/jats:p>","DOI":"10.3390\/info17050506","type":"journal-article","created":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T12:30:51Z","timestamp":1779280251000},"page":"506","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["SymbolicAnalysis and LLM-Guided Debugging of Digital Twin Models with ASP Chef and DTDL"],"prefix":"10.3390","volume":"17","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-2052-2063","authenticated-orcid":false,"given":"Mario","family":"Alviano","sequence":"first","affiliation":[{"name":"Department of Mathematics and Computer Science (DeMaCS), University of Calabria, 87036 Rende, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0009-0005-8763-1431","authenticated-orcid":false,"given":"Paola","family":"Guarasci","sequence":"additional","affiliation":[{"name":"Department of Mathematics and Computer Science (DeMaCS), University of Calabria, 87036 Rende, Italy"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2026,5,20]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Kahlen, F.J., Flumerfelt, S., and Alves, A. (2017). Digital Twin: Mitigating Unpredictable, Undesirable Emergent Behavior in Complex Systems. Transdisciplinary Perspectives on Complex Systems: New Findings and Approaches, Springer International Publishing.","DOI":"10.1007\/978-3-319-38756-7"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"2405","DOI":"10.1109\/TII.2018.2873186","article-title":"Digital Twin in Industry: State-of-the-Art","volume":"15","author":"Tao","year":"2019","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"1645","DOI":"10.1016\/j.future.2013.01.010","article-title":"Internet of Things (IoT): A Vision, Architectural Elements, and Future Directions","volume":"29","author":"Gubbi","year":"2013","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"22","DOI":"10.1109\/JIOT.2014.2306328","article-title":"Internet of Things for Smart Cities","volume":"1","author":"Zanella","year":"2014","journal-title":"IEEE Internet Things J."},{"key":"ref_5","unstructured":"Warren, D., and Szeredi, P. (1990). Logic Programs with Classical Negation. Proceedings of the Logic Programming: Proceedings of the Seventh International Conference, MIT Press."},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"294","DOI":"10.1017\/S1471068419000450","article-title":"ASP-Core-2 Input Language Format","volume":"20","author":"Calimeri","year":"2020","journal-title":"Theory Pract. Log. Program."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"653","DOI":"10.1017\/S1471068416000284","article-title":"Combining Answer Set Programming and Domain Heuristics for Solving Hard Industrial Problems (Application Paper)","volume":"16","author":"Dodaro","year":"2016","journal-title":"Theory Pract. Log. Program."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1407","DOI":"10.1007\/s10845-017-1333-3","article-title":"Applications of Non-Monotonic Reasoning to Automotive Product Configuration Using Answer Set Programming","volume":"30","author":"Erdem","year":"2019","journal-title":"J. Intell. Manuf."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"16993","DOI":"10.1007\/s10489-022-03272-2","article-title":"Model-Based Reasoning Using Answer Set Programming","volume":"52","author":"Wotawa","year":"2022","journal-title":"Appl. Intell."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"39","DOI":"10.1016\/S0004-3702(02)00186-8","article-title":"Answer Set Programming and Plan Generation","volume":"138","author":"Lifschitz","year":"2002","journal-title":"Artif. Intell."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Alviano, M., and Rodriguez Reiners, L.A. (2024, January 2\u20138). ASP Chef: Draw and Expand. Proceedings of the 21st International Conference on Principles of Knowledge Representation and Reasoning (KR 2024), Hanoi, Vietnam.","DOI":"10.24963\/kr.2024\/68"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"417","DOI":"10.1017\/S1471068425100094","article-title":"ASP Chef Grows Mustache to Look Better","volume":"25","author":"Alviano","year":"2025","journal-title":"Theory Pract. Log. Program."},{"key":"ref_13","unstructured":"Alviano, M., and Guarasci, P. (2025, January 25\u201327). Querying and Visualizing Digital Twins with ASP and ASP Chef: Preliminary Report. Proceedings of the 40th Italian Conference on Computational Logic (CILC 2025), Alghero, Italy."},{"key":"ref_14","first-page":"101983","article-title":"Validating Knowledge Graphs with SHACL: A Practical Introduction","volume":"138","author":"Shi","year":"2022","journal-title":"Data Knowl. Eng."},{"key":"ref_15","first-page":"303","article-title":"What, Where, Who and How? A Systematic Review of the State of the Art in Digital Twin and SHACL Validation","volume":"15","author":"Warrender","year":"2024","journal-title":"Semant. Web"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"3580","DOI":"10.1109\/TKDE.2024.3352100","article-title":"Unifying Large Language Models and Knowledge Graphs: A Roadmap","volume":"36","author":"Pan","year":"2024","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Ye, X., Chen, Q., Dillig, I., and Durrett, G. (2023, January 10\u201316). Satisfiability-Aided Language Models Using Declarative Prompting. Proceedings of the Advances in Neural Information Processing Systems (NeurIPS 2023), New Orleans, LA, USA.","DOI":"10.52202\/075280-1974"},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Tihanyi, N., Charalambous, Y., Jain, R., Ferrag, M.A., and Cordeiro, L.C. (2025). A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verification. Proceedings of the 2025 IEEE\/ACM International Conference on Automation of Software Test (AST), IEEE.","DOI":"10.1109\/AST66626.2025.00020"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"149","DOI":"10.1007\/s10664-025-10687-1","article-title":"An Empirical Evaluation of Pre-trained Large Language Models for Repairing Declarative Formal Specifications","volume":"30","author":"Alhanahnah","year":"2025","journal-title":"Empir. Softw. Eng."},{"key":"ref_20","first-page":"46595","article-title":"Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena","volume":"Volume 36","author":"Zheng","year":"2023","journal-title":"Proceedings of the Advances in Neural Information Processing Systems"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"159","DOI":"10.2307\/2529310","article-title":"The Measurement of Observer Agreement for Categorical Data","volume":"33","author":"Landis","year":"1977","journal-title":"Biometrics"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"108952","DOI":"10.1109\/ACCESS.2020.2998358","article-title":"Digital Twin: Enabling Technologies, Challenges and Open Research","volume":"8","author":"Fuller","year":"2020","journal-title":"IEEE Access"},{"key":"ref_23","first-page":"100017","article-title":"Digital Twin for Smart Manufacturing: A Review","volume":"2","author":"Soori","year":"2023","journal-title":"Sustain. Manuf. Serv. Econ."},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"36","DOI":"10.1016\/j.cirpj.2020.02.002","article-title":"Characterising the Digital Twin: A Systematic Literature Review","volume":"29","author":"Jones","year":"2020","journal-title":"CIRP J. Manuf. Sci. Technol."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Singh, M., Fuenmayor, E., Hinchy, E.P., Qiao, Y., Murray, N., and Devine, D. (2021). Digital Twin: Origin to Future. Appl. Syst. Innov., 4.","DOI":"10.3390\/asi4020036"},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"110350","DOI":"10.1016\/j.comnet.2024.110350","article-title":"A Comprehensive Survey on Digital Twin for Future Networks and Emerging Internet Things Industry","volume":"247","author":"Hakiri","year":"2024","journal-title":"Comput. Netw."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"929","DOI":"10.1002\/spe.3305","article-title":"Survey on Open-Source Digital Twin Frameworks: A Case Study Approach","volume":"54","author":"Gil","year":"2024","journal-title":"Softw. Pract. Exp."},{"key":"ref_28","unstructured":"Bertoa, M.F., Morales-Trujillo, M.E., Garc\u00eda, J., and Vallecillo, A. (2022). An Ontology for Digital Twins. Proceedings of the 14th International Conference on Software Language Engineering (SLE 2022), ACM."},{"key":"ref_29","first-page":"3256","article-title":"Digital Twin for Services (DT4S): Conceptual Strategy","volume":"55","author":"Rabah","year":"2022","journal-title":"IFAC-Pap."},{"key":"ref_30","unstructured":"Olschowski, M., Fruth, J., Reutemann, M., Rehring, K., and Doerr, J. (2024). Semantic Digital Twins: Bridging the Gap Between Domain Models and Instance Data. Proceedings of the 17th International Conference on Model-Driven Engineering Languages and Systems Companion (MODELS-C 2024), ACM."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"165","DOI":"10.1007\/s13218-018-0548-6","article-title":"Industrial Applications of Answer Set Programming","volume":"32","author":"Falkner","year":"2018","journal-title":"K\u00fcnstl. Intell."},{"key":"ref_32","first-page":"101021","article-title":"Answer Set Programming for IoT Data Processing and Stream Reasoning","volume":"25","author":"Olszewski","year":"2024","journal-title":"Internet Things"},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"724","DOI":"10.1007\/978-3-540-89982-2_65","article-title":"ASPVIZ: Declarative Visualisation and Animation Using Answer Set Programming","volume":"Volume 5366","author":"Cliffe","year":"2008","journal-title":"Proceedings of the Logic Programming (ICLP 2008); Lecture Notes in Computer Science"},{"key":"ref_34","first-page":"325","article-title":"KARA: A System for Visualising and Visual Editing of Interpretations for Answer-Set Programs","volume":"Volume 7773","author":"Oetsch","year":"2011","journal-title":"Proceedings of the INAP\/WLP 2011; Lecture Notes in Computer Science"},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Xia, C.S., Wei, Y., and Zhang, L. (2023, January 14\u201320). Automated Program Repair in the Era of Large Pre-trained Language Models. Proceedings of the 45th International Conference on Software Engineering (ICSE 2023), Melbourne, Australia.","DOI":"10.1109\/ICSE48619.2023.00129"},{"key":"ref_36","doi-asserted-by":"crossref","unstructured":"Xia, C.S., and Zhang, L. (2024, January 16\u201320). Automated Program Repair via Conversation: Fixing 162 out of 337 Bugs for $0.42 Each Using ChatGPT. Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA 2024), Vienna, Austria.","DOI":"10.1145\/3650212.3680323"},{"key":"ref_37","unstructured":"Zhang, Q., Fang, C., Xie, Y., Ma, Y., Sun, W., Yang, Y., and Chen, Z. (2024). A Systematic Literature Review on Large Language Models for Automated Program Repair. ACM Trans. Softw. Eng. Methodol., 1\u201354."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3447772","article-title":"Knowledge Graphs","volume":"54","author":"Hogan","year":"2021","journal-title":"ACM Comput. Surv."}],"container-title":["Information"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2078-2489\/17\/5\/506\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,22]],"date-time":"2026-05-22T04:33:22Z","timestamp":1779424402000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2078-2489\/17\/5\/506"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,20]]},"references-count":38,"journal-issue":{"issue":"5","published-online":{"date-parts":[[2026,5]]}},"alternative-id":["info17050506"],"URL":"https:\/\/doi.org\/10.3390\/info17050506","relation":{},"ISSN":["2078-2489"],"issn-type":[{"value":"2078-2489","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,20]]}}}