diff --git a/tetras_extraction/macao_12/script/templates/activite.rq b/tetras_extraction/macao_12/script/templates/activite.rq index c104b543a2c1ef6711e6b8d2a08c823b2aec0038..28c2a1b68e56cb51ba7411cda134ad542af7120c 100644 --- a/tetras_extraction/macao_12/script/templates/activite.rq +++ b/tetras_extraction/macao_12/script/templates/activite.rq @@ -20,10 +20,9 @@ template mt:activite(?act) { # ?weight # ?desc # } -# # Insert a Hugo shortcode to load the quiz if this is a quiz activity -# if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "") -# "%%%%%%%" -# st:call-template(mt:quiz,?act) + # Insert a Hugo shortcode to load the quiz if this is a quiz activity + if (exists { ?act a :Exercice }, "\n{{< quiz >}}", "") + st:call-template(mt:quiz, ?act) } where { ?act a :Activite . diff --git a/tetras_extraction/macao_12/script/templates/quiz.rq b/tetras_extraction/macao_12/script/templates/quiz.rq index 2f7a2743861a8c3aa96c46414ffcb7c32675d640..7883aad571bb2d56dafecd3920557a3021cb5a1f 100644 --- a/tetras_extraction/macao_12/script/templates/quiz.rq +++ b/tetras_extraction/macao_12/script/templates/quiz.rq @@ -4,6 +4,7 @@ PREFIX st: <http://ns.inria.fr/sparql-template/> template mt:quiz(?quiz) { st:nl() + mt:start_marker(?quiz) "/quiz.json" st:nl() '{' box { '"elements": [' @@ -17,6 +18,7 @@ template mt:quiz(?quiz) { ']' } '}' + st:nl() } where { ?quiz a :Exercice