xAPI queries allow Learning Record Providers, or Activity Providers, to get statements from the LRS to create a more robust learning experience for the student. Queries can be very easy to craft and send. But there are rules as not all elements of the xAPI statement are exposed for query and there are limits to how you can build your queries. This video describes the steps needed to successfully build a query and retrieve statements from an LRS.
- [Instructor] As a quick refresher,…when you're building your xAPI queries,…you can only query by certain parts of the xAPI statements.…Those are the agent ID, the verb ID,…the activity ID, the statement ID,…and you can query for statements…that came before or after a given timestamp…or even between two timestamps.…You can mix and match as many of those elements…as you'd like, but you can only use each of them once.…So for example, you could not issue a query…for any statements that had one of two different verbs.…
You'd have to issue one query for the first verb ID…and then another query for the second.…If the LRS found any statements that match the query,…it will return an object containing an array of statements.…You can then use a loop to walk through…each of the statements and pull out the data you need.…If you want to query by verb or activity,…those are pretty straightforward.…You would just use the IRIs that are in the ID field.…For example, if you wanted to know all the people…who answered a question, you could query…
- Setting up an LRS in SCORM Cloud or Veracity
- Building an xAPI statement
- Using xAPI extensions
- Sending statements to an LRS
- Recording video plays
- Recording quiz results
- Querying the LRS
- Correlating LRS data for more insights
- Using xAPI for adaptive learning
Skill Level Beginner
Elearning Techniques: Visual Designwith Sally Cox1h 34m Intermediate
What you should know1m 48s
1. Introduction to xAPI
2. Anatomy of xAPI Statements
3. Working with Statements
4. Getting Statements from Your LRS
Next steps2m 19s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.