xAPI statements from WordPress to Learning Locker

akud's picture

Hi all,

our subject is Italian second language acquisition and we use simple WordPress posts to create our digital learning units (so, no "WordPress LMS" like Learndash, Lifter, etc). Inside every post we have the core texts and H5P interactive contents for learning activities. Here it is: https://sandbox.ital2.org.

From H5P we send xAPI statements to an AWS instance of Learning Locker. We do this by the plugin H5P xAPI (https://github.com/tunapanda/wp-h5p-xapi). It appears to work, but actually it's not updated. Maybe the Grassblade Companion would be a better choice. I don't know...

 

Our real problem is now another, is about tagging these contents.

I know that WP cannot work as an activity provider; only H5P interactive content do. So, we suppose we have to tag them in order to make relevant queries from Learning Locker.

In other words: if "for hyphotesis" WP posts could generate xAPI statements, I could tag them and them query LL starting from those tags. But this is not possible. So I have to tag the single interactive content and make the queries based on them. This is what I thought.

Also, metadata allow to insert description about the contents. By this (second thought), I should be able to extract information by querying into the LRS.

So, I guess I need some help :)

I would need some info or documentation to move further on this aspect.

 
otacke's picture

Hi Akud!

I'm not sure if I fully understand what you mean, so I have a couple of questions :-)

What I think I understood: You want to have some xAPI statement to be triggered when a person views some WordPress post, so the xAPI verb could be something like "viewed" (have not checked if there's something defined for this case already), and the object would be the post.

1) In which part of the xAPI statements do you expect to find the tags? I don't think there's a field for those, so some extension for the context would have to be defined (https://wordpress.org/plugins/wp-experience-api/).

2) Have you tried the plugin WP Experience API (https://wordpress.org/plugins/wp-experience-api/)? It seems to be outdated, but maybe it still works, and the description seems to describe what you need.

Best,

Oliver 

akud's picture

I could be happy tagging single H5P interactive contents instead of WP posts.

Actually, my main point is (was) about using the field "Tags" that I have the ability to use into the H5P backend of WordPress. I supposed that these data could be retrieved (and useful to be retrieved) from Learning Locker.

Thank you, Oliver, for your suggestion about the WP Experience API, though it's very outdated (the one I'm using, H5P xAPI, is also quite ot of date), I'm gonna have a try.

Anyway, my problem is about your first question: I have no idea about where to find the tags into the xAPI statements. I thought I might use those tags to create the queries (if the H5P "objects" have those tags, I thought/guess, they have to be searchable from the LRS).

Best

otacke's picture

Hi Akud!

The tags are not put into the xAPI statements. There would have to be an extension to the xAPI definition and some extra code for H5P core/the plugin to put the tags in there.

Best,

Oliver 

GrassBlade xAPI Companion can be used to send xAPI data from H5P to any LRS. It also generates Posts related xAPI data, for example, when a new post is created or an existing post is updated. So, yes, post specific data can be generated.

Regarding reporting on tags, a better understanding of the requirement is need.

As per the xAPI spec, it has limited fields to filter the data when fetching the data from LRS.