Student name :
Muhammad Firdaus bin Che Mat (CI 140012)
Pavithra A/P Ganisan (CI 140064)
Salmiyanti binti Sulaman @ Sulaiman (CI 140029)
Building the Ontology
2.1 Creating the classes
· Start protege and start a new Ontology
· Enter an Ontology IRI,We used the following IRI
· Save it in local file as “lab-ontology-3”
· Go to the Classes tab
· The empty class tree contains one class called Thing, which is superclass of everything
· Create class Person as subclass of Thing
· Create Lecturer and Student as the subclasses of Person
· Create class Module as subclass of Thing
· Create CSModule and MathModule as the subclasses of Module
· Our classes should look like Figure 1
2.1 Creating the classes
· Start protege and start a new Ontology
· Enter an Ontology IRI,We used the following IRI
· Save it in local file as “lab-ontology-3”
· Go to the Classes tab
· The empty class tree contains one class called Thing, which is superclass of everything
· Create class Person as subclass of Thing
· Create Lecturer and Student as the subclasses of Person
· Create class Module as subclass of Thing
· Create CSModule and MathModule as the subclasses of Module
· Our classes should look like Figure 1
![]() |
| Figure 1 : Basic Classes |
2.2 Creating the Object Properties
· Switch to the Object Properties tab
· Use Add subProperty button to create a new object property (notice that all object properties are subproperties of topObjectProperty)
· Create a new object property studies and select Student and Module as its domain and range respectively
· Create another new object property teaches and select Lecturer and Module as its domain and range respectively
· Our object properties should look like Figure 2
![]() |
| Figure 2 : Object Properties |
2.3 Adding Data Properties
· Switch to the Data Properties tab
· Use add sub property button to create a new data property (notice that all data peroperties are subproperties of topDataProperty)
· Create a new data property first_name and select Person and string as its domain and range respectively
· Create a new data property last_name and select Person and string as its domain and range respectively
· Create another new data property staffID and select Lecturer and integer as its domain and range respectively
· Create another new data property studentID and select Student and integer as its domain and range respectively
· Our data properties should look like Figure 3
![]() |
| Figure 3: Data Properties |
2.4 Adding some Individuals (Instances)
· Switch to the individuals tab
· Create new individuals CS101 and CS103. Click on Types and choose CSModule for each of them
· Create new individuals M201 and M204. Click on Types and choose MathModule for each of them
· Create new individuals Lecturer1, Lecturer2. Click on Types and choose Lecturer for each of them
· Click on Lecturer1 and:
· add Data property assertions: first_name of type string and value Larisa
· add another Data property assertions: last_name of type string and value Soldatova
· add another Data property assertions: staffID of type integer and value 417686
· Click on Lecturer2 and add Object property assertions: teaches CS103 and teaches M201
· We add Data properties for Lecture2 in our wish
· Create new individuals Student1, Student2 and Student3. Click on Types and choose Student for each of them
· Click on Student1 and add Object property assertions: studies M204, studies M201 and studies CS101
· Click on Student1 and:
· add Data property assertions: first_name of type string and value Josef
· add another Data property assertions: last_name of type string and value Baker
· add another Data property assertions: studentID of type integer and value 226814
· Click on Student2 and add Object property assertions: studies M204
· Click on Student3 and add Object property assertions: studies M201 and studies CS103
· We add Data properties for Student2 and Student3 in our wish
· Our individuals should look like Figure 4
![]() |
| Figure 4 : Individuals Data |
2.5 Saving and Publishing Ontology
· Save it in our local file lab-ontology-3.owl
· Make it available online




No comments:
Post a Comment