From the course: xAPI Foundations

Unlock the full course today

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

Correlation under the hood

Correlation under the hood

From the course: xAPI Foundations

Start my 1-month free trial

Correlation under the hood

- [Instructor] Here we see our example page from the previous lesson, correlating two queries pulling information from our LRS about who played what parts of a video and what answer they gave on a corresponding quiz about that video. This is a neat example to show the power of xAPI queries, but is this necessarily a good way to get this information? Well, let's discuss that for a moment. We're going to take a look at the code, and again we're just going to look at this very lightly so we can see and really understand what's going on behind the scenes. So the first thing we do is we set up the first query, and we're looking for anyone who answered the quiz tracker. Then we send that query, we get the list of responses, and one at a time we look at the actor information, what response they gave and when the statement was created. We also look for information like the location of the video where this answer can be found. Now I'm highlighting this, and even though we're talking about code…

Contents