Common Core & Experience API (xAPI) Example Statements

We wrote a blog post about using Common Core identifiers inside xAPI statements, but we wanted to give you some examples of what these xAPI statements look like. Instead of listing a lot of code examples in a blog post, we put them here.

Since you’re here, you might also be interested in checking out ADL’s statement generator.

xAPI/Common Core Example Statements:

Math Bingo – correctly answered problem:

{
    "id": "6f7fd4eb-e4d6-4bd8-bc98-faae308157bb",
    "actor": {
        "name": "cbfb2a63-7ad7-44d6-8",
        "mbox": "mailto:cbfb2a63-7ad7-44d6-8@abcya.com",
        "objectType": "Agent"
    },
    "verb": {
        "id": "http://adlnet.gov/exapi/verbs/answered",
        "display": {
            "en_US": "answered"
        }
    },
    "result": {
        success”: true,
        response”:”1000”,
        	"extensions": {
        		"http://mymetryx.com/sessionId": "886862614_423"
        	}
    },
    "context": {
        "extensions": {
            "http://www.corestandards.org": {
            	 "primary": {"id" : "http://www.corestandards.org/Math/Content/2/NBT/A/2",
                                    "name" : {"en-US":"Count within 1000"},
                                    "description" : {"en-US":"Count within 1000; skip-count by 5s, 10s, and 100s."}
               }
            }
        },
        "contextActivities": {
            "parent": {
                "id": "http://www.abcya.com/base_ten_bingo.htm",
                "definition": {
                    "name": {
                        "en-US": "Base Ten Bingo"
                    },
                    "description": {
                        "en-US": "Exercises in Base Ten"
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            },
            "grouping": {
                "id": "http://www.abcya.com/base_ten_bingo.htm",
                "definition": {
                    "name": {
                        "en-US": "Base Ten Bingo"
                    },
                    "description": {
                        "en-US": "Exercises in Base Ten"
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            }
        }
    },
    "timestamp": "2013-03-10T03:41:22.788Z",
    "object": {
        "id": "http://www.abcya.com/base_ten_bingo.htm",
        "definition": {
            "name": {
                "en-US": "Base Ten Bingo"
            },
            "description": {
                "en-US": "Exercises in Base Ten"
            },
            "type": "http://adlnet.gov/expapi/activities/cmi.interaction",
           "interactionType": "choice",
           "correctResponsesPattern": [
               "1000"
           ],
           "choices": [
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "5000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "3000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "1000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "2000"
                   }
                {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "6000"
                   }
                {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "12000"
                   }
               }
        },
        "objectType": "Activity"
    }
}

An incorrectly answered problem:

{
    "id": "6f7fd4eb-e4d6-4bd8-bc98-faae308157bb",
    "actor": {
        "name": "cbfb2a63-7ad7-44d6-8",
        "mbox": "mailto:cbfb2a63-7ad7-44d6-8@abcya.com",
        "objectType": "Agent"
    },
    "verb": {
        "id": "http://adlnet.gov/exapi/verbs/answered",
        "display": {
            "en_US": "answered"
        }
    },
    "result": {
        success”: false,
        response”:”5000”,
        	"extensions": {
        		"http://mymetryx.com/sessionId": "886862614_423"
        	}
    },
    "context": {
        "extensions": {
            "http://www.corestandards.org": {
            	 "primary": {"id" : "http://www.corestandards.org/Math/Content/2/NBT/A/2",
                                    "name" : {"en-US":"Count within 1000"},
                                    "description" : {"en-US":"Count within 1000; skip-count by 5s, 10s, and 100s."}
               }
            }
        },
        "contextActivities": {
            "parent": {
                "id": "http://www.abcya.com/base_ten_bingo.htm",
                "definition": {
                    "name": {
                        "en-US": "Base Ten Bingo"
                    },
                    "description": {
                        "en-US": "Exercises in Base Ten"
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            },
            "grouping": {
                "id": "http://www.abcya.com/base_ten_bingo.htm",
                "definition": {
                    "name": {
                        "en-US": "Base Ten Bingo"
                    },
                    "description": {
                        "en-US": "Exercises in Base Ten"
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            }
        }
    },
    "timestamp": "2013-03-10T03:41:22.788Z",
    "object": {
        "id": "http://www.abcya.com/base_ten_bingo.htm",
        "definition": {
            "name": {
                "en-US": "Base Ten Bingo"
            },
            "description": {
                "en-US": "Exercises in Base Ten"
            },
            "type": "http://adlnet.gov/expapi/activities/cmi.interaction",
           "interactionType": "choice",
           "correctResponsesPattern": [
               "1000"
           ],
           "choices": [
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "5000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "3000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "1000"
                   }
               },
               {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "2000"
                   }
                {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "6000"
                   }
                {
                   "id": "http://www.abcya.com/base_ten_bingo.htm",
                   "description": {
                       "en-US": "12000"
                   }
               }
        },
        "objectType": "Activity"
    }

QuickTouch Math statement example:

{
    "id": "e9f54c88-7d59-41c2-84ec-714a10b40ea0",
    "actor": {
        "name": "cbfb2a63-7ad7-44d6-8",
        "mbox": "mailto:cbfb2a63-7ad7-44d6-8@quicktouchmath.com",
        "objectType": "Agent"
    },
    "verb": {
        "id": "http://adlnet.gov/exapi/verbs/answered",
        "display": {
            "en_US": "answered"
        }
    },
    "result": {
        "success": true,
        "response":"0"
    },
    "context": {
        "extensions": {
            "http://www.corestandards.org": {
                "primary": {"id" : "http://corestandards.org/Math/Content/1/OA/C/6",
                                     "name" : {"en-US":"Add and Subtract within 20"},
                                     "description" : {"en-US":"Add and subtract within 20, demonstrating fluency for addition and subtraction within 10."}
                }
            }
        },
        "contextActivities": {
            "parent": {
                "id": "http://quicktouchmath.com/game/sub/",
                "definition": {
                    "name": {
                        "en-US": "Game within a game"
                    },
                    "description": {
                        "en-US": "Game within a game."
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            },
            "grouping": {
                "id": "http://quicktouchmath.com",
                "definition": {
                    "name": {
                        "en-US": "Quick Touch Math"
                    },
                    "description": {
                        "en-US": "Exercises for Math"
                    },
                    "type": "../game"
                },
                "objectType": "Activity"
            }
        }
    },
    "timestamp": "2013-03-10T03:42:14.494Z",
    "object": {
        "id": "http://quicktouchmath.com/game/sub/9-9",
        "definition": {
            "name": {
                "en-US": "Math Interaction"
            },
            "description": {
                "en-US": "Specific interfaction info"
            },
            "type": "http://adlnet.gov/expapi/activities/cmi.interaction",
            "interactionType": "choice",
            "correctResponsesPattern": [
                "0"
            ],
            "choices": [
                {
                    "id": "http://quicktouchmath.com/game/sub/9-9/0",
                    "description": {
                        "en-US": "0"
                    }
                },
                {
                    "id": "http://quicktouchmath.com/game/sub/9-9/3",
                    "description": {
                        "en-US": "3"
                    }
                },
                {
                    "id": "http://quicktouchmath.com/game/sub/9-9/1",
                    "description": {
                        "en-US": "1"
                    }
                },
                {
                    "id": "http://quicktouchmath.com/game/sub/9-9/2",
                    "description": {
                        "en-US": "2"
                    }
                }
            ]
        },
        "objectType": "Activity"
    }
}