SW-Fall2015-Assignment-4.pdf

Assignment #4 of Semantic Web
Majid Salehi
Azar 17, 1394
Deadline: Azar 29, 1394
Dr. Morteza Amini
Principles
Students are supposed to follow the following rules.
• Once you are done, pack all your documents (if there are mutiple ones) into a single ZIP file
and send to [email protected]. Please format your E-Mail’s title like the item below.
SW - [Your Student ID] - [Assignment Number]
example: SW-94111111-4
• Deadlines are unlikely to get extended, hence it is highly recommended to do your assignments
by their deadlines.
• If you submit your assignments late, the following rules apply:
– Up to 1 day late, you will lose 25% credits of the assignment at hand.
– Up to 2 days late, you will lose 50% credits of the assignment at hand.
– Up to 3 days late, you will lose 75% credits of the assignment at hand.
• You can turn in your assignments in either hand-written or typed format. However typed
formats would be more welcomed. Nevertheless, if you would prefer hand-written format, you
are expected to:
– Write legibly!
– Scan your documents and prepare a well-known image type (e.g jpg) for sending by E-Mail.
• There will be a zero-tolerance policy for cheating/plagiarism.
• For practical exercises, You are welcome to use any techniques you would want to use.
• Kindly drop me an E-Mail, if you need further information or somethings seem unclear.
Semantic Web
Assignment #4
Problem 1.
Define a RDFS file for a hospital that includes three rooms, six doctors, eight patients, and four
employees. Also each room has atleast one patient and utmost three patients. Then transform your
file with IsaVis tool to graphical model.
Problem 2.
For this part, open swpub.rdf schema file in Protege then write and execute the following queries
with SPARQL language. Attach queries and the output of them in your report. 1
1. Retrieve the titles of all papers that are ”articles in a periodical.”
2. For all papers written between 2001 and 2005, inclusive, retrieve the title, human-friendly name
(i.e., rdfs:label) of the type (e.g., article, book chapter, etc.) and year of the paper.
3. Find all papers that appear in a venue with ”ISWC” in the name (using partial string matching),
and return a list of title, venue, year and topic label (i.e., not the URI of the topic), sorted by
year in descending order, followed by topic in ascending order (for those papers in the same
year).
4. For each author, retrieve their name and a count of the number of papers they have authored.
Sort the result by author name. You should assume that two authors are the same if and only
if their full names match exactly. For sorting purposes, just use the name as it appears, do not
worry about first name or last name distinctions. Hint: You need to use specific features of
SPARQL 1.1 to do this.
Problem 3.
Design a family ontology in a manner that it contains only brotherhood, sisterhood, fatherhood
and motherhood relationships between its members; then define grandfather, grandmother, aunts,
uncles and cousin classes and all possible relationships like ’grandfather is.’. Finally by using the
available Reasoner in Protege find all grandfather, grandmother, grandchild, aunts, nephew, niece,
uncles, relationships among members in your ontology.
Problem 4.
Consider figure 1 ontologies, these ontologies are about CE departments’ structures in Iran and
Australia countries.
You should find semantic relationships among entities of ontologies and then merge them.
Hint: firstly, extract necessary feautres from them, then do alignment operation in three levels
(Terminological, Structural, Extensional).
Please note that you should define (precisely or formally) two similarity measures for each category
of similarity measures (i.e., teminological, structural,....) and a multi-criteria measure for integrating
them.
1
This part of homework is retrieved from ”http://www.cse.lehigh.edu/ heflin/courses/sw-2013/”
1
Semantic Web
Assignment #4
Figure 1: CE Department Ontologies
Good Luck
Majid Salehi
[email protected]
2