Knowledge Modelling in Electromagnetic Applications