Framework and case study of cognitive maintenance in Industry 4.0