Thursday, 31 May 2018

BIW30803 Semantic Web Lab 6 - Ontology using Protege

Author: Fong Cha Pei (AI150167) , Chiam Wui Xiang (AI150166)


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. 





Monday, 30 April 2018

Monday, 2 April 2018

BIW30803 Semantic Web Lab 4


Author: Fong Cha Pei (AI150167) , Chiam Wui Xiang (AI150166)

 Lab Exercise - Give an RDF description that states the following: 
*** The result is validate using validation service at https://www.w3.org/RDF/Validator/


1. Resource http://www.uibk.ac.at/uni#UIBK offer courses of Web Engineering and Web Services


2. Katharina Siorpaes is a teacher who teaches Web Engineering and has the first name "Katharina" and last name "Siorpaes"



3. Srdjan Komazec is a teacher who teaches Web Services and has the first name "Srdjan" and last name "Komazec"


 #Another way to write the RDF :Properties as attribute and resources


Friday, 23 March 2018

BIW30803 Semantic Web Lab 3

BIW30803: SEMANTIC WEB LAB 3

Author: Fong Cha Pei (AI150167) , Chiam Wui Xiang (AI150166)


 Lab Exercise - Give an RDF description that states the following: 
*** The result is validate using validation service at https://www.w3.org/RDF/Validator/

1.Resource  http: //www.haneena.com/~haneena/homepage is a homepage and it is owned by Haneena. 





2. Resource  http: //www.haneena.com/haneena-ns/#T-999”> is a course named C-programming and is lectured by Adib Razi at room BT1.  



3. By using container element rdf:Bag,  give an RDF description that states the following: Faizah and Din own the car ABZ-88.



4. By using the ”collection” value of the rdf : parseType attribute, give an RDF description that states the following: Faizah and Din own the car ABZ-88.



Sunday, 4 March 2018

BIW 30803 Semantic Web - Laboratory 1

Question 1(a)




Question 1(b) 




Question 2 (a)

<?xml version="1.0" ?>
<person>
<firstname> Zahra </firstname>
<lastname> Adib </lastname>
<profession> doctor, therapist, surgeon </profession>
</person>


Question 2(b)

Question 2(c)

<?xml version= "1.0" ?>
<person>
            <name firstname= "Jiahwee" lastname= "Lee"></name>
<profession> doctor, therapist, surgeon </profession>
</person>


Question 3.


a.  Give an XML-document (by not using attributes), which includes the following information: the social security number (123456789A), the first name of a person is Adha, and his last name is Hadif, his address is composed of postcode (86400), city (Batu Pahat) and street (Jalan Puding), and his telephone numbers are 12345 and 67890.





b.  Give the tree diagram of the document given in exercise 3a.

c.  Give a DTD (Document Type Definition) for the XML-document specified  in 3a. 


d.  Give an XML Schema for the information specified  in exercise 3a.