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
6374f029
Commit
6374f029
authored
5 months ago
by
David Rouquet
Browse files
Options
Downloads
Patches
Plain Diff
qcm support
parent
6c2966c3
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/qcm.rq
+36
-0
36 additions, 0 deletions
tetras_extraction/script/templates/qcm.rq
with
36 additions
and
0 deletions
tetras_extraction/script/templates/qcm.rq
0 → 100644
+
36
−
0
View file @
6374f029
PREFIX
:
<http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX
mt
:
<http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX
st
:
<http://ns.inria.fr/sparql-template/>
# Template for the JSON definition of QCM activities
template
mt
:
qcm
(
?qcm
)
{
'"name": "quizQuestion"'
mt
:
sep
()
'"type": "checkbox"'
mt
:
sep
()
'"name": "'
?id
'"'
mt
:
sep
()
'"choices": ['
box
{
group
{
"{"
'"value": "'
?reponseId
'"'
mt
:
sep
()
'"text": "'
mt
:
json_escape
(
REPLACE
(
?reponse_md
,
"•"
,
""
))
'"'
if
(
CONTAINS
(
?reponse_md
,
"•"
),
''
,
mt
:
sep
())
if
(
CONTAINS
(
?reponse_md
,
"•"
),
''
,
'"enableIf": "false"'
)
"}"
;
separator
=
mt
:
sep
()
}
}
']'
}
WHERE
{
?qcm
a
:
ExerciceQC_QCM
;
:
id
?id
.
?qcm
:
aReponse
?reponse
.
?reponse
:
html_md
?reponse_md
;
:
html
?reponse_html
;
:
id
?reponseId
.
FILTER
(
?reponse_md
!
=
''
)
}
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