Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Macao Legacy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MACAO
Macao Legacy
Commits
489175ed
Commit
489175ed
authored
5 months ago
by
David Rouquet
Browse files
Options
Downloads
Patches
Plain Diff
modify to work with the new quiz.js. Comments are now at the root
parent
6374f029
No related branches found
No related tags found
1 merge request
!4
Main
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tetras_extraction/script/templates/quiz.rq
+17
-17
17 additions, 17 deletions
tetras_extraction/script/templates/quiz.rq
with
17 additions
and
17 deletions
tetras_extraction/script/templates/quiz.rq
+
17
−
17
View file @
489175ed
...
...
@@ -12,7 +12,13 @@ template mt:quiz(?quiz) {
"{"
box
{
st
:
call-template
(
mt
:
qcu
,
?quiz
)
st
:
call-template
(
mt
:
json_in_ttl
,
?quiz
)
st
:
call-template
(
mt
:
qcm
,
?quiz
)
#st:call-template(mt:json_in_ttl, ?quiz)
}
"}"
}
']'
}
# Optional correct/incorrect comments for the quiz.
# Unfortunately, STTL doesn't have a concise syntax for blocks
# that depend on a variable being bound, we have to use
...
...
@@ -27,11 +33,6 @@ template mt:quiz(?quiz) {
mt
:
sep
(),
mt
:
json_escape
(
?incorrect_comment
)
),
""
)
}
"}"
}
']'
}
'}'
st
:
nl
()
}
...
...
@@ -49,5 +50,4 @@ where {
# which creates multiple matches for the WHERE clause and thus duplicate files.
# We'll have to deal with them at some point, but for now just filter the first
# one arbitrarily to avoid messing with the output.
limit
1
LIMIT
1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment