Skip to content

Commit

Permalink
fixup! 📝(project) add mandatory statements templates
Browse files Browse the repository at this point in the history
  • Loading branch information
quitterie-lcs committed Apr 20, 2023
1 parent 2cde98a commit 91aef98
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 28 deletions.
4 changes: 4 additions & 0 deletions statements/mandatory/completed.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ The assessment is sent to evaluation or has been evaluated but the user can no l
]
}
},
"result": {
"success": true,
"duration": "PT16.36S"
},
"timestamp": "2016-06-09T15:34:26.887Z"
}
```
Expand Down
20 changes: 8 additions & 12 deletions statements/mandatory/failed.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,30 @@ The user failed an assessment.
}
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/answered"
"id": "http://adlnet.gov/expapi/verbs/failed"
},
"object": {
"id": "http://gaiax.org/xapi/activities/12d4f3f2-58e0-4a42-b3c6-b9b9cd7b0a7c",
"definition": {
"interactionType": "choice"
"type": "http://adlnet.gov/expapi/activities/assessment"
}
},
"context": {
"contextActivities": {
"category": [
{
"id": "http://schema.dases.eu/xapi/profile/assessment",
"id": "https://w3id.org/xapi/assessment",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
}
],
"parent": [
{
"id": "http://gaiax.org/xapi/activities/0f5c4525-8778-4403-8e3e-b75c4feed309",
"definition": {
"type": "http://adlnet.gov/expapi/activities/assessment"
}
}
]
}
},
"result": {
"success": false,
"duration": "PT16.36S"
},
"timestamp": "2016-06-09T15:34:26.887Z"
}
```
Expand All @@ -57,6 +53,6 @@ The user failed an assessment.
## Rules

- `context.contextActivities.category`: INCLUDED, MUST contain an activity with the `https://w3id.org/xapi/assessment` id.
- `result.success`: INCLUDED.
- `result.success`: INCLUDED, MUST be set to `False`.
- `result.duration`: INCLUDED.
- `timestamp`: INCLUDED.
2 changes: 1 addition & 1 deletion statements/mandatory/initialized.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ A moderator has initialized an assessment.
"contextActivities": {
"category": [
{
"id": "http://schema.dases.eu/xapi/profile/assessment",
"id": "https://w3id.org/xapi/assessment",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
Expand Down
7 changes: 6 additions & 1 deletion statements/mandatory/launched.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,17 @@
"contextActivities": {
"category": [
{
"id": "http://schema.dases.eu/xapi/profile/assessment",
"id": "https://w3id.org/xapi/assessment",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
}
]
},
"extensions": {
"context.extensions.https://w3id.org/xapi/cmi5/context/extensions/launchurl": "http://gaiax.org/xapi/activities/launch-url/12d4f3f2-58e0-4a42-b3c6-b9b9cd7b0a7c",
"context.extensions.https://w3id.org/xapi/cmi5/context/extensions/launchmode": "Browse",
"context.extensions.https://w3id.org/xapi/cmi5/context/extensions/moveon": "Completed"
}
},
"timestamp": "2016-06-09T15:34:26.887Z"
Expand Down
22 changes: 9 additions & 13 deletions statements/mandatory/passed.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Description

The user answered passed an assessment.
The user passed an assessment.

## Examples

Expand All @@ -15,34 +15,30 @@ The user answered passed an assessment.
}
},
"verb": {
"id": "http://adlnet.gov/expapi/verbs/answered"
"id": "http://adlnet.gov/expapi/verbs/passed"
},
"object": {
"id": "http://gaiax.org/xapi/activities/12d4f3f2-58e0-4a42-b3c6-b9b9cd7b0a7c",
"definition": {
"interactionType": "choice"
"type": "http://adlnet.gov/expapi/activities/assessment"
}
},
"context": {
"contextActivities": {
"category": [
{
"id": "http://schema.dases.eu/xapi/profile/assessment",
"id": "https://w3id.org/xapi/assessment",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
}
],
"parent": [
{
"id": "http://gaiax.org/xapi/activities/0f5c4525-8778-4403-8e3e-b75c4feed309",
"definition": {
"type": "http://adlnet.gov/expapi/activities/assessment"
}
}
]
}
},
"result": {
"success": true,
"duration": "PT16.36S"
},
"timestamp": "2016-06-09T15:34:26.887Z"
}
```
Expand All @@ -57,6 +53,6 @@ The user answered passed an assessment.
## Rules

- `context.contextActivities.category`: INCLUDED, MUST contain an activity with the `https://w3id.org/xapi/assessment` id.
- `result.success`: INCLUDED.
- `result.success`: INCLUDED, MUST be set to `True`.
- `result.duration`: INCLUDED.
- `timestamp`: INCLUDED.
6 changes: 5 additions & 1 deletion statements/mandatory/terminated.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ A moderator has terminated an assessment.
"contextActivities": {
"category": [
{
"id": "http://schema.dases.eu/xapi/profile/assessment",
"id": "https://w3id.org/xapi/assessment",
"definition": {
"type": "http://adlnet.gov/expapi/activities/profile"
}
}
]
}
},
"result": {
"success": true,
"duration": "PT16.36S"
},
"timestamp": "2016-06-09T15:34:26.887Z"
}
```
Expand Down

0 comments on commit 91aef98

Please sign in to comment.