Completed single choice set
Submitted by falcon on Tue, 07/21/2015 - 16:46
This statements is triggered when the user answers the last question in a single choice set
verb.id:
"http://adlnet.gov/expapi/verbs/completed"
verb.display.en-US:
"completed"
object.id:
Typically the url to this resource, suffixed by subcontent id if this resource is used as sub content
object.objectType:
"Activity"
object.definition.extensions:
http://h5p.org/x-api/h5p-local-content-id: A unique id for the content used by H5P
object.definition.name.en-US:
User defined or autogenerated from the question
actor.mbox:
Typically holds the logged in users e-mail adress like "mailto:[email protected]"
actor.name:
Typically holds the user's name like "falcon"
actor.objectType:
"Agent"
actor.account.homePage:
Typically used for not logged in users holding the url of your site like "example.com"
actor.account.name:
Typically used for not logged in users with the name being a UUID the user gets for an entire session
context.contextActivities.category[0].id:
Info about the library sending out this statement on the form http://h5p.org/libraries/[Machine name]-[major version].[minor version]. For instance http://h5p.org/libraries/H5P.Blanks-1.4 for Fill in the blanks version 1.4.
context.contextActivities.category[0].objectType:
"Activity"
context.contextActivities.parent[0].id:
Typically holds the id of the parent of this activity if this activity is used as sub content
context.contextActivities.parent[0].objectType:
"Activity"
result.score.duration:
The time the user spent on this activity given as for example PT125.15S if the user spent 125.15 seconds on the activity
result.score.max:
The maximum score for this activity
result.score.min:
The minimum score for this activity
result.score.raw:
The users score on this activity
result.score.scaled:
The users scaled result for this activity, for instance "0.45" if the user got 45 % correct
Comments
hosais
Wed, 07/27/2016 - 19:38
Permalink
definition of Grouping
I got the result in LL (like following). May I know where does the definition of Grouping ( such as "en-US": "Learn Chinese") come from in single choice set (of my content)? I saw parent and category but no information about Grouping. Thanks.
"grouping": [
{
"objectType": "Activity",
"id": "http://dev.dd:8083/node/281",
"definition": {
"name": {
"en-US": "Learn Chinese"
}
}
}
]
icc
Thu, 07/28/2016 - 11:10
Permalink
Currently, there are no
Currently, there are no 'grouping' in Single Choice Set, it does not know of any similar H5Ps(siblings). You could add the grouping metadata to the node and then add this to the xAPI Statement before sending to the LRS.
Another option is of course that each question inside Single Choice Set had some sort of field for specifying a grouping category or topic, but this can quickly become confusing as most authors would not know the intention behind it. However, I do see how it can be useful!
Thank you for taking an interest in this issue.
hosais
Thu, 07/28/2016 - 18:44
Permalink
It was Single Choice Set in course presentation
Hi, I attached the full statment below to clarify. I do not know where "grouping" comes from. It was Single Choice Set in course presentation. Is it og group in drupal it is the only related info I cound think about. I am not sure whether it is h5p part now.
{
"version": "1.0.0",
"actor": {
"objectType": "Agent",
"name": "assistant",
"mbox": "mailto:[email protected]"
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/answered",
"display": {
"en-US": "answered"
}
},
"object": {
"objectType": "Activity",
"id": "http://dev.dd:8083/node/484",
"definition": {
"extensions": {
"http://h5p.org/x-api/h5p-local-content-id": 484,
"http://h5p.org/x-api/h5p-subContentId": "f16d35c5-69d6-40c6-9aae-e7e0b34b0696"
},
"name": {
"en-US": "How to say [\u6905\u5b50] in Chinese?\n"
}
}
},
"context": {
"contextActivities": {
"parent": [
{
"objectType": "Activity",
"id": "http://dev.dd:8083/learn-chinese/daily-life-topics-3/my-study-room"
}
],
"category": [
{
"objectType": "Activity",
"id": "http://h5p.org/libraries/H5P.SingleChoiceSet-1.4"
}
],
"grouping": [
{
"objectType": "Activity",
"id": "http://dev.dd:8083/node/281",
"definition": {
"name": {
"en-US": "Learn Chinese"
}
}
}
]
},
"extensions": {
"http://id.tincanapi.com/extension/ending-point": 10
}
},
"result": {
"score": {
"min": 0,
"max": 4,
"raw": 4,
"scaled": 1
},
"completion": true,
"duration": "PT5232.89S"
},
"authority": {
"objectType": "Agent",
"name": "New Client",
"mbox": "mailto:[email protected]"
},
"stored": "2016-07-27T18:11:36.266200+00:00",
"timestamp": "2016-07-27T18:11:36.266200+00:00",
"id": "xxxxxxxx-8c55-4c24-a920-2c34fcc99dfe"
}
icc
Fri, 07/29/2016 - 09:30
Permalink
Are you sure this isn't LL ?
Are you sure this isn't LL ? I cannot find any grouping in the H5P code.
hosais
Sun, 07/31/2016 - 23:21
Permalink
Hi icc, thank you for your
Hi icc, thank you for your consideration. I traced the code. Not sure yet but I think it is the drupal h5p_tincan_bridge module: h5p_tincan_bridge_tincanapi_add_og_context() will add the group information.
icc
Mon, 08/01/2016 - 09:14
Permalink
Aha… I'm sorry but I haven't
Aha… I'm sorry but I haven't tried that module yet. Yes, sounds like it must be it generating the grouping.
hosais
Wed, 07/27/2016 - 20:24
Permalink
Questions in the Single Choice Set
Hi,
In thta statement of Single Choice Set, there is no way to know the content of the question except the first question. Is possible to change this? I made diff of the Answered (not completed) statments of the each question, all are with the first question (Ex. attached below).
"object": {
"objectType": "Activity",
"id": "http://dev.dd:8083/node/484",
"definition": {
"extensions": {
"http://h5p.org/x-api/h5p-local-content-id": 484,
"http://h5p.org/x-api/h5p-subContentId": "f16d35c5-69d6-40c6-9aae-e7e0b34b0696"
},
"name": {
"en-US": "How to say [\u6905\u5b50] in Chinese?\n"
}
}
}, ...
hosais
Wed, 07/27/2016 - 20:57
Permalink
I forget to clarify that in
I forget to clarify that in the answered statement for each question (my test), all are the first question:
"name": {
"en-US": "How to say [\u6905\u5b50] in Chinese?\n"
plus some difference:
"raw": 4,
"scaled": 1
and
"id": "0a41e8b6-9a58-4b2f-a93b-e56bd3f0ee3d"
icc
Thu, 07/28/2016 - 11:18
Permalink
As you've probably noticed
As you've probably noticed Single Choice Set only contains one xAPI Statement Object, which is the node itself. This means that it only sends an 'interacted' event when each question(choice) is answered and then 'completed' when it's done. There are no 'answered' statements.
We will look into this and consider if each question should be a separate object and trigger an 'answered' statement as it seems more appropriate. Also, we will look into if the interacted statement should contain some more data what was interacted. This will, of course, have to be seen in context with how the different LRSes process the statements. But, I agree that it's a bit strange to send the exact same statement multiple times when you are in fact doing different things.
The way I see it: You begin, attempted. You press a button, interacted. You answer a question, answered. You move on to the next question, progressed. And finally you're done, completed.
Thank you for pointing out the issues.
hosais
Thu, 07/28/2016 - 19:48
Permalink
Thank you for your quick and
Thank you for your quick and detail response. Just would like to provide little summary info:
Since it is Single Choice Set in Course presentation, so it is ANSWERED statement.
What should be the result in the example below, brief thought, could be like this??:
attempted Single Choice Set ->
interacted Question 1-> answered Question 1-> -- or maybe should be Single Choice Set.Question 1
progressed Single Choice Set->
interacted Question 2-> answered Question 2->
progressed Single Choice Set->
interacted Question 3-> answered Question 3->
complete Single Choice Set
Ref: a current test result I had with three questions in the set (in course presentation).
answered How to say [inside] in Chinese? | 14 minutes ago (Thu, Jul 28, 2016 5:03 PM)
interacted How to say [inside] in Chinese? | 14 minutes ago (Thu, Jul 28, 2016 5:03 PM)
interacted How to say [inside] in Chinese? | 14 minutes ago (Thu, Jul 28, 2016 5:03 PM)
interacted How to say [inside] in Chinese? | 14 minutes ago (Thu, Jul 28, 2016 5:03 PM)
attempted How to say [inside] in Chinese? | 14 minutes ago (Thu, Jul 28, 2016 5:03 PM)
icc
Fri, 07/29/2016 - 09:32
Permalink
I understand, Thank you! We
I understand, Thank you! We will look into this for the next release.