First Step:

Knight’s Move

The novel unfolds on a 10x10 grid, where each square (cell) is a place and a chapter. Each chapter tells the story of a main character. The sequence of the cells is predefined and based on the chess knight piece move, with the requirement that it cannot step two times on the same cell. Cell A1 is skipped.

Competency Questions

  1. What is the starting cell? (F5) (=What cell has no prev cell?)
  2. What place is described in chapter 1? (Dans l'escalier) (=What place is described in a specific chapter?)
  3. What is the ending cell? (A5) (=What cell has no next cell?)
  4. What place does the last chapter describe? (Bartlebooth's)
  5. What cells have no corresponding chapter? (A1)
  6. What cell and chapter follow the position J7? (I9, chapter 6) (= What is the next cell of a given cell?)
  7. What place is cell H8? (Winckler) (=What place corresponds to a specific cell?)
  8. What apartment follows chapter 25? (Bartlebooth's)

Classes:

  • Cells
  • Chapters
  • Topics
    • Characters
    • Places

Data Properties:

  • ChapterNumber (?chapter, 0 < x <=100)

Object Properties:

  • hasCell (?chapter, ?cell)
  • hasChapter (?cell, ?chapter)
  • hasPlace (?cell, ?place)
  • hasMainCharacter (?place, ?character)

Elements

Generic Use Cases

For this step we identified the ODP “Sequence” from ontologydesignpatterns.org:
http://ontologydesignpatterns.org/wiki/Submissions:Sequence

Even if we have a connection between cells and chapters we can use to determine the sequence of cells (given that the sequence of chapters is incremental), we integrated this ontology for faster data extraction.

We asserted only the property directlyFollows to define the sequence of the cells, leaving the reasoner to infer all the other properties (follows, precedes, directlyPrecedes).

  1. What is the starting cell? (F5) (=What cell matches chapter 1?) - SPARQL Query
  2. What place is described in chapter 1? (Dans l'escalier) - SPARQL Query
  3. What is the ending cell? (A5) (=What cell has no next cell?) - SPARQL Query
  4. What place does the last chapter describe? (Bartlebooth's) - SPARQL Query
  5. What cells have no corresponding chapter? (A1) - SPARQL Query
  6. What cell and chapter follow the position J7? I9, chapter 6 (= What is the next cell of a given cell?) - SPARQL Query
  7. What place is cell H8? (Winckler) (=What place corresponds to a specific cell?) - SPARQL Query
  8. What chapters are set in the caves? 33, 67, 72, 76, 91 (=What chapters are set in a specific place?) - SPARQL Query

Unit Tests

First Step Notes

The consistency of the model has been checked with the Pellet reasoner, while SPARQL queries with SPARQL Query tab in Protege.

In order to keep the graph light and Protege working, we put in the ABox only the data needed to answer the Competency Questions for the final tests.

That is, while we entered all the Cells and the Chapters, only a few Places and Characters were put in the graph.

2022, Diego Chillo & Laura Travaglini

// Venobox for SPARQL Query windows