From b3540f8f45a27b30b919b51a31ea64fde0917046 Mon Sep 17 00:00:00 2001 From: bu Date: Fri, 15 Nov 2019 05:15:32 +0100 Subject: [PATCH] Some elements --- src/ontologies/math_exam/Nmath_exam.thy | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/ontologies/math_exam/Nmath_exam.thy b/src/ontologies/math_exam/Nmath_exam.thy index 4d3080d0..888e29de 100644 --- a/src/ontologies/math_exam/Nmath_exam.thy +++ b/src/ontologies/math_exam/Nmath_exam.thy @@ -87,13 +87,12 @@ datatype Question_Type = doc_class Task = Exam_item + local_grade :: marking type :: Question_Type - subitems :: "(SubQuestion * (Answer_Formal_Step list + Answer_YesNo)list) list" concerns :: "ContentClass set" <= "{setter,student,checker,externalExaminer}" mark :: int doc_class SubTask = Task + - local_grade :: Level + local_grade :: marking doc_class Exercise = Exam_item + content :: "(Task) list" @@ -114,15 +113,15 @@ doc_class Validation = doc_class Solution = Exam_item + valids :: "Validation list" concerns :: "ContentClass set" <= "{setter,checker,externalExaminer}" - + +doc_class Context_Description = Exam_item + + label :: string + doc_class MathExam = - global_grade :: Mark - accepts "\Author\\<^sup>+ ~~ Header ~~ \Exercise ~~ Solution\\<^sup>+ " + global_grade :: int + accepts "Header ~~ \Author\\<^sup>+ ~~ Context_Description ~~ \Task ~~ Solution\\<^sup>+ " -(* -exercise - (header ~ context_description ~ task list) -*) (* tasks > subtask