CO7216 Semantic Web
Coursework 2
SPARQL and OWL
(Individual work)
Important Dates:
Handed out: 20-Feb-2020
Deadline: 10-March-2020 at 17:00 GMT
Please ensure that you submit your work on time.
• This coursework counts as 10% of your final module mark (25% of coursework mark).
• This is an individual coursework, not based on group work.
• Please read guidelines on plagiarism in the study guide and course documentation.
• This coursework requires knowledge about SPARQL and OWL.
• Please submit a signed coversheet electronically to Blackboard.
Instructions:
• You have to use the same domain and the same competency questions as in coursework 1
CO7216作业代做、Semantic Web作业代写
• Please make sure that you understand “what is expected” in this assignment, well before the
deadline.
• Use the pom.xml provided on Blackboard to download the dependencies for
JenaARQ.java
Tasks:
Question 1 [40 marks]
1.1 Give two examples of the class or property constraint that you were not able to implement in
Coursework 1 due to the limited expressiveness of RDF schema; briefly explain how you intend
to achieve them using OWL. [10 marks]
(Write the answer in Answer.pdf)
1.2 SPARQL queries [30 marks]
(i) For each of the five competency questions you gave answer to in Coursework 1, write a
SPARQL query and necessary reasoning rule(s) (if applicable) to answer it. (ii) Complete the
Java class JenaARQ.java - for each of the SPARQL queries, the program should output the
result set in a text format using ResultSetFormatter. (Read the comments in the source
code for more details).
(Write the answer to (i) in Answer.pdf, and complete the class JenaARQ.java)
Question 2 [60 marks]
Create and populate an OWL ontology in your chosen domain. You may import the RDF Schema
into an OWL 2 project, or create a new OWL 2 project from scratch. The OWL ontology you
created should contain at least twenty DataTypeProperties, and at least twenty ObjectProperties.
It must contain:
2.1 Classes [28 marks]
(1) Four or more OWL subclass restrictions (use owl:Restriction).
(2) At least two property restrictions (use owl:Restriction) each on the domain and range.
(3) At least one class defined using owl:intersectionOf
(4) At least one class defined using owl:unionOf
(5) At least three cardinality restrictions (exact, min and max)
(6) At least one value restriction
(7) At least two existential restrictions
(8) At least two universal restrictions
For each of the requirements above (1-7), indicate where they are defined in the OWL project
(Write the answer in Answer.pdf)
2.2. Properties [20 marks]
(1) At least two Symmetric Properties
(2) At least two Transitive Properties
(3) At least two Functional Properties
(4) At least two Inverse Functional Properties
(5) One Reflexive and one Irreflexive Property
2.3 Instances [12 marks]
Populate the ontology with instances to demonstrate the classes and properties defined in Question
2.1 and 2.2.
Submission
• Zip Anwers.pdf, Protégé files (*.owl) and JenaARQ.java in a single zip file for submission.
• The archive should be named CO7216_CW2_email_id.zip
• (e.g. CO7216_CW2_abc123.zip).
Your submission should also include a completed coursework plagiarism coversheet (signed PDF
or image). You need to submit the zip file via Blackboard, and you are allowed to re-submit as
many times as you like before the deadline. Marks for any coursework that does not have the
accompanying cover sheet will be withheld till you provide one.
Marking Scheme
• Question 1.1
(E) <50% - No example is given, or none of them is due to the limited expressiveness of
RDFS. Does not provide a reasonable explanation of how these problems could be
addressed in OWL.
(D) 50-60% - Examples are provided, but it is still possible to achieve some of them in
pure RDF schema without OWL.
(C) 60-70% - The examples given are partially due to the limited expressiveness of RDFS.
How some of these limitations can be overcome in OWL are explained.
(B) 70-80% - Both examples are related to the expressiveness of RDFS. The solutions in
OWL are well explained.
(A) 80+ - Both examples are related to the expressiveness of RDFS. For each case, more
than one possible solutions in OWL are provided.
• Question 1.2 -- 6 marks for each executable SPARQL that produces correct output.
• Question 2.1 -- 4 marks for meeting each of the requirements (except for (5) 3 marks (6) 1
mark).
• Question 2.2 -- 4 marks for meeting each of the requirements.
• Question 2.3 -- at least one instance is created to demonstrate each of the classes or
properties constraints defined in Question 2.1 and 2.2.
Anonymous marking
We operate an anonymous marking scheme. Your email id will be hashed before grading. All
submitted OWL files and the Java programs will be marked anonymously
如有需要,请加QQ:99515681 或邮箱:[email protected] 微信:codehelp
原文地址:https://www.cnblogs.com/welcomeyou/p/12444135.html