AI303 - Knowledge Representation - Fall - Exam
AI303 - Knowledge Representation - Fall - Exam
Question 1: Determine which of the following statements true or false (10 Marks)
1. One of the problems of Keyword-Based Search Engines is results are highly sensitive to vocabulary.
( )
2. The Semantic Web Approach represent Web content in a form that is more easily human processable.( )
3. An ontology is an implicit and formal specification of a conceptualization( )
4. HTML documents do not contain structural information.( )
5. A serialization format is a way to encode information so that when it’s passed between machines it can
be parsed.( )
6. Tags in XML may overlap ( )
7. @ symbol is used in xpath to select nodes from the root node( )
8. Enumeration type of XML Schema Data types Defines the exact sequence of characters that are
acceptable.( )
9. Document Type Definition (DTD) contains data types more than XML schema.( )
10. Ontologies are useful for improving the accuracy of web searches.( )
(Exam Page 1 of 5)
Misr University for Science and Technology
College of Information Technology
Question 2: (8 Marks)
b) Convert the following XML file into Well-Formed XML Documents (5 Marks)
<bookstore>
<book>
<122title lang="en" lang="ar">Harry Potter<price>29.99</title></price>
</book>
<bookstore>
<book>
<title lang="en">Learning XML</title>
<price>39.95</price>
</book>
</bookstore>
(Exam Page 2 of 5)
Misr University for Science and Technology
College of Information Technology
Question 3: (6 Marks)
Given the following Document Type Definition (DTD)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pizza [
<!ATTLIST pizza
]>
]>
Decide which of the following XML files are valid or not valid according to the previous DTD. Also
for not valid files make the necessary corrections to make it valid.
Question Correction
a) <pizza action=“well done” >
<dough>crispy edges</dough>
<topping>oregano </topping>
</pizza>
(Exam Page 3 of 5)
Misr University for Science and Technology
College of Information Technology
Question 4: (6 Marks)
Draw a tree that represent the following XML file
<library location="Bremen">
<author name="Henry Wise">
<book title="Artificial Intelligence"/>
<book title="Modern Web Services"/>
<book title="Theory of Computation"/>
</author>
<author name="Cynthia Singleton">
<book title="The Semantic Web"/>
<book title="Browser Technology Revised"/>
</author>
</library>
(Exam Page 4 of 5)
Misr University for Science and Technology
College of Information Technology
(Exam Page 5 of 5)