[Data Model] Arrange Sequence Questions

Background

We want to implement Arrange Sequence Question in the Questionset Editor and the QuML Player.

Before starting the implementation we need to decide Arrange sequence Question data model which is to be as per the QuML spec.

Proposed Data Model of Arrange Sequence Question

body

<div class='question-body' tabindex='-1'> <div class='asq-title' tabindex='0'> <p>Arrange the fruits in alphabetic order</p> </div> <div data-order-interaction='response1' class='asq-vertical/asq-horizontal'></div> </div>

responseDeclaration

Proposed format1 (Recommended)

{ "response1": { "cardinality": "ordered", "type": "integer", "correctResponse": { "value": [ 0, 1, 2, 3 ] }, "mapping": [ { "value": 0, "score": 0.25 }, { "value": 1, "score": 0.25 }, { "value": 2, "score": 0.25 }, { "value": 3, "score": 0.25 } ] } }

Pros: We will not have to save long options text in the responseDeclaration, when the options will be having images the text of options will become to long and data will become un-readble.

Cons: We will not get to see the options value in the responseDeclaration

Proposed format2

"responseDeclaration": { "response1": { "cardinality": "ordered", "type": "integer", "correctResponse": { "value": ["<p>Apple</p>","<p>Banana</p>","<p>Grapes</p>","<p>Orange</p>"] }, "mapping": [ { "value": "<p>Apple</p>", "score": 0.25 }, { "value": "<p>Banana</p>", "score": 0.25 }, { "value": "<p>Grapes</p>", "score": 0.25 }, { "value": "<p>Orange</p>", "score": 0.25 } ] } }

outcomeDeclaration

interactions

answer

editorState

templateId

primaryCategory

qType

interactionTypes


Let’s Compare ASQ with MCQ data

Compare MCQ body with ASQ body

MCQ Body

ASQ Body

MCQ Body

ASQ Body

Compare MCQ interactions with ASQ interactions

MCQ interactions

ASQ interactions

MCQ interactions

ASQ interactions

Compare MCQ responseDeclaration with MTF responseDeclaration

Compare MCQ outcomeDeclaration with ASQ outcomeDeclaration

Compare MCQ editorState with MTF editorState

 


Complete ASQ Question Metadata Example: