Abstract
This article introduces SPARQLuedo and OWLuedo, two open-source educational resources designed for hands-on learning of Semantic Web technologies: SPARQL and OWL. Inspired by the board game Cluedo, these resources challenge learners to act as investigators solving a murder. SPARQLuedo guides users in formulating SPARQL queries to interrogate a dedicated RDF knowledge graph and uncover details of the crime, including the victim, the murderer, the location, and the murder weapon. OWLuedo, on the other hand, prompts learners to extend an existing ontology to model the crime scene in greater depth and leverage an OWL reasoner to identify the culprit. These resources, intended to complement lectures, aim to make learning Semantic Web technologies more engaging and interactive. Positive feedback from students who have used SPARQLuedo and OWLuedo demonstrates the effectiveness of this playful approach for acquiring practical skills in SPARQL and OWL.
Introduction
Offering hands-on that make it easy to master the languages and technologies of the Semantic Web is necessary to support its use and development. Most of the educational resources available today are either books (Allemang & Hendler, 2011, Domingue et al., 2011, DuCharme, 2013), online courses, 1 MOOCs, 2 or exercises that practise these technologies on toy examples (such as the construction of the famous pizza ontology 3 , (Zlatareva, 2021) or guided querying of public knowledge graphs 4 ).
In this article, we propose to take advantage of our 15 years’ experience in teaching these technologies to different audiences (engineers and doctoral students, IT specialists and non-specialists) to share resources putting these technologies into practise in a fun way, both engaging and interactive. These open-source educational resources have been designed to complement lectures or previously cited resources.
Based on the famous board game Cluedo, we have designed two open-source tutorials aimed at practising the use of SPARQL and OWL. They are proposed to be used once the learner has discovered these two languages via lectures. For the two tutorials, the learner has to carry out an investigation using clues to find out who committed a murder in a house. The goal is to help learners master the various feGuest Editors Education 2024atures of SPARQL 1.1 and OWL 2 by motivating them by solving an investigation. They are designed to be integrated into face-to-face teaching sessions, while providing maximum guidance to learners via the web application we offer. The various stages to be followed are deliberately designed to arouse the curiosity of the learner, who can ask the teacher for help or additional information. As part of the Cluedo4KG 5 Web application that we propose, these two tutorials focus on the two aspects that we believe are essential to give knowledge graphs their full potential: (i) mastering access, interrogation and reuse of the quantity of data now available on the Linked Data Web, and (ii) mastering the essential notions linked to knowledge representation to provide a high level of expressiveness and reusability in knowledge graphs.
Section 1 introduces SPARQLuedo, the tutorial we set up to solve a murder, and practise the main features of the SPARQL query language. Section 2 presents OWLuedo, a tutorial with a similar concrete goal, that puts into practise the design of ontologies with OWL. In each section we describe the skills targeted, the resources we have designed, the implementation of the tutorial and the feedback we have had from the students who have followed it.
Related Works
Several works have tackled the issue of teaching semantic web technologies. Works such as Labra Gayo et al. (2017), Hogan et al. (2021), Hogan and Hogan (2020) provide a broad overview of semantic web technologies aimed at beginners. MOOCs, such as “Knowledge Engineering with Semantic Web Technologies” proposed by OpenHPI, 6 are another entry point for students to acquire theoretical knowledge. Gomez-Berbis et al. (2008), Klimov et al. (2017), Zlatareva (2021) detail end-to-end courses, showcasing the lectures and practicals that are proposed for student. Zlatareva (2021), specifically, is very broad-scoped in its coverage of semantic web technologies. In particular, the project it features provides a great coverage of the issues of ontology engineering. However, to the best of our knowledge, the related resources are not available. Tools to facilitate practicals have all also been proposed, such as Pieschel et al. (2021). These resources, in particular those bringing theoretical knowledge, can be used as a complement to the proposed resources.
SPARQLuedo
The goal of SPARQLuedo is to get learners to produce SPARQL queries while trying to solve an investigation linked to a murder. Based on the principle of Cluedo, clues are given at each stage so that the learner can, by querying a dedicated RDF knowledge graph, discover the victim, the murderer, the location, the weapon of a crime and the accomplice of the murderer. The tutorial is designed to put into practise the use of the main features defined in SPARQL 1.1 Query Language. 7
Targeted Skills
Many knowledge graphs are now available on the web. Knowledge graphs are recognised as an effective way of sharing data and making it reusable. Exploiting the potential represented by these graphs means knowing how to manipulate and query them.
Querying Skills
The main part of the skills to be acquired corresponds to the writing of SPARQL queries based on adapted features.
We target the following:
We believe that to promote the quality and reusability of knowledge graphs, they should be based on descriptions whose vocabulary is defined in one or more ontologies. For this tutorial we have built an ontology (the Cluedo4KG ontology 8 ) and a knowledge graph relying on this ontology for describing the crime scene.
Targeted skills therefore also relate to understanding the vocabulary used for expressing the triples of the knowledge graph and using this vocabulary to formulate a SPARQL query.
For the first part of the tutorial, an extract of the Cluedo4KG ontology relevant to the query is provided in the interface. In the second part, an additional ontology to be used in the queries is indicated (the DBpedia ontology 9 ) and the learner must find out for himself the elements of the ontology to be used. Finally, the learner must find the ontologies used in a given knowledge graph (Wikidata 10 ) and the elements to be used in the query.
The targeted skills related to knowledge representation are:
Implementing SPARQL queries also involves mastering technical skills such as:
We have defined several resources to implement the tutorial:
the cluedo4KG ontology: https://w3id.org/cluedo4KG/onto the cluedo4KG knowledge graph accessible through a SPARQL endpoint: https://w3id.org/cluedo4KG/KG a Web application containing the information needed to solve the investigation and allowing SPARQL queries to be formulated directly: https://w3id.org/cluedo4KG.
These resources are also available on gitlab. 11 Our goal is to make them either directly usable as such via a browser (a solution that makes their use the most intuitive) or installable locally in the learner’s environment.
The tutorial requires the use of a SPARQL server. To facilitate its configuration, the Web application, that we provide, uses our hosted SPARQL server. The version on gitlab is configurable to use a server installed locally in the learner’s environment.
The ontology we have built to describe the crime scene is relatively simple. It defines 4 classes, 7 object properties and 1 datatype property. The classes correspond to the types of entities in the scene:
The ontology is accessible via a permanent W3id IRI and its available documentation is online.
Cluedo4KG Knowledge Graph
The knowledge graph has been designed so that it can both describe a murder scene with the Cluedo4KG ontology and be queried by considering the different skills identified in Section 3.1. It is composed of 41 individuals with a total of 106 object properties and 16 datatype property assertions. A label is associated to each Individual, in French and in English when relevant. We have deliberately chosen as labels for individuals typed as
The use of a reasoner on the SPARQL server (or to saturate the knowledge graph before importing it), is necessary to generate all the triples (some of which are generated from inverse properties or the symmetry of the adjoining room object property, the domain and range of the properties etc).
Tutorial Walk-Through
The tutorial must be run from the Web application. Figure 1 shows a screenshot of the interface. It is in two parts. The first being the main part leads up to the murder elucidation and puts into practise the main features of SPARQL. Table 1 details in which part the various targeted skills are addressed. The second part is optional but allows to practise the advanced features of SPARQL (federated queries and subqueries). Its concrete goal is to find the murderer’s accomplice.

Screenshot of the Web application.
Summary of the Skills Tackled by Each Question of Each Step of the SPARQLuedo Tutorial.
In the first part, for each step, a clue, a question and an extract from the ontology to be used in the SPARQL query is displayed. This part is composed of 18 steps. In the area provided for the learners to enter their SPARQL query, a basic query template is given. In it we have deliberately included the basic prefixes as well as the prefix
In the second part, the same principle is followed for the 8 different steps. Clues and questions are given. The interesting point about this part is that the queries to be written must integrate information present in other knowledge graphs: DBpedia and Wikidata. Our aim is to demonstrate the potential of Linked Open Data and to show concretely how information from several knowledge graphs can be exploited in a single query. We chose these 2 knowledge graphs as they are widely used on the LOD and because each of them follows differently structured vocabularies or ontologies. We expect that, based on the skills acquired in part 1, the learner will acquire autonomy in searching for and understanding these vocabularies. For querying DBpedia (steps 19 to 22), we indicate that the query patterns to be formulated must use the vocabulary of the DBO ontology. 12 However, for querying Wikidata (steps 23 to 26), we leave it to the learner to discover the relevant vocabulary. For the steps in this part 2, the learner is asked to first formulate their query in the web interface associated with the endpoints of these two knowledge graphs before integrating the query into the application via a federated query. This has a twofold advantage. The learner can benefit from the functionalities of these web interfaces, which make it easier to write queries for these graphs. It also avoids saturating our SPARQL server with inappropriate federated queries. We have deliberately not provided any query pattern so that the learner can discover the specification of federated queries in SPARQL or return to the course material.
Specification Coverage
The main aim of this tutorial is to learn how to write queries in SPARQL 1.1. All the features presented in the specification are covered by the content of SPARQLuedo, apart from the use of property paths in query patterns, named graphs and Construct form queries.
Practical Information and Student Feedback
This tutorial has been used every year for the past 12 years to train Masters-level students in semantic web technologies. It has been used for classes of students from engineering schools or university masters in computer science who had previously had a lecture on the Semantic Web and SPARQL. We have also used them for one-off training courses for doctoral students (in computer science and language science), as well as for training courses for in-house engineers looking to upgrade their skills. The first part is generally completed in 2 hours 30 minutes, the second in 1 hour. Based on this experience, we have updated the hints given to ensure that students receive the best possible guidance. For example, we indicate what type of queries are expected (an ASK query is expected for question 7, using a subquery from the previous query in question 10, recalling the DBpedia endpoint in question 20, etc.) so as to encourage the learner to acquire all the targeted skills.
The main guidance we provide is for the first question, which requires familiarisation with the principles of IRIs, prefixes and query patterns. We also have questions on the use of aggregates and group by (questions 9 and 10) and on the use of regex function to manipulate string labels (questions 12 and 22) and the use of bind (question 26). When learners discover how to query DBpedia and Wikidata in part 2, they are often surprised by the complexity of the vocabulary used in these knowledge graphs. Guided by the desire to solve the crime, they quickly become motivated to look at these resources carefully and formulate the queries requested. Most of them use the tools provided on the web querying interfaces of the two endpoints, even though they often have questions about the vocabulary to be used for Wikidata.
Table 2 shows the responses to the questionnaire we sent out to 134 students (from university and engineering school) for the 2024-25 academic year. 102 replied. 94% of them were satisfied by the tutorial and consider that they have acquired skills. Everyone appreciated the fun aspect of the tutorial.
Feedback from Students on SPARQLuedo During 2024-25 Academic Year.
Feedback from Students on SPARQLuedo During 2024-25 Academic Year.
Intended to be carried out after SPARQLuedo, OWLuedo builds on the understanding of the ontology used for the SPARQL tutorial. OWLuedo is designed as a tutorial whose goal is to extend the initial ontology to both increase its expressivity with regard to the complexity of the described murder situation, as well as using the reasoning possibilities of an OWL reasoner to automatically solve the murder once enough knowledge has been described.
Targeted Skills
OWLuedo focuses on the use of OWL to model knowledge, as well as the use of the well-known Protégé 13 editor to achieve it. It also includes an introduction to the use of reasoners and mapping languages to produce RDF datasets based on other file formats. This section will detail in depth the skills that are targeted by the OWLuedo tutorial.
Semantic Web and Knowledge Representation Skills
The semantic web relies on providing a machine-readable representation of knowledge. As such, ontologies play a key part in it as they provide a way to both standardise representation of facts, and provide an explicit computer-readable semantic for the represented knowledge. Regarding ontology design, the tutorial targets the following skills:
In addition to ontology design, this tutorial addresses several other critical aspects of the semantic web. More specifically, it puts forward the issue of the coexistence of multiple IRIs describing the same entity in a knowledge graph, the need for mapping languages to automatically and reproducibly convert files into RDF datasets, as well as the main advantages and drawbacks of the Open World Assumption. In practise what is targeted is as follows:
In addition to the understanding of how creating ontology and a knowledge graph based on this ontology tie into the many challenges of the semantic web, this tutorial aims to acquire some technical skills, notably regarding the use of software and languages. Specifically, this tutorial tackles how to:
Provided Materials
The tutorial materials are multiple. Regarding the instructions, both the web interface
18
and a PDF file
19
are provided and will guide the learner along the tutorial. In the downloadable materials,
20
a turtle file, In the best case scenario, the learners should use the RMLEditor to create a mapping and instantiate a graph basing on .csv files. Three files are provided: As a redundancy due to RMLEditor and SPARQL-Generate’s playground being web interfaces that might be down at times, we provided an alternate solution to create the knowledge graph. This solution does not however leverage any mapping technology and simply consists in a bash script that will allow the learner to edit a Turtle file containing the description of the individuals, by replacing the IRIs by those of the entities previously created along the tutorial. This solution revolves around three files: the aforementioned bash script
The knowledge graph produced during this tutorial is of moderate size, with a final graph counting several hundreds of triples. Though such an amount does not represent a significant amount with regard to computing, it is significant enough that it might take time for a human to solve the murder by himself, thus highlighting the usefulness of the reasoner, while sticking to an amount that remains manageable for a tutorial. Table 3 describes the number of entities handled during the OWLuedo tutorial. On the other hand, table 4 provides the detail of the triples that are to be created during the tutorial. In both tables, the figures given are calculated on the basis of a possible solution, another solution will likely have a different (though similar) amount of entities and triples.
Number of Entities by Category (categories in Bold are an Estimation Based on a Possible Solution) .
Number of Entities by Category
Key Figures of the RDF Datasets Used/Produced Along the Tutorial.
The tutorial can be carried out by relying on the web interface which provides step by step instructions. Alternatively, the PDF instructions file is a scarcer way to carry out the tutorial, as it lacks the detailed instructions included in the web interface. As such, it is more suitable for a class with a teacher providing insights as to how to use the various exploited tools.
The tutorial is composed of four steps, that are to be carried out sequentially. Table 5 details in which step the various targeted skills are addressed. Each step is described bellow.
Summary of the Skills Tackled by Each Step of the Tutorial.
Summary of the Skills Tackled by Each Step of the Tutorial.
The greenhouse is a floor. The greenhouse contains the room greenhouse.
More often than not, the learners are confused, and represent both greenhouses as the same entity, which leads to an inconsistency when launching/synchronising the reasoner. This is by design, and is meant to highlight the confusions that may come from the ambiguity of natural language, even when creating individuals.
If the mapping is not made carefully, the name of the classes might be erroneous which might prevent the proper execution of the reasoner in the next step. It requires the learners to consider the class as any entity, and the
Finally, the instructions guide the learner to manually edit the loaded Turtle file and add some triples by typing them, to show how what they do in Protégé can be achieved in any text editor. The content of the produced Turtle is subsequently added to the main ontology file. Alternately, this step can be skipped, for example if the mapping functionality of both editors happen to be down. To populate the ontology, the learners can alternately use the bash script
Once again, we evaluate this tutorial over two axes: first, we discuss the coverage of our instructions as compared with the whole expressivity of the addressed languages. Second, we discuss how the tutorial was perceived and carried out by students.
Specification Coverage
The most prominent goal of this tutorial is to learn to use OWL to create ontologies. Table 6 summarises the coverage of the OWL specification. It is to be noted that the tutorial does not encompass anything regarding the ontology description-related operators. The category used in the table are based on those proposed in OWL 2’s primer
21
. Overall, the tutorial leads to using roughly two thirds of the specification. More specifically, it does not detail the use of the following:
Tutorial Coverage of OWL Expressivity.
Still, the tutorial gives a broad overview of what OWL allows to achieve. Out of the unused parts of the OWL vocabulary, it appears that the negative property assertions and the use of keys are what stands out as a potential improvement. Indeed, the other unused OWL operators are rather similar in their use to the ones that are used in the tutorial. The use of negative property assertions, on the other hand, is not necessarily intuitive, and could help students understand better the open world assumption. As for the keys, they appear as a critical feature to disambiguate entities in the semantic web. The tutorial could thus gain from their integration.
Regarding the use of RML and Turtle, what is primarily amiss is the use of Blank Nodes. The tutorial showcases the use of both datatypes and individuals, the use of some OWL operators as part of triples, as well as how to write multiple triples regarding the same entity in Turtle. However, the use of blank nodes is never made, and could be an improvement.
A version of this tutorial without the RML mapping step has been used for 2 years with classes of roughly 60 students in second year of a Master’s degree in computer science, who already took a class explaining the concepts of the semantic web. The tutorial was divided into two 1h45 sessions, for a total of 3h30. For these sessions, the PDF tutorial was used, along with onsite displays of the use of the software provided by the teacher at various points to help the students. From a teacher point of view, the following points should be highlighted:
Some students (roughly 40%) are very intuitive, and manage to use Protégé without much guidance. They easily grasp the meaning of the instructions and go through the tutorial with ease. Usually, those students manage mostly to complete the first two steps during the first session, and are done before the end of the second. Most students (roughly 50%) are able to go through the tutorial with a little help, and complete it in the allotted time. Finally, roughly 10% of students have a hard time grasping the concepts, and it is necessary to go more in depth into how to use the software and syntaxes. Those students usually take the whole of the two sessions to complete the first two steps.
The provided figures are based on estimates from teaching experience, and might not be accurate. Overall, the part of the tutorial that appears to be the most confusing for students is the use of the Manchester Syntax. Indeed, while Protégé’s interface is mostly intuitive and allows to write OWL axioms in a graphical manner, writing Manchester Syntax axiom requires to understand said syntax, which proves to be a challenge as its official documentation
22
is rather difficult to read and lacks examples. It is often necessary to provide them with syntactic examples resembling what they will want to write, which we do in the web version of the tutorial. Examples are not included in the PDF version, as it is intended for a classroom use, where a teacher can provide said examples.
Feedback from students were collected through the same questionnaire as SPARQLuedo. Table 7 shows the responses to the questionnaire for the 2024-25 academic year. The overall feedbacks are very positive, with students providing a Good or Excellent appreciation on all criterions. There is room for improvement however, with some students indicating they are dissatisfied. The clarity of instructions appears to be the most prominent point of improvement, with 9 students being unsatisfied with it. Indeed, complementary explanations are often required, particularly in the last part of the tutorial. The acquisition of skills dissatisfaction is harder to tackle.
Feedback From Students on OWLuedo During 2024-25 Academic Year.
In this article we present new tutorials designed to put into practise the use of SPARQL and OWL to master the creation and the querying of knowledge graphs in a fun way. These resources are integrated into the Cluedo4KG application and can be used to complement lectures or resources presenting these languages. The resources used for the application are available under an open licence and published in accordance with semantic web best practise. They can be used as they are or adapted and integrated into any course. The feedback we get from using these tutorials with our students shows that they are very interesting and motivating. We are currently extending cluedo4KG to include SHACLuedo, a tutorial dedicated to SHACL using the same principles.
Funding
The authors received no financial support for the research, authorship and/or publication of this article.
