Cognitive and Semantic Foundations for Resilient Digital Twins in Smart Industries