You are on page 1of 7

Page | 1


Date: 06/05/2014 Slot: L10+L11
Instructions to Students
You can use Protg editor to create ontology
All ontologies should be fully commented
Notepad++ can be used for creating RDF or Turtle DATA
Apache and Fuseki Server can be used to execute the SPARQL queries
You can use any of the following standard namespaces in your Turtle or RDF or
ontology file
o xmlns:rdf=""
o xmlns:dc=""
o xmlns:foaf=""
o xmlns:ex =""
o xmlns:xsd=""
o xmlns:sam=
Write the following components in your front page of the answer sheet
Components Marks (50)
Program 1 (15)
Output 1 (5)
Program 2 (5)
Output 2 (10)
Viva (10)

1. Create a schema for the document and then add a reference to the schema in the XML document.
Schema specifications
The root element books should have one or more book entries (minimum of one).
Each book must contain the following elements, in sequence: title, edition, author (one or
more), publishedDate, type, and price
Page | 2

Each book contains an isbn number as an ID and is required.
title can contain any characters (type of string).
title has a type attribute that can contain only the values "P" and "H".
edition is an optional element, and must contain only numbers that would never use more
than one byte of storage.

2. Create a XML DTD for following story grammar XML document and test with validation
[Note: add more nodes and values]
<?xml version="1.0" " ?>
<!DOCTYPE story SYSTEM "story-grammar.dtd">
<?xml-stylesheet href="story-grammar.css" type="text/css"?>
<title>The little XMLer</title>
<subgoal>I have to do it ...</subgoal>

3. Create XML document and Schema for Mobile Phones (Brand Name, Model, configuration details etc .
. .)

Page | 3

4. Create a XML Schema for the following XML Document
<?xml version="1.0"?>
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<description>An in-depth look at creating applications with XML.</description>
<author>Knorr, Stefan</author>
<title>Creepy Crawlies</title>
<description>An anthology of horror stories about roaches, centipedes, scorpions and
other insects.</description>
5. Parse the following XML file using DOM parser
Page | 4


6. Create a SOAP Web Service that accepts a base ten (non-fractional decimal) number from the client
and outputs the binary representation of that number.

7. Compose a REST (HTTP-GET) request that determines all major Indian cities provided by the web
service. You can check your solution with any client.

8. Create a SOAP web service for "Feedback" and test the service using proper website in client side.

9. Create N-Turtle for Guest Book and try to retrieve some information using SPARQL.

10. Create a RESTful web service that stores phone book entries in the database
PhoneBookDB and a web client application that consumes this service.

11. Represent the following information by means of RDF/S triples, using the Turtle
Document 1 has been created by Paul on 29 November 2013.
Document 2 and document 3 have been created by the same (unknown)
Page | 5

Document 3 says that document 1 has been published by W3C.
Represent the following query in SPARQL:
Find the authors of documents together with the date of creation.

12. Create RDF for the following Graph

13. Describe yourself by using FOAF ontology. [Note : refer basic FOAF elements]
foaf:Person foaf:name foaf:img foaf:familyName
foaf:name foaf:firstName foaf:flastName foaf:age
foaf:knows foaf:Organization foaf:Image foaf:OnlineAccount
foaf:homepage foaf:Project foaf:Group
Page | 6

14. Create Ontology for the following Graph

15. Write a SOAP to get weather report for all major cities around the world.

Page | 7

16. Consider the following RDF document

(a) Describe in English the content of this document.
(b) Draw the graph representation of the document.