Searching and Using Online Data

Use the Web tools and resources as mentioned in the question. No program code is needed
for this assignment other than the RDF and SPARQL files.
Submit your answers as a Word document, clearly showing the answer to each question
part.
Question 1. RDF
Create an RDF description of the resource below in the RDF/XML serialization format.
Resource: Diary of a Wimpy Kid by Jeff Kinney. It is a children’s book published by Amulet
Books in 2007 as a hardback print edition in English. ISBN: 978-0-14-330383-1. His
homepage is https://wimpykid.com/.
Use Dublin Core metadata (https://dublincore.org/specifications/dublin-core/dcmi-terms/#)
to describe the properties of the book where possible (title, date, publisher, type, language,
format, identifier, description). Use the FOAF ontology (http://xmlns.com/foaf/spec/) to
describe author information (full name, first name, last name, age, homepage, location). As
it is a print resource the ISBN-13 format can be used as the identifier. XML namespaces
should be used in the RDF. You can use the Wikidata node for the book (as given below) as
the URI for the subject in all the RDF triples.
No information or links other than that described above should be included in the RDF
description. Marks will be deducted for extraneous information.
Use the W3C's RDF Validation Service at https://www.w3.org/RDF/Validator/ to check if the
RDF syntax is correct and produce a table of all the triples and a visualization of the RDF
graph.
Wikipedia page for resource: https://en.wikipedia.org/wiki/Diary_of_a_Wimpy_Kid_(book)
Wikidata node for book resource: https://www.wikidata.org/wiki/Q3285408
Wikidata node for Jeff Kinney https://www.wikidata.org/wiki/Q311704
Note that many editions of the book exist, both online and print. It is the resource described
above that should be used in the RDF.
Question 2. SPARQL
a) Write a SPARQL query on DBpedia using the endpoint at: https://dbpedia.org/sparql
Retrieve all writers (People of type Writer) associated with spy fiction (dbo:Spy_fiction) who
were born in Maryland. Return the name, birthdate, and description for each writer in your
answer.
Show the full query and the results in SPARQL’s Query Results XML Format.
Explain line-by-line in English what the query is doing.
For reference here is a resource page for a writer:
https://dbpedia.org/page/Douglas_Adams
b) Following is a SPARQL query on DBpedia related to footballers. What exactly is being
searched for and what is the result?
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
SELECT distinct ?soccerplayer ?team ?height
WHERE {
?soccerplayer a dbo:SoccerPlayer .
?soccerplayer dbo:team ?team .
?soccerplayer dbp:currentclub http://dbpedia.org/resource/Juventus_F.C. .
?soccerplayer dbo:number 7 .
?soccerplayer dbo:height ?height.
FILTER (?height >= 1.8)
} order by ?soccerplayer
What happens if the height requirement in the FILTER is removed?