Documenting here solely so that things can be replaced with a sane process.
- Extract from caliper data a subset via jq
cat pr_extract.jsonl | jq -s '[.[] | select(.action=="http://purl.imsglobal.org/vocab/caliper/v1/action#Completed") | {problem_set: .object.isPartOf.name, problem: .object.name, answerCorrect: .generated.extensions.isStudentAnswerCorrect, time: .generated.attempt.duration, actor: .actor.name, start: .generated.attempt.startedAtTime, end: .generated.attempt.endedAtTime}]' > test.json
- This will create a slimmer array from the Caliper jsonl with objects such as
{
"problem_set": "Relative motion",
"problem": "UM Physics 135 Midterm 1 Winter 12 Problem 08",
"answerCorrect": "true",
"time": "PT15S",
"actor": "<actor_name>",
"start": "2017-05-05T04:31:33.000Z",
"end": "2017-05-05T04:31:48.000Z"
}
- Run an anonymizer throught the data and make it available to the js.
- The js files manipulate this anonymzed array and serve the result to an NVD3 chart
Note: need to run a web server to take care of cross origin requests.
A simple one is python -m SimpleHTTPServer 8000