Exercises and Answers for Practice Number 2 - Helsinki.fi

40 downloads 1933 Views 14KB Size Report
Do exercise 1 using UML-design. 3. Capture the knowledge, using the graph of N3 notation, of the following English statements: –. Jack Smith studies at Helsinki  ...
Exercises and Answers for Practice Number 2 1.

Give a conceptual schema (using ER-design) about teams, players, and their fans, including • • •

For each team, its name, its players, its team captain (one of its players), and the colors of its uniform. For each player, his/her name. For each fan, his/her name, favorite teams, favorite players, and favorite color.

2.

Do exercise 1 using UML-design

3.

Capture the knowledge, using the graph of N3 notation, of the following English statements: – – – – – –

4.

Jack Smith studies at Helsinki University Helsinki University has a web site at http://www.helsinki.fi/university/ Jack is a friend of Elisa Ford Elisa Ford studies at Lappeenranta University of Technology Lappeenranta University of Technology has a website at http://www.lut.fi/en/ Elisa Ford has a website at http://www.lut.fi/elisa

Using UML give a schema for the statements given in exercise 3.

Answer 1

name

name plays

Player

Team is-captain

uniformscolors

Color

color-name

favoriteteams

favoritecolor

favoriteplayers

Fan name

Answer 2

Player name plays-in is_captain

Team name uniform_colors

Fan name favorite color favorite_palyer favorite_teams

Answer 3

#studies_at

#Jack Smith

#Helsinki University

#has-website

http://www.helsinki.fi/university

#friend-of

#Elisa Ford

#studies-at

#Lappeenranta University of Technology

#has-website

http://www.lut.fi/elisa

#has-website http://www.lut.fi/en

Answer 4

Person name has-website friend-of studies-at

University name has-website

5. RDF-Exercise. Give an RDF_description that states the following: Resource http: //www.hut.fi/~jack/homepage is a homepage and it is owned by Jack Taylor. Answer (5) Jack Taylor

6. RDF-Exercise. Give an RDF_description that states the following: Resource http: //www.innouni.fi/innouni-ns/#T-999”> is a course named Javaprogramming and is lectured by Lisa Smith at room T2. Answer (6) Java-programming Lisa Smith T2

7. (RDF-Exercise) By using container elemn rdf :Bag, give an RDF_description that states the following: Mary and John owns the car ABC-99 Answer (7)

8. (RDF-Exercise). By using the ”collection” value of the rdf : parseType attribute give an RDF_description that states the following: Mary and John owns the car ABC-99 Answer (8).