Third Step:

Linking Constraints to Cells

As a final step, the former two need to be linked. The machine must attribute the values of the Cahier des Charges to the novel's chapters.

Every chapter has a value for every one of the 42 categories, obtained by applying the Double Latin Square and the "pseudo-quenine" base 10. This attribution never changes, even if we change the constraints, their values, or the places and characters of the story.

This story-making machine works for other novels based on a 10x10 map with 42 categories of constraints.

Competency Questions

  1. What is the value of constraint “époque” for chapter 8? (18ème)
  2. What is the value of constraint “végétal” for chapter 70? (fleurs séchés)
  3. What chapters have value “amour” in the “sentiments” constraint? (8, 17, 34, 40, 59, 66, 82, 85, 87, 91)
  4. What constraints are defined for chapter 76?
    • 1A position = couché sur le dos
    • 1a activité = lire, écrire
    • 1B citation 1 = Verne
    • 1b citation 2 = Calvino
    • ...(see the complete answer here)
  5. What are the constraints of the missing cell/chapter? (click here for the answer)

Classes:

This step doesn't introduce new classes.

Object Properties:

  • hasConstraintValue (?chapter, ?constraint)
  • belongsToChapter (?constraint, ?chapter)

Elements

Generic Use Cases

Given the specificity of this process, no generic use case has been identified for this step.

  1. What is the value of constraint “époque” for chapter 8? (18ème)
    (= extract a single constraint's value for a specific chapter) - SPARQL Query

  2. What is the value of constraint “végétal” for chapter 70? (fleurs séchés) - SPARQL Query

  3. What chapters have value “amour” in the “sentiments” constraint? (8, 17, 34, 40, 59, 66, 82, 85, 87, 91)
    (= extract the list of chapters having the same constraint) - SPARQL Query

  4. What constraints are defined for chapter 76?
    • 1A position = couché sur le dos
    • 1a activité = lire, écrire
    • 1B citation 1 = Verne
    • 1b citation 2 = Calvino
    • ...(see the complete answer here)
    (= extract the complete list of constraints for a chapter)
    SPARQL Query

  5. What are the constraints of the missing cell/chapter? (click here for the answer)
    (= extract the constraint values with less than 10 attributions to chapters)
  6. SPARQL Query

Unit Tests

Third Step Notes

Inferences have been produced with Pellet reasoner.

SPARQL queries have been tested with the Snap SPARQL Query plugin for Protege, that allows queries on inferred axioms.

2022, Diego Chillo & Laura Travaglini

// Venobox for SPARQL Query windows