User Tools

Site Tools


stats:schema:exam

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stats:schema:exam [2013/04/19 10:59]
Patrick Michel
stats:schema:exam [2013/07/10 12:48] (current)
Line 6: Line 6:
  
 <code xcend> <code xcend>
-  ​element exams {                    +  element exam * id {              
-    ​element exam * id {              +    attribute title             ​{ string } 
-      attribute title               ​{ string } +    attribute date              { string } 
-      attribute date                { string } +    attribute time              { string } 
-      attribute time                { string } +    attribute location ​         { string } 
-      attribute location ​           { string } +    attribute free              { boolean } 
-      attribute free                { boolean } +    attribute published ​        ​{ boolean } 
-      attribute published ​          ​{ boolean } +     
-       +    attribute exercise ​         ident [ exists /​exercise[.] ]}
-      attribute exercise ​           key [ exists ​//exercises/exercise[.] ]} +
-  +
-      element examiner * account ​   {[ //​accounts/​account[./​account]/​examiner[..exam/​id] ]}+
  
-      ​element ​tasks               ​ +    ​element ​examiner * account  ​{[ /​account[./​account]/​examiner[..exam/​id] ]} 
-        element task * id {          + 
-          attribute maxPoints ​      { double [ . >= 0 ]} +    ​element task * id {          
-        }                            +      attribute maxPoints ​      { double [ . >= 0 ]} 
-      ​} ​                             +    }                            
-      element grades {               +    element grade * id {            
-        ​element grade * id {            +      attribute name            { string } [count(./​name,​ ../​grade/​name) = 1] 
-          attribute name            { string } [count(./​name,​ ../​grade/​name) = 1] +      attribute value           { double } 
-          attribute value           { double } +      attribute minPoints ​      { double } 
-          attribute minPoints ​      { double } +    }                           [ {exists ./grade[x], exists ./grade[y], x != y} ./​grade[x]/​value != ./​grade[y]/​value ] 
-        }                           [ {exists ./grade[x], exists ./grade[y], x != y} ./​grade[x]/​value != ./​grade[y]/​value ] +                                [ {exists ./grade[x], exists ./grade[y], x != y} ./​grade[x]/​minPoints != ./​grade[y]/​minPoints ] 
-                                    [ {exists ./grade[x], exists ./grade[y], x != y} ./​grade[x]/​minPoints != ./​grade[y]/​minPoints ] +                                [ {exists ./grade[x], exists ./grade[y], ./​grade[x]/​value < ./​grade[y]/​value}  
-                                    [ {exists ./grade[x], exists ./grade[y], ./​grade[x]/​value < ./​grade[y]/​value}  +                                  ./​grade[x]/​minPoints > ./​grade[y]/​minPoints ] 
-                                      ./​grade[x]/​minPoints > ./​grade[y]/​minPoints ] +    element participant * id {  [ count (./id, /​account/​student/​id) = 1 ] 
-      ​} ​                             +      element result * task {   [ exists ..exam/​task[./​task] ] 
-      element results {              +        attribute points ​       { double [ . >= 0 && . <= ..exam/​task[../​task]/​maxPoints ]}
-        ​element participant * id {  [ count (./​id, ​//accounts/​account/​student/​id) = 1 ] +
-          element result * task {   [ exists ..exam/tasks/​task[./​task] ] +
-            attribute points ​       { double [ . >= 0 && . <= ..exam/tasks/​task[../​task]/​maxPoints ]+
-          } +
-        ​}+
       }       }
     }     }
stats/schema/exam.1366361942.txt.gz · Last modified: 2013/04/19 10:59 by Patrick Michel