BAO mijnklas xAPI Vocabulary
  • Introduction

    Content_Api.js contains a custom implementation of the TinCan.LRS which overrides the default implementation, thus enabling communication between Content and LMS throug postMessage.

    Content needs to include TinCan-1.0.1.js, Content_Api-0.2.13.js and add a single line of javascript code: var lrs = new ContentApiLrs(); (see figure below) to make it work.

    For a working example click the link below.

    For a working example see the link below.

  • Examples

  • Verbs

    Some kind of description of verbs

    Standard Verbs

    Some kind of description of the standard verbs

    Custom Verbs

    Some kind of description of the custom (bao.mijnklas.nl) verbs

  • Extensions

    Some kind of description of the 'bao.mijnklas.nl/xapi' extensions

    Standard Extensions

    Some kind of description of the standard extensions

    Custom Extensions

    Some kind of description of the custom (bao.mijnklas.nl) extensions


  • JSON Representation:
    The reponds could be one single JSON object or an array with JSON objects. Also an array with 1 JSON object. This depends on the platform implementation
  • Different colors in the JSON Representation give special meaning to that part of the json.

    Optional: May be added for clarity. Bao xApi ignores it if present.

    Removed: Bao xApi has no use for it but TinCan Api requests/requires it. Bao xApi ignores it if present.

    Comment: Comment for clarification of the property. This should not be present in the json representation

    {	
    	"verb": {
    		"id": http://example.com/xapi/verbs/demo",
    		"display": {
    			"nl-NL": "Demo"
    		}
    	},
    	"object": {
    		"id": "http://bao.mijnklas.nl/xapi/demo",
    		"objectType": "Activity",
    		"definition": {
    			"extensions": {
    				"benefit": "Joker"
    			},
    			"correctResponsesPattern": [
    				"400"
    			]
    		}
    	}
    }