Skip to content
Snippets Groups Projects
Commit ff57efc7 authored by David Rouquet's avatar David Rouquet
Browse files

Possibility to define surveyjs json directly in the extracted ttl

parent f3ba41f7
No related branches found
No related tags found
1 merge request!4Main
......@@ -234,6 +234,11 @@
rdfs:domain :Activite ;
rdfs:range :MacaoRessource ;
.
:surveyjs_json
rdf:type owl:DatatypeProperty ;
rdfs:domain :Activite ;
rdfs:domain :Reponse ;
.
:titre
rdf:type owl:DatatypeProperty ;
rdf:type owl:FunctionalProperty ;
......
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 QCU activities
template mt:json_in_ttl(?quiz) {
?json
}
where {
?quiz :surveyjs_json ?json
}
......@@ -12,7 +12,7 @@ template mt:quiz(?quiz) {
"{"
box {
st:call-template(mt:qcu, ?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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment