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
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Building a statement: "I Did This"2m 56s
-
(Locked)
xAPI unique identifiers1m 32s
-
(Locked)
The Actor element4m 6s
-
(Locked)
The Verb element3m 36s
-
(Locked)
Where do xAPI Verbs come from?3m 14s
-
(Locked)
The Object element3m 25s
-
(Locked)
The Result element3m 35s
-
(Locked)
The Context element3m 2s
-
(Locked)
Using extensions3m
-
(Locked)
The Timestamp element2m 28s
-
-
-
-