While comparing the existing inQuiry question and question set metadata with QuML specs we found a few gaps. Below are the properties having some differences from the QuML specs:
Table of Contents |
---|
Info |
---|
This design only talks about QuML compliance not about the multi-lingual |
responseDeclaration
A "responseDeclaration"
contains information about the response to a question: When is it correct, and (optionally) how is it scored?
responseDeclaration.mapping
maxScore
Here are the differences for each question type:
Subjective Question:
Current Format | New format as per QuML Spec | ||
---|---|---|---|
| Not applicable for subjective question. |
Multiple Choice Question:
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
|
...
|
Multi-select MCQ:
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
|
...
|
Open Question:
For MMCQ, What would be the value of type? if correctResponse
has value as an array.
media
No changes are required from the editor and player side.
timeLimits
showWarningTimer
warningTime
(%)
The use of maxTime
is to show the timer on the QuML player and the use of warningTime
is to indicate the time remaining to complete the question set.
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
...
|
...
|
...
|
...
|
Warning time will be removed from the editor and moved to the player side.
In order to achieve this, the player will introduce two new properties as part of the player configuration.
Name | Type | Default |
---|---|---|
warningTime (% ) | number | 75(%) |
showWarningTimer | boolean | true |
Warning time will not be present in
timeLimits
and will be calculated based on thewarningTime
config and theMax
timewarningTime
[number (%) ] to be introduced as part of the global config. Default value of Warning timer can be 75(%) of the max timeie, Warning timer will start showing once the user finishes 75% (default) of the max time
For eg, max time is 100 seconds, warning timer will start showing from the 75 seconds
showWarningTimer
[boolean] to be introduced as part of the global config - PlayerThis will decide if the
WarningTimer
has to be displayed or not
Here’s the sample player configuration.
Code Block |
---|
{
'context': {
...
},
'metadata': {
...
},
'config': {
'sideMenu': {
'enable': true,
'showShare': true,
'showDownload': true,
'showReplay': false,
'showExit': false,
},
showWarningTimer: true, // true or false
warningTime: 75 // [number (%) ]
}
} |
(Note: Existing behavior of the player will be continuing as it is for the warning indicator)
Editor Changes:
...
The warning timer will be removed from the editor form and
...
will not save the warning time value in timeLimits.
min time will be stored inside timeLimits as
timeLimits.
...
questionSet.min
There will not be any field for taking user input for min time, editor will store the min time as 0 by default.
The timeLimts for the questionset will be stored in below format:
Code Block |
---|
timeLimits:
{
"description": "Time limits for the complete set and/or for each question in the question set.",
|
...
questionSet: { min: number, max: number } } |
Example:-
For storing max time( max
) as 5 minutes. It will be stored in below format.
5 minutes is to be converted to seconds to store the value.
5 minutes = 5 * 60 seconds = 300 seconds
...
The default value of min time ( min
) will be stored as 0
Code Block |
---|
timeLimits:
{
|
...
questionSet: { min: 0, max: 300 } } |
Open Question
Need confirmation if timeLimits is to be stored as seconds or milli-seconds ?
maxScore
For question:
Currently, maxScore
property is getting stamped in two places at the question metadata level.
As per QuML spec, maxScore should be stored under the outcomeDeclaration
property.
Current Format | New format as per QuML Spec | |||||||
---|---|---|---|---|---|---|---|---|
|
|
(Notes: Samagra is using this property while printing the question paper).
For Questionset:
Current Format | New format as per QuML Spec | |||||||
---|---|---|---|---|---|---|---|---|
|
|
Open Question:
For QuestionSet, What would be the value of cardinality?
(Need to be checked with Gauraw Kumar and Sajesh Kayyath )
answer
In the current implementation, We are not storing the answer property for MCQ and MMCQ. but as per QuML spec, An answer is mandatory for all types of questions.
SA – HTML
MCQ/MMCQ – reference value for data OR actual value ?
For example: “1,2” OR
...
“India, US”
(Need to be checked with Sajesh Kayyath and Gauraw Kumar
Subjective Question:
Current Format | New format as per QuML Spec | ||||
---|---|---|---|---|---|
|
...
Multiple Choice Question:
Current Format | New format as per QuML Spec |
---|---|
Not Applicable |
...
language | json |
---|
...
interactions
As part of the new implementation, We will be moving only the validation
field under the response1
property. No other change.
...
Current Format
...
New format as per QuML Spec
...
Multi-select MCQ:
Current Format | New format as per QuML Spec |
---|---|
Not Applicable |
...
Code Block | ||
---|---|---|
| ||
"answer": "1,2" // Value assign for data
OR
"answer": "India, US" // actual value. |
Proposed Solution
Here are the solutions for different types of the question.
Solution 1
Datatype: String
In this solution, All answers will be concatenated together under an HTML element and stamped to the answer property.
Here’s the sample HTML template for single & multi answers:
Code Block |
---|
// Single answer <div class="anwser-container"> <div class="anwser-body"> |
...
// Anwser HTML </div> |
...
</div> |
Code Block |
---|
// Multiple answers <div class="anwser-container"> <div class="anwser-body"> |
...
// Anwser1 HTML |
...
</div> |
...
<div class="anwser-body"> // Anwser2 HTML |
...
</div> |
...
</div> |
SA | MCQ | MMCQ |
---|---|---|
Single Language:
|
...
|
...
|
...
Multi Language:
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
language | json |
---|
...
|
...
|
...
|
...
|
...
|
...
| Single Language:
|
...
|
...
Multi Language:
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
solutions
Solutions are used to provide exemplary answers to questions aid candidates in-depth learning and enhance user’s understanding of the concepts. Multiple solutions can be configured for a question
This property supports the following types:
Image + Text
...
Current Format
...
New format as per QuML Spec
...
Single Language:
|
...
|
...
|
...
Multi Language:
|
...
|
...
|
...
|
...
|
...
|
...
language | json |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
2. Video
...
Current Format
...
New format as per QuML Spec
...
language | json |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
language | json |
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
Solutions HTML must contain only structural and media HTML elements. There should be interactions in a solution and hence no input HTML elements. QuML players should allow the users to view the solutions if the context in which the question is being used allows the users to view the solution.
...
Feedback is a JSON object in key-value format. The keys in the JSON are the identifiers of different feedbacks for the question and values are HTML snippet to be shown to the student. After the response processing, the QuML player renders the feedback HTML mapped to the value that is set to the FEEDBACK outcome variable.
Feedback:
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
hints (This has to be modified by an adopter)
Similar to feedback, Hints are shown to the candidates after response processing or when the student requests for hints.
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
For more information, please refer to this documentation: https://quml.sunbird.org/v1/question#hints
Only Shikshalokam
is using the following format.
...
Question - { hints: { en : "string"}}
Also, they are storing the hints for each option under the interactions property.
Here is an example from Shikshalokam:
...
|
Pros:
No QuML spec changes are needed.
No additional data transformation is required for older questions by API.
Cons:
Difficult to differentiate each answer by the player as it’s concatenated together under an HTML element.
Some extra effort is required to support this format by the editor /player.
Solution 2
In this solution, Each answer will be stored separately as an element in an array.
Datatype: Array
(An array of strings)
SA | MCQ | MMCQ | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Single Language:
Multi Language:
| Single Language:
Multi Language:
| Single Language:
Multi Language:
|
Pros:
Easy to differentiate each answer by the player as it’s not concatenated together under an HTML element.
Easy to manipulate UI by the player.
Minimal changes are required by the editor and player.
Cons:
QuML spec changes are required to support this format.
Data transformation is required in API for older questions as it’s an array of strings.
Answer attribute conclusion:-
Solution 1 is finalised for the implementation of answer.
As the answer attribute is used only for printing/display so for the simplicity answer will be stored in the form of string with the html template as mentioned above in solution 1.
Code Block |
---|
<div class="anwser-container">
<div class="anwser-body">
// Anwser HTML
</div>
</div> |
In the // Anwser HTML
actual values of answers will be stored.
For “Multiple choice Questions” the label
presents in interaction options will be stored in the place of
// Anwser HTML
interactions
As part of the new implementation, We will be moving only the validation
field under the response1
property. No other change.
Current Format | New format as per QuML Spec | |||||||
---|---|---|---|---|---|---|---|---|
|
|
solutions
Solutions are used to provide exemplary answers to questions aid candidates in-depth learning and enhance user’s understanding of the concepts. Multiple solutions can be configured for a question
This property supports the following types:
Image + Text
Current Format | New format as per QuML Spec | |||||||
---|---|---|---|---|---|---|---|---|
|
|
2. Video
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Solutions is a JSON object in key-value format. The keys in the JSON are the identifiers of different solutions for the question and values are HTML snippets for solutions.
Solutions HTML must contain only structural and media HTML elements. There should be interactions in a solution and hence no input HTML elements. QuML players should allow the users to view the solutions if the context in which the question is being used allows the users to view the solution.
feedback
Feedback is a JSON object in key-value format. The keys in the JSON are the identifiers of different feedbacks for the question and values are HTML snippet to be shown to the student. After the response processing, the QuML player renders the feedback HTML mapped to the value that is set to the FEEDBACK outcome variable.
Feedback:
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
For more information, please refer to this document: https://quml.sunbird.org/v1/question#feedback
hints (This has to be modified by an adopter)
Similar to feedback, Hints are shown to the candidates after response processing or when the student requests for hints.
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Hints is a JSON object in key-value format. The keys in the JSON are the identifiers of different hints for the question and values are HTML snippet for hints.
For more information, please refer to this documentation: https://quml.sunbird.org/v1/question#hints
Only Shikshalokam
is using the following format.
Question -
{ hints: { en : ["string"]}}
Also, they are storing the hints for each option under the interactions property.
Here is an example from Shikshalokam storing hint for the Question :
Code Block |
---|
{ // question metadata
......,
"hints": {
"en": [
"delhi"
]
},
.....
} |
Proposed format for storing hint of question and for storing question hint reference in outcomeDeclaration
to differentiate it from the hints of options
Code Block | ||
---|---|---|
| ||
{ // question metadata
......,
+ hints: {
+ "70c82bf5-9459-4c43-8897-0e58b7e2er76": { "en": "delhi" }
+ },
+ "outcomeDeclaration": {
+ "hint": {
+ "cardinality": "single",
+ "type": "string",
+ "defaultValue": "70c82bf5-9459-4c43-8897-0e58b7e2er76"
+ }
+ }
} |
Here is an example from Shikshalokam storing hints for each options under interactions :
Code Block |
---|
{ // question metadata
.....,
interactions: {
response1: {
type: "choice",
options: [
{
label: "<p>option 1</p>",
value: 0,
hints: {
en: "test hint 1", // hints for option 1
},
},
{
label: "<p>option 2</p>",
value: 1,
hints: {
en: "test hint 2", // hints for option 2
},
},
{
label: "<p>option 3</p>",
value: 2,
hints: {
en: "test hint 3", // hints for option 3
},
},
],
autoCapture: "Yes",
validation: {
limit: {
maxLength: 100
},
required: "Yes",
pattern: "dd/mm/yyyy",
},
},
},
.....
} |
Proposed format for storing hints for each options under interactions :
Code Block | ||
---|---|---|
| ||
{ // question metadata ......, interactions: { response1: { type: "choice", options: [ { label: "<p>option 1</p>", value: 0, + hint: "70c82bf5-9459-4c43-8897-0e58b7e1da64", // hints for option 1 }, { label: "<p>option |
...
2</p>", |
...
|
...
value: 1, + |
...
|
...
hint: "70c82bf5-9459-4c43-8897-0e58b7e1as73", // hints for |
...
option |
...
2 }, |
...
{ |
...
label: "<p>option |
...
3</p>", |
...
|
...
value: 2, + |
...
|
...
hint: "70c82bf5-9459-4c43-8897-0e58b7e1gf87", // hints for |
...
option |
...
3 |
...
|
...
},
|
...
], |
...
autoCapture: "Yes", |
...
|
...
|
...
|
...
validation: |
...
{ |
...
limit: { |
...
maxLength: |
...
100 }, |
...
required: "Yes", |
...
...
pattern: " |
...
dd/mm/yyyy", |
...
}, |
...
}, |
...
}, + hints: { + |
...
"70c82bf5-9459-4c43-8897-0e58b7e1da64": { en: "test hint 1" }, + "70c82bf5-9459-4c43-8897-0e58b7e1as73": { |
...
en: " |
...
test hint 2" }, + "70c82bf5-9459-4c43-8897-0e58b7e1gf87": { |
...
en: " |
...
test hint 3" }, + } |
...
} |
Info | ||||||||
---|---|---|---|---|---|---|---|---|
Note - interaction design is on hold and is tracked as part of this Jira ticket-
|
instructions (This has to be modified by an adopter)
Instructions on how to understand, attempt, or how the question will be evaluated.
Currently, instructions are being stored in the following format:
For QuestionSet:
Current Format | New format as per QuML Spec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
For Question:
Current Format | New format as per QuML Spec | ||||
---|---|---|---|---|---|
|
...
|
|
Instructions HTML also must contain only structural and media HTML elements. There should be interactions in a solution and hence no input HTML elements.