Learn More

Community Blog

Blog

xAPI Game Demo Example Part 1

The GBLxAPI community has published a game and learning record store online for live demo use.  A version of the Dig-iT! Games 3 Digits game is available to play for free by anyone wishing to explore how this new method of capturing learning data from games and apps works.  This game is an educational game that teaches math skills while learning the Maya’s unique base 20 number system!  The game incorporates historical artifacts and information on the Maya culture.   

The game demo incorporates the six core vocabulary xAPI context extensions for K-12 and includes context representations to U.S. national standards (Common Core & C3 Framework).  Telemetry events include learning and non-learning activities that capture actions and learning experiences of the the game players.

Let's explore the demo.

Play The xAPI k-12 Learning Game 3-Digits

In the demo game you will be first asked to enter a name that can be real or made up.  We capture the name of a player, also known as an actor, so that you can see your player name in the xAPI statements.  In actual practice you can decide on how an actor name is captured( via login etc) and if you display real personal information or a hash.  Once you are in the game we recommend you do the following activities to so that you can see the types of statements that will get generated but explore as much as you would like.

  1. Click on the Book icon and go through the instructions and background.
  2. Next Start a new game playing at difficulty easy.
  3. Once you have completed level 1 switch the difficulty to medium and play the next level.
  4. After two levels of play you will have a decent data set to review or you can keep playing.

If you would like to see the events being sent as they happen in the game, you can open the LRS in another browser instance and see xAPI statements as they are being sent.  The number of events being captured is not all inclusive.  Our aim with the demo was to find a balance for event collection without getting too deep on click stream data.

Explore the Learning Record Store

To access the LRS please follow these steps.

  1. Enter the default login or using a login you have been provided.
  2. Select the GBLxAPI Demo Organization
  3. Start to explore the tabs highlights in the image below.

(Our community demo server uses the open-source community version of Learning Locker for the xAPI learning record store repository)

 

The demo dashboard includes a collection of simple visualizations for data collecting from the game players.  Explore the visualisations tab and you will see a list of previously built visualization that can be put into an existing or new dashboard.  Source is the next view tab and here you can see event statements as they occurred and filter and sort specific statements and make queries.  Click on the greater than or caret in the  statement list to explore what is being captured in the respective statements.

In the section below we wrap up Part 1 of the xAPI demo series with a review of one statement type; a response to a question answered by a learner.  Stay tuned for our Part 2 article that will discuss Organizing Your Learning Events for xAPI in a K-12 application.

GBLxAPI (xAPI) Statement Result for Question(3-Digits Demo)

This statement below has been generated using the GBLxAPI Unity API with the 3 Digits demo game. The statement incorporates all of the core vocabulary Context Activities(Domain, Subdomain, Focus, Topic, Skill and Action) in the response as well as Common Core and C3 Framework contextual relationships.  It includes a Grade 4 reference for the Grade content level target.

The Actor is Bo with a corresponding hashed ID.

The Verb is “answered” with the corresponding ID of:    http://adlnet.gov/expapi/verbs/answered

The Object is “question” with the corresponding ID of:  http://adlnet.gov/expapi/activities/question

It is also an interaction matching type.  The results are captured showing the activity was completed but was not successful

The context activity includes the K-12 subject areas represented by IDs:

https://gblxapi.org/socialstudies

https://gblxapi.org/math

 

The Results sections show the transparency of the dynamically created math problems.  While capturing the sucess results of the player actions it also provides information regarding the question/problem presented. Other standard representation in xAPI are captured in the statement.

 

K-12 xAPI Statement (Question)

{

  "stored": "2018-08-06T19:12:08.868Z",

  "active": true,

  "completedForwardingQueue": [],

  "failedForwardingLog": [],

  "client": "5b3fa690676c911eb5bea3d3",

  "lrs_id": "5b3fa690676c911eb5bea3d2",

  "completedQueues": [

    "STATEMENT_FORWARDING_QUEUE",

    "STATEMENT_PERSON_QUEUE",

   "STATEMENT_QUERYBUILDERCACHE_QUEUE"

  ],

  "activities": [

    "http://dig-itgames.com/three-digits/activities/question/medium"

  ],

  "hash": "1e8ca07e0d5cc4735bde956810486e304556baa4",

  "agents": [

   "http://dig-itgames.com/|c01c490f5ffff37eb9ecc9f76b5cd81a2102de2f"

  ],

  "statement": {

    "authority": {

      "objectType": "Agent",

      "name": "GBLxAPI",

      "account": {

        "homePage": "http://gblxapi.org",

        "name": "GBLxAPI Demos"

      }

    },

    "stored": "2018-08-06T19:12:08.868Z",

    "context": {

      "extensions": {

        "https://gblxapi.org/c3": [

          {

            "description": {

              "en-US": "Social Studies C3 Standard d2.his.13.6-8"

            },

            "name": {

              "en-US": "d2.his.13.6-8"

            },

            "id": "https://gblxapi.org/c3/d2-his-13-6-8"

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/domain": [

          {

            "name": {

              "en-US": "Number and Operations in Base Ten"

            },

            "id": "https://gblxapi.org/domain/number-operations-base-ten",

            "description": {

              "en-US": "Actor has been presented or interacted in math domain experiences in: Number and Operations in Base Ten"

            }

          },

          {

            "name": {

              "en-US": "History"

            },

            "id": "https://gblxapi.org/domain/history",

            "description": {

              "en-US": "Actor has been presented or interacted in Social Studies domain experiences in: History"

            }

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/topic": [

          {

            "name": {

              "en-US": "Arithmetic"

            },

            "id": "https://gblxapi.org/topic/arithmetic",

            "description": {

              "en-US": "Actor has been presented or interacted in math experiences involving the topic of: Arithmetic"

            }

          }

        ],

        "http://www.corestandards.org/": [

          {

            "description": {

              "en-US": "Common Core Standard MATH.CONTENT.4.NBT.B.4"

            },

            "name": {

              "en-US": "CCSS.MATH.CONTENT.4.NBT.B.4"

            },

            "id": "http://www.corestandards.org/Math/Content/4/NBT/B/4/"

          },

          {

            "description": {

              "en-US": "Common Core Standard MATH.CONTENT.5.NBT.A.1"

            },

            "name": {

              "en-US": "CCSS.MATH.CONTENT.5.NBT.A.1"

            },

            "id": "http://www.corestandards.org/Math/Content/5/NBT/A/1/"

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/skill": [

          {

            "name": {

              "en-US": "Calculation and Computation"

            },

            "id": "https://gblxapi.org/skill/calculation-computation",

            "description": {

              "en-US": "Actor has been presented or interacted in math skills related to: Calculation and Computation"

            }

          },

          {

            "name": {

              "en-US": "Patterns and Relationships"

            },

            "id": "https://gblxapi.org/skill/patterns-relationships",

            "description": {

              "en-US": "Actor has been presented or interacted in math skills related to: Patterns and Relationships"

            }

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/grade": [

          {

            "description": {

              "en-US": "The 4th Grade"

            },

            "name": {

              "en-US": "Grade 4"

            },

            "id": "https://gblxapi.org/grade/4"

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/focus": [

          {

            "name": {

              "en-US": "Addition/Subtraction"

            },

            "id": "https://gblxapi.org/focus/addition-subtraction",

            "description": {

              "en-US": "Actor has been presented or interacted in math experiences involving the focus area of: Addition/Subtraction"

            }

          },

          null,

          {

            "name": {

              "en-US": "Algebraic Thinking"

            },

            "id": "https://gblxapi.org/focus/algebraic-thinking",

            "description": {

              "en-US": "Actor has been presented or interacted in math experiences involving the focus area of: Algebraic Thinking"

            }

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/action": [

          {

            "name": {

              "en-US": "Solve Problems"

            },

            "id": "https://gblxapi.org/action/solve-problems",

            "description": {

              "en-US": "Actor has been presented or interacted in experiences involving: Solve Problems"

            }

          },

          {

            "name": {

              "en-US": "Apply"

            },

            "id": "https://gblxapi.org/action/apply",

            "description": {

              "en-US": "Actor has been presented or interacted in experiences involving: Apply"

            }

          }

        ],

        "https://w3id.org/xapi/gblxapi/extensions/subdomain": [

          {

            "name": {

              "en-US": "Problem Solving"

            },

            "id": "https://gblxapi.org/subdomain/problem-solving",

            "description": {

              "en-US": "Actor has been presented or interacted in experiences involving: Problem Solving"

            }

          }

        ]

      },

      "contextActivities": {

        "category": [

          {

            "id": "https://gblxapi.org/math",

            "objectType": "Activity"

          },

          {

            "id": "https://gblxapi.org/socialstudies",

            "objectType": "Activity"

          }

        ],

        "grouping": [

          {

            "id": "http://dig-itgames.com/",

            "objectType": "Activity"

          }

        ],

        "parent": [

          {

            "definition": {

              "name": {

                "en-US": "Three Digits"

              },

              "type": "https://w3id.org/xapi/seriousgames/activity-types/serious-game"

            },

            "id": "http://dig-itgames.com/three-digits",

            "objectType": "Activity"

          }

        ]

      }

    },

    "actor": {

      "account": {

        "name": "c01c490f5ffff37eb9ecc9f76b5cd81a2102de2f",

        "homePage": "http://dig-itgames.com/"

      },

      "name": "bo",

      "objectType": "Agent"

    },

    "timestamp": "2018-08-06T19:12:08.868Z",

    "version": "1.0.1",

    "id": "d46ff1ca-c399-4800-a4c4-d8a14b364080",

    "result": {

      "duration": "PT2.19S",

      "response": "0[.]0,1[.]1,2[.]0,3[.]0",

      "success": false,

      "completion": true

    },

    "verb": {

      "display": {

        "en-US": "answered"

      },

      "id": "http://adlnet.gov/expapi/verbs/answered"

    },

    "object": {

      "definition": {

        "target": [

          {

            "description": {

              "en": "0[:]19"

            },

            "id": "0"

          },

          {

            "description": {

              "en": "0[:]19"

            },

            "id": "1"

          },

          {

            "description": {

              "en": "0[:]19"

            },

            "id": "2"

          },

          {

            "description": {

              "en": "0[:]19"

            },

            "id": "3"

          }

        ],

        "source": [

          {

            "description": {

              "en": "Ones"

            },

            "id": "0"

          },

          {

            "description": {

              "en": "Twenties"

            },

            "id": "1"

          },

          {

            "description": {

              "en": "Four Hundreds"

            },

            "id": "2"

          },

          {

            "description": {

              "en": "Eight Thousands"

            },

            "id": "3"

          }

        ],

        "correctResponsesPattern": [

          "0[.]6",

          "1[.]17",

          "2[.]0",

          "3[.]0"

        ],

        "interactionType": "matching",

        "description": {

          "en": "346"

        },

        "name": {

          "en": "Three Digits - Question - Medium"

        },

        "type": "http://adlnet.gov/expapi/activities/question"

      },

      "id": "http://dig-itgames.com/three-digits/activities/question/medium",

      "objectType": "Activity"

    }

  },

  "hasGeneratedId": true,

  "deadForwardingQueue": [],

  "voided": false,

  "verbs": [

   "http://adlnet.gov/expapi/verbs/answered"

  ],

  "personaIdentifier": "5b63469ba3ae380d978cc083",

  "processingQueues": [],

  "person": {

    "display": "c01c490f5ffff37eb9ecc9f76b5cd81a2102de2f - http://dig-itgames.com/ (xAPI Account)",

    "_id": "5b63469bef7d0e0f792ccb17"

  },

  "__v": 1,

  "timestamp": "2018-08-06T19:12:08.868Z",

  "relatedActivities": [

   "http://dig-itgames.com/three-digits/activities/question/medium",

   "http://dig-itgames.com/three-digits",

    "http://dig-itgames.com/",

    "https://gblxapi.org/math",

   "https://gblxapi.org/socialstudies"

  ],

  "relatedAgents": [

   "http://dig-itgames.com/|c01c490f5ffff37eb9ecc9f76b5cd81a2102de2f",

    "http://gblxapi.org|GBLxAPI Demos"

  ],

  "organisation": "5ab3ff6134f79e571ac46808",

  "_id": "5b689d886e42110fa2a5ea07",

  "registrations": [],

  "pendingForwardingQueue": []

}

 

STATEMENT ENDS ___________________

 

 

 

 

 

 

 

 

© 2017-2018 Dig-iT! Games LLC