Skip to content

Commit

Permalink
v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mzw committed Jun 7, 2019
0 parents commit a639608
Show file tree
Hide file tree
Showing 170 changed files with 129,690 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**/.idea/*
**/vendor/*
moodle.sql
.vscode/*
learning_locker/data/*
open_lrw/data/*
xapi_stmt_gen/log/*
elcampus_la/xapi_stmt_gen/log/*
superset_db/data/*
metabase/*
**/.DS_Store
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MIT License

Copyright 2019 National Institute of Informatics, Japan.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Learning Analytics as a Service (LAaaS) with Docker

A Docker version of Learning Analytics as a Service (LAaaS)
provided by Research Center for Open Science and Data Platform, National Institute of Informatics, Japan.
16 changes: 16 additions & 0 deletions caliper/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM composer AS builder
WORKDIR /build
COPY composer.json .
RUN composer install --no-dev
RUN composer dumpautoload -o

FROM php:7.3-alpine

RUN apk update && \
apk --no-cache upgrade && \
apk --no-cache add postgresql-dev && \
docker-php-ext-install pdo pdo_pgsql pgsql mbstring

WORKDIR /dump
COPY --from=builder /build/vendor ./vendor
COPY . .
244 changes: 244 additions & 0 deletions caliper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
# Learning Analysis for Moodle
## caliper statement generator
### Statement definitions
#### common defenitions
- agent.id = <MOODLE_URL>/user/<mdl_logstore_standard_log.userid>
- agent.name = <mdl_user.username>
- agent.description = <mdl_user.description>
- eventTime = <mdl_logstore_standard_log.timecreated>(Converted)
- edApp.id = <MOODLE_URL>
- edApp.type = SoftwareApplication

#### Definitions according to <mdl_logstore_standard_log.eventname>
- \core\event\dashboard_viewed
- type = NavigationEvent
- action = Viewed
- object = edApp

- \core\event\course_viewed
- type = NavigationEvent
- action = Viewed
- object.id = <MOODLE_URL>/course/<mdl_logstore_standard_log.objectid>
- object.name = <mdl_course.fullname>

- \core\event\user_loggedin
- type = SessionEvent
- action = LoggedIn
- object = edApp

- \core\event\user_loggedout
- type = SessionEvent
- action = LoggedIn
- object = edApp

- \mdl_assign\event\assessable_submitted
- type = AssignableEvent
- action = Submitted
- object.id = <MOODLE_URL>/mod/assign/<mdl_assign_submission.assignment>
- object.name = <mdl_assign.name>
- object.start = <mdl_assign.allowsubmissionsfromdate>
- object.due = <mdl_assign.duedate>
- generated.id = object.id/attempt/<mdl_assign_submission.attemptnumber>
- generated.count = <mdl_assign_submission.attemptnumber>
- generated.assignee.id = <MOODLE_URL>/user/<mdl_assign_submission.userid>
- generated.assignee.name = <mdl_user.username>
- generated.assignee.description = <mdl_user.description>

- \mdl_assign\event\submission_graded
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/user/<mdl_logstore_standard_log.userid>/attempt/<mdl_assign_grade.attemptnumber>
- object.name = <mdl_assign.intro>
- object.attempt = <mdl_assign_grade.attemptnumber>
- object.start = <mdl_assign.allowsubmissionsfromdate>
- object.due = <mdl_assign.duedate>
- object.assignee.id = <mdl_assign_grade.userid>
- object.assignee.name = <mdl_user.username>
- object.assignee.description = <mdl_user.description>
- generated.id = object.id/result
- generated.max_score = <mdl_assign.grade>
- generated.score = <mdl_assign_graded.grade>
- generated.comment = <mdl_assignfeedback_comment.commenttext>

- \mdl_assign\event\submission_graded
- type = GradedEvent
- action = Graded
- object.id = <MOODLE_URL>/mod/assign/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>


- \mdl_book\event\course_module_viewed
- type = navigationevent
- action = navigatedto
- object.id = <moodle_url>/mod/book/<mdl_logstore_standard_log.objectid>
- object.name = <moodle_url>/<mdl_logstore_standard_log.objecttable.name>
- object.type = eventtype::<module_type>

- \mdl_chat\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/chat/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_choice\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/choice/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_data\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/data/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_facetoface\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/facetoface/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_feedback\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/feedback/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_folder\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/folder/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_forum\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/forum/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_forum\event\subscription_created
- type = ForumEvent
- action = Subscribed
- object.id = <MOODLE_URL>/mod/forum/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_forum\event\subscription_deleted
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/forum/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_forum\event\discuttion_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/forum/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_glossary\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/glossary/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_imscp\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/imscp/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_lesson\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/lesson/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_lti\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/lti/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_page\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/page/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_quiz\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/quiz/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_quiz\event\attempt_started
- type = AssessmentEvent
- action = Started
- object.id = <MOODLE_URL>/mod/quiz/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>
- generated.id = <MOODLE_URL>/mod/attempt/<mdl_quiz_attempts.attempt>

- \mdl_quiz\event\attempt_submitted
- type = AssessmentEvent
- action = Submitted
- object.id = <MOODLE_URL>/mod/quiz/<mdl_logstore_standard_log.objectid>

- \mdl_resource\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/resource/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_scorm\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/scorm/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_survey\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/survey/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_url\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/url/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_wiki\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/wiki/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

- \mdl_workshop\event\course_module_viewed
- type = NavigationEvent
- action = NavigatedTo
- object.id = <MOODLE_URL>/mod/workshop/<mdl_logstore_standard_log.objectid>
- object.name = <MOODLE_URL>/<mdl_logstore_standard_log.objecttable.name>
- object.type = EventType::<module_type>

26 changes: 26 additions & 0 deletions caliper/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"scripts": {
"run": "php src/bin/index.php",
"test": "phpunit --colors=always --bootstrap ./tests/bootstrap.php -v tests/",
"conn-check": "php src/config/db_conn_test.php",
"ext-check": "php src/config/ext_check.php"
},
"autoload": {
"psr-4": {
"udzuki\\": "src"
}
},
"config": {
"process-timeout": 0
},
"require": {
"imsglobal/caliper": "^1.1",
"illuminate/database": "^5.8",
"ext-pdo": "*",
"ext-json": "*",
"monolog/monolog": "^1.24"
},
"require-dev": {
"phpunit/phpunit": "^8.1"
}
}
Loading

0 comments on commit a639608

Please sign in to comment.