From the course: xAPI Foundations

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

Using extensions

Using extensions

From the course: xAPI Foundations

Start my 1-month free trial

Using extensions

- [Instructor] Extensions can be used to add custom information to your statement to make it better defined and more detailed and this information can be almost anything you want. Extensions can be added to the object, result, or context elements of the statement. Now the odd thing about extensions is that whereas with object and verb IDs where you have a key being ID and the value being a fully qualified URL or IRI, with extensions it's the exact opposite. The key for the extension property must be a fully qualified IRI again almost always a URL. You may have noticed a running theme here by now and the paired value can be just about anything. Maybe a string, integer, real number, even another object, whatever information you need added and as always the URLs do no need to resolve to a working webpage, but it is a best practice. This way someone can look up what the property means and get more information about the values. So let's look at a couple of examples. The first example is…

Contents