First, we have to create new Ontology for our owl file where named as university.owl
Create classes for the ontology, there are 2 classes which are Module and person. Module class contains CSModule and MathModule. Person class contains Lecturer and Student.
After that, creates objects which are the teaches and studies. The object teaches is related to its domain as Lecturer and range as Module. The object studies is related to its domain as Student and range as Module.
Then, we have to add the data properties in order to describe the relationship between two individuals. There are four data properties which are the studentID, staffID, first_name and last_name.
Furthermore, we have added some individuals and some of the individuals we added Data property assertions to the individual. For example, the individual of Lecturer 1 is added the first_name as Larisa, last_name as Soldatova, and staffID as 417686. The Figures below are each of the individual with its data property.