Create an XSD schema for the XML document

Question 1: Consider the following information about Hotels in Paris:
a. Create a well-formed XML document for the table above
b. Create an XSD schema for the XML document (Don’t forget to link the XML file with the
XSD file). Consider the following facts:
– Stars is ranging from 1 to 5
– Facilities can have at least one or more of the followings: Internet, Gym, Parking,
Restaurant, Pick-up;
– Distance can be empty or have one value
– Available can be either true or false.
Question 2: Consider the statements below
1. Document 1 has been created by Paul
2. Document 2 and document 3 have been created by the same author (who is unknown)
3. Document 3 reports that document 1 has been published by W3C
a. Write down the statements below as RDF Graph and RDF/XML
– Use the predicates dc:author dc:creator and dc:publisher from the namespace
http://purl.org/dc/elements/1.1/.
– For any other resource or predicate you identify, use the fictive namespace:
http://examples.org/terms/. For example, Document 1 is a resource, its URI is
http://examples.org/terms/document1
Question 3: Consider the scenario below
Olivier is a 20 year old Swiss student at EPFL. He speaks fluently English and French. He decides
to learn Spanish. Together with his friends, Mark and Claudia, he subscribes for the Spanish
course taught by Prof. Garcia every Tuesday at the EPFL Language Center .
Maria is a Spanish girl who speaks very good English and is eager to learn French. Olivier meets
Maria and they become tandem partners. Having somebody to practice with proves to be very
useful and soon Olivier speaks fluently Spanish.
a. Rewrite the scenario in form of RDF statements
b. Draw an RDF graph for the identified RDF statements
– For any other resource or predicate you identify, use the fictive namespace:
http://examples.org/terms/.

Leave a Reply

Your email address will not be published. Required fields are marked *