The current learning systems typically lack the level of meta-cognitive awareness, self-directed learning, and time management skills. Most of the ontologically based learning management systems are in the proposed phase and those which are developed do not provide the necessary path guidance for proper learning. The systems available are not as adaptive from the viewpoint of the learner as required. Ontology engineering has become an important pillar for knowledge management and representation in recent years. The design, approach and implementation of ontology in elearning and m-learning systems have made them more effective. In this paper, we have proposed a system for the betterment of knowledge management and representation of associated data as compared to the previously available learning management systems. Here, we have presented the application and implementation of ontological engineering methodology in the Computer Science domain. For knowledge management, we have created a domain associated ontology which represents knowledge of a single domain. Subsequently, ontology has been created to manage a learner profile so that a learner may be aligned to a proper path of learning. The learner ontology will use the VARK learning model which classifies what kind of learning does the learner requires so that necessary resources could be provided.