Pages

Thursday, May 4, 2017

BIW 30803 Web Semantic Lab 4 (Ontology Exercise)

Group Member: Eu Lay Tien (AI140156), Ng Su Mei (AI140151)


1. Change the Dataset X into a set of relations.

A simplified bookstore data (dataset “X”)
ID
Author
Title
Publisher
Year
ISBN-0-00651409-X
id_xyz
The Glass Palace
id_qpr
2015

ID
Name
Home Page
id_xyz
Razi Rahim
http://www.razirahim.com

ID
Publisher Name
City
id_qpr
Pustaka RR
Kuala Lumpur

ANSWER:





2. Change the Dataset Z into a set of relations.

Another bookstore data (Dataset “Z”)

ID
Titre
Traducteur
Original
ISBNO 2020
Le Palais des miroirs
John Kenu
ISBN-0-00651409-X

ID
Auteur
ISBN-0-00651409-X
Razi Rahim


ANSWER:


3. The Combination of two datasets. Dataset X and Dataset Z.

ANSWER:



4. Model the following ontologies into set of relations:
  • Herbivores, Carnivores, and Omnivores are animals
  • People are omnivores
  • People have names of type “string”
  • Vegetarians are people who are herbivores
  • “eats” is a property of animals and the values of the property must be of the type “food”
  • Meat and Veggies are types of food

ANSWER:






Wednesday, May 3, 2017

BIW 30803 Web Semantic Lab 4 (Ontology - Protege)

Group Member: Eu Lay Tien (AI140156), Ng Su Mei (AI140151)


2.1 Creating the Classes

1. First, start Protege and  start a new ontology.



2. Enter an Ontology IRI as shown in the figure below.


3. Save it as university.owl




4. In the Classes tab,  create class "Person" as the subclass of "Thing".


5. Then, inside the "Person" class, create "Lecturer" and "Student" as subclasses. 



6. Create subclass "Module" under "Thing".


7. Create "CSModule" and "MathModule" as subclasses of "Module".




8. The Classes should look like this. 



2.2 Creating the Object Properties

Tuesday, March 14, 2017

BIW 30803 Web Semantic Lab 3

Group Member: Eu Lay Tien (AI140156), Ng Su Mei (AI140151)



RDF Statement: 


<?xml version="1.0"?>

<rdf:RDF

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:uni="http://www.uibk.ac.at/uni#">



<rdf:Description

rdf:about="http://www.uibk.ac.at/uni#">

<uni:courses>

<rdf:Bag>

<rdf:li>WebEngineering</rdf:li>

<rdf:li>WebServices</rdf:li>

</rdf:Bag>

</uni:courses>

</rdf:Description>



<rdf:Description

rdf:about="http://www.uibk.ac.at/uni#KatharinaSiorpaes" rdf:type="http://www.uibk.ac.at/uni#Teacher">

<uni:teaches>WebEngineering</uni:teaches>

<uni:firstName>Katharina</uni:firstName>

<uni:lastName>Siorpaes </uni:lastName>

</rdf:Description>



<rdf:Description

rdf:about="http://www.uibk.ac.at/uni#SrdianKomazec" rdf:type="http://www.uibk.ac.at/uni#Teacher">

<uni:teaches>WebService</uni:teaches>

<uni:firstName>Srdjan</uni:firstName>

<uni:lastName>Komazec</uni:lastName>

</rdf:Description>





</rdf:RDF>

Tuesday, March 7, 2017

BIW 30803 Web Semantic Lab 2

Group Member: Eu Lay Tien (AI140156)
                           Ng Su Mei (AI140151)

Lab Exercises :

Give an RDF description that states the following:

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

Answer:









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

Answer: 






3. By using container element rdf:Bag, give an RDF description that states the following: Aisy and Bob own the car JPQ2225.

Answer:







4. By using the ”collection” value of the rdf : parseType attribute, give an RDF description that states the following: Aisy and Bob own the car JPQ2225.

Answer:









 

Tuesday, February 21, 2017

BIW 30803 Semantic Web Lab 1

Group Member: Eu Lay Tien (AI140156)
                           Ng Su Mei (AI140151)



Question 1  


Haneena and Co. has a telephone directory that records the first and last name, telephone number and email address of everyone working in the company. Departments are the main organizing unit of the company so the telephone directory is typically displayed in department order and shows for each department the contact phone and fax number and email address.

Create an XML file containing some directory data.

Answer:

<company>
<departmentname></departmentname>
<telephone>
   <firstname></firstname>
   <lastname></lastname>
   <telephonenumber></telephonenumber>
   <email></email>
   <faxnumber></faxnumber>
</telephone>
</company>


Question 2
a.  Give an XML-document (by not using attributes), which includes the information that the first name of a person is Zahra, her last name is Adib, and her professions are doctor, therapist and surgeon.
b.  Give the tree diagram of the document given in 2a.
c.  Modify the document given in exercise 2a such that the “first” and “last” are the attributes of the name element.

Answer:

(a)

<profile>
  <fname>Adi</fname>
  <lname>Maulud</lname>
  <profession>
    <first>doctor</first>
    <second>therapist</second>
    <third>surgeon</third>
  </profession>
</profile>

(b)



(c)

<profile>
<name first="Adi" last="Maulud"></name>
<profession>
<first>doctor</first>
<second>therapist</second>
<third>surgeon</third>
</profession>
</profile>



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.


Answer:

(a)

<profile>
<ssn>123456789A</ssn>
<name>
<fname>Adha</fname>
<lname>Hadif</lname>
</name>
<contact>
<address>
<postcode>86400</postcode>
<city>Batu Pahat</city>
<street>Jalan Puding</street>
</address>
<tel>
<first>12345</first>
<second>67890</second>
</tel>
</contact>
</profile>




(b)




(c)


<!ELEMENT profile (securityno, fname, lname, address+, tel+)>
<!ELEMENT securityno (#PCDATA)>
<!ELEMENT fname (#PCDATA)>
<!ELEMENT lname (#PCDATA)>
<!ELEMENT address (postcode, city, street)>
<!ELEMENT postcode (#PCDATA)>
<!ELEMENT city (#PCDATA)>
<!ELEMENT street (#PCDATA)>
<!ELEMENT tel (first, second )>
<!ELEMENT first (#PCDATA)>
<!ELEMENT second (#PCDATA)>




(d)

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xs:element name="profile"> 
 <xs:complexType> 
 <xs:sequence>
 <xs:element name="ssn" type="xs:string"></xs:element> 
 <xs:element name="fname" type="xs:string"></xs:element>
 <xs:element name="lname" type="xs:string"></xs:element>
 <xs:element name="contact"> <xs:complexType>
 <xs:sequence> 
 <xs:element name="address">
 <xs:complexType>
 <xs:sequence>  
 <xs:element name="postcode" type="xs:int"></xs:element> 
 <xs:element name="city" type="xs:string"></xs:element> 
 <xs:element name="street" type="xs:string"></xs:element>
 </xs:sequence> 
 </xs:complexType>
 </xs:element> 
 <xs:element name="tel"> 
 <xs:complexType>
 <xs:sequence> 
 <xs:element name="first" type="xs:int"></xs:element> 
 <xs:element name="second" type="xs:int"></xs:element>
 </xs:sequence> 
 </xs:complexType> 
 </xs:element> 
 </xs:sequence> 
 </xs:complexType> 
 </xs:element>
 </xs:sequence> 
 </xs:complexType> 
 </xs:element> 
</xs:schema>


Wednesday, August 12, 2015

Hong Kong DISNEYLAND

MY FIRST EVER MAGICAL EXPERIENCE HONG KONG DISNEYLAND!
Everything in Disneyland is just....
Too much happiness and magical vibes!
The Front Gate Of Hong Kong Disneyland
image
There's a Micky Mouse design cutting on the beautiful green grass!
Flight Of Fantasy Parade
image
The girls dressed up as Snow White,Belle,Cinderella!
The Fireworks Brighten Hong Kong Disneyland
HKAD789535244-613x409
Tonight’s “After Dark” image was shot at Hong Kong Disneyland of the park’s nighttime fireworks spectacular, “Disney In The Stars.”
The show is an illuminating celebration that combines music with fireworks that brighten the sky above the park’s Sleeping Beauty Castle.My Favorite Disney character images and lighting effects are also projected across the castle’s walls and turrets during the show.

Thursday, July 30, 2015

JavaScript Application

 

Template by BloggerCandy.com