Skip to content
Snippets Groups Projects
Commit 80ca03f5 authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Replace test prefix with Macao prefix

parent b4c5a69b
No related branches found
No related tags found
No related merge requests found
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX testtl: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
template st:profile {} template st:profile {}
...@@ -10,6 +10,6 @@ function st:process(?x) { ...@@ -10,6 +10,6 @@ function st:process(?x) {
if (isLiteral(?x), st:format("%s", ?x), st:turtle(?x)) if (isLiteral(?x), st:format("%s", ?x), st:turtle(?x))
} }
function testtl:sep() { function mt:sep() {
st:format(",%s", st:nl()) st:format(",%s", st:nl())
} }
\ No newline at end of file
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX testtl: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX owl: <http://www.w3.org/2002/07/owl#>
......
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX testtl: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX owl: <http://www.w3.org/2002/07/owl#>
...@@ -18,7 +18,7 @@ title = "%s" ...@@ -18,7 +18,7 @@ title = "%s"
?desc ?desc
} }
"-------------------------------------------------------------------------" "-------------------------------------------------------------------------"
st:call-template(testtl:quiz, ?subj) st:call-template(mt:quiz, ?subj)
} }
where { where {
?subj a :Page . ?subj a :Page .
......
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX mt: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
template mt:qcu(?qcu) { template mt:qcu(?qcu) {
......
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX mt: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
template mt:qcu_choices(?qcu) { template mt:qcu_choices(?qcu) {
......
PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/> PREFIX : <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/>
PREFIX testtl: <http://www.semanticweb.org/eliott/test/> PREFIX mt: <http://www.semanticweb.org/eliott/ontologies/2024/4/macao/template/>
PREFIX st: <http://ns.inria.fr/sparql-template/> PREFIX st: <http://ns.inria.fr/sparql-template/>
template testtl:quiz(?quiz) { template mt:quiz(?quiz) {
st:nl() st:nl()
'{' '{'
box { box {
'"elements": [' '"elements": ['
box { box {
st:call-template(testtl:qcu, ?quiz) st:call-template(mt:qcu, ?quiz)
} }
']' ']'
} }
...@@ -21,7 +21,7 @@ template testtl:quiz(?quiz) { ...@@ -21,7 +21,7 @@ template testtl:quiz(?quiz) {
# ] # ]
# } # }
# """ # """
# box { st:call-template(testtl:qcu, ?quiz) } # box { st:call-template(mt:qcu, ?quiz) }
# } # }
} }
where { where {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment