RDF Graphs : Practical Activities

Duration1h15 AI Banned

1 - Small family

Create a simplified RDF graph describing the following statements :

Margot is a woman and a journalist, she is 32 years old, she is married to Arthur, who is a man and a photographer.
Together, they have two children, Marie, a girl who loves robots, and Simon, a boy who enjoys painting.
  • Each person must be represented as a URI : :Margot, :Arthur, :Marie, :Simon.
  • Each family member should be associated with their names as literal values (Margot, Arthur, Marie, Simon).
  • Specify gender with the URIs : rdf:type, voc:Woman, voc:Man
  • Attributes like name, age, profession and hopbby must be represented with URIs as predicates : voc:name, voc:age, voc:occupation, voc:hobby
  • Family relations must be represented with URIs as predicates : voc:hasChild, voc:hasSpouse,

Draw the RDF graph on a paper, before providing it in the Turtle language.

2 - Wikidata : Jules Verne

Based on wikidata, create a simplified RDF schema graph describing the following classes: Writer (Q36180), Author (Q482980), Book (Q571), Document (Q49848), Publication (Q732577), as well as the properties: author (P50), creator (P170), first name (P735).

  • Link the author property to the Book and Writer classes by specifying the range and domain, as well as the first name property to the Writer class. Use the example of the writer Jules Verne (Q33977) and his book (Q183565).

  • The graph must include the relationships between the different resources.

  • The graph must include the labels of the different resources, giving the values in English.

  • The graph must use the properties defined in RDF Schema (https://www.w3.org/2000/01/rdf-schema#), for example: rdfs:subClassOf, rdfs:label, rdfs:property, rdfs:subPropertyOf, rdfs:range, rdfs:domain

  • For simplicity, we will use the prefixes wd: instead of https://www.wikidata.org/wiki/ and wdt: instead of https://www.wikidata.org/wiki/Property:

  • Draw the RDF graph on a paper, before providing it in the Turtle language.

  • Based on this RDF schema graph, create the RDF graph describing the following statement : Jules Verne is the author of the books Twenty Thousand Leagues Under the Sea and Around the World in 80 Days.

  • Update the .ttl file by adding this statement.

3 - Small school

Create a simplified RDF graph that describes an educational institution such as IMT Atlantique. The graph should include :

  • General information on the institution :
    • Name : IMT Atlantique
    • Adress : 655 Av. du Technopôle, 29280 Plouzané
    • Type : Engineering School
  • The school is composed of different departments:
    • Name : Computer Science, Data Sience, …
    • Number of permanent teachers
  • The school has management services :
    • Training managment office
    • Research management office
  • People enrolled in the school have different roles:
    • Students
    • Teachers (enrolled in a department)
    • Administrators
    • Directors

The following requirements shoud be included :

  • Use common vocabularies when needed : RDFS (rdfs:), RDF (rdf:), FOAF (foaf:), schema (schema:) and custom a namespace fo the school (e.g., imt:).

  • The graph should include class definition, property definition, relationships between ressources, literal values and datatypes.

  • Draw the RDF graph on a paper before providing it in the Turtle syntaxe.

  • Now open the .ttl file using the Protégé software. Protégé is introduced in the next session, so this is a good opportunity to familiarise yourself with it.