MERGE: dev ino feat/service-layer

This commit is contained in:
Gabriellvl 2025-03-13 17:42:04 +01:00
commit 6404335040
220 changed files with 12582 additions and 10400 deletions

View file

@ -24,6 +24,14 @@ Een duidelijke, beknopte beschrijving van wat je verwacht dat er gebeurt.
Indien van toepassing, voeg een screenshot toe die het probleem duidelijk maakt.
**Extra context**
Voeg extra context over het probleem toe. Was je ergens bijzonder mee bezig of naar op zoek?
Was je ergens bijzonder mee bezig of naar op zoek? Welke documentatie of links heb je (al) geraadpleegd?
- [ ] Ik heb aan deze issue het juiste label toegekend, afhankelijk van frontend, backend, ...
<!--
## Richtlijnen
Zorg ervoor dat het volgende in orde is voordat je de issue aanmaakt:
- Het is duidelijk waar de bug vandaan komt.
- Ik heb aan deze issue het juiste label toegekend, afhankelijk van frontend, backend, ...
- Ik heb de issue toegekend aan de juiste milestone.
-->

View file

@ -6,7 +6,7 @@ labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
**Is jouw feature request gerelateerd tot een probleem? Beschrijf.**
Een duidelijke, beknopte beschrijving van het probleem. Wat mist er? Wat kan beter?
**Beschrijf de oplossing die je zou willen**
@ -15,4 +15,11 @@ Een duidelijke, beknopte beschrijving van wat je zou willen dat er gebeurt.
**Extra context**
Extra context of screenshots bij de feature.
- [ ] Ik heb aan deze issue het juiste label toegekend, afhankelijk van frontend, backend, ...
<!--
## Richtlijnen
Zorg ervoor dat het volgende in orde is voordat je de issue aanmaakt:
- Ik heb aan deze issue het juiste label toegekend, afhankelijk van frontend, backend, ...
- Ik heb de issue toegekend aan de juiste milestone.
-->

45
.github/workflows/lint-action.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: Lint
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- dev
# Replace pull_request with pull_request_target if you
# plan to use this action with forks, see the Limitations section
pull_request:
branches:
- dev
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
checks: write
contents: write
jobs:
run-linters:
name: Run linters
runs-on: [self-hosted, Linux, X64]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
# ESLint and Prettier must be in `package.json`
- name: Install Node.js dependencies
run: npm ci
- name: Run linters
uses: rkuykendall/lint-action@master
with:
auto_fix: true
eslint: true
eslint_args: '--config eslint.config.ts'
prettier: true
commit_message: 'style: fix linting issues met ${linter}'

742
.prettierignore Normal file
View file

@ -0,0 +1,742 @@
#Ignore .github files
**/.github/**
# ---> Node
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# package-lock.json
backend/package-lock.json
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
# ---> Vue
# gitignore template for Vue.js projects
#
# Recommended template: Node.gitignore
# TODO: where does this rule come from?
docs/_book
# TODO: where does this rule come from?
test/
# ---> JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
# ---> VisualStudio
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
*.sln.docstates
# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
# Mono auto generated files
mono_crash.*
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Ww][Ii][Nn]32/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Ll]ogs/
# Visual Studio 2015/2017 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/
# Visual Studio 2017 auto generated files
Generated\ Files/
# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*
# NUnit
*.VisualState.xml
TestResult.xml
nunit-*.xml
# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c
# Benchmark Results
BenchmarkDotNet.Artifacts/
# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
# ASP.NET Scaffolding
ScaffoldingReadMe.txt
# StyleCop
StyleCopReport.xml
# Files built by Visual Studio
*_i.c
*_p.c
*_h.h
*.ilk
*.meta
*.obj
*.iobj
*.pch
*.pdb
*.ipdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.csproj
*.log
*.tlog
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc
# Chutzpah Test files
_Chutzpah*
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb
# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap
# Visual Studio Trace Files
*.e2e
# TFS 2012 Local Workspace
$tf/
# Guidance Automation Toolkit
*.gpState
# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
# TeamCity is a build add-in
_TeamCity*
# DotCover is a Code Coverage Tool
*.dotCover
# AxoCover is a Code Coverage Tool
.axoCover/*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
coverage*.json
coverage*.xml
coverage*.info
# Visual Studio code coverage results
*.coverage
*.coveragexml
# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*
# MightyMoose
*.mm.*
AutoTest.Net/
# Web workbench (sass)
.sass-cache/
# Installshield output folder
[Ee]xpress/
# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html
# Click-Once directory
publish/
# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# Note: Comment the next line if you want to checkin your web deploy settings,
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj
# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/
# NuGet Packages
*.nupkg
# NuGet Symbol Packages
*.snupkg
# The packages folder can be ignored because of Package Restore
**/[Pp]ackages/*
# except build/, which is used as an MSBuild target.
!**/[Pp]ackages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/[Pp]ackages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets
# Microsoft Azure Build Output
csx/
*.build.csdef
# Microsoft Azure Emulator
ecf/
rcf/
# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx
*.appxbundle
*.appxupload
# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!?*.[Cc]ache/
# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs
# Including strong name files can present a security risk
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
#*.snk
# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/
# RIA/Silverlight projects
Generated_Code/
# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
ServiceFabricBackup/
*.rptproj.bak
# SQL Server files
*.mdf
*.ldf
*.ndf
# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings
*.rptproj.rsuser
*- [Bb]ackup.rdl
*- [Bb]ackup ([0-9]).rdl
*- [Bb]ackup ([0-9][0-9]).rdl
# Microsoft Fakes
FakesAssemblies/
# GhostDoc plugin setting file
*.GhostDoc.xml
# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/
# Visual Studio 6 build log
*.plg
# Visual Studio 6 workspace options file
*.opt
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
*.vbp
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
*.dsw
*.dsp
# Visual Studio 6 technical files
*.ncb
*.aps
# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions
# Paket dependency manager
.paket/paket.exe
paket-files/
# FAKE - F# Make
.fake/
# CodeRush personal settings
.cr/personal
# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
# Tabs Studio
*.tss
# Telerik's JustMock configuration file
*.jmconfig
# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
# OpenCover UI analysis results
OpenCover/
# Azure Stream Analytics local run output
ASALocalRun/
# MSBuild Binary and Structured Log
*.binlog
# NVidia Nsight GPU debugger configuration file
*.nvuser
# MFractors (Xamarin productivity tool) working folder
.mfractor/
# Local History for Visual Studio
.localhistory/
# Visual Studio History (VSHistory) files
.vshistory/
# BeatPulse healthcheck temp database
healthchecksdb
# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/
# Ionide (cross platform F# VS Code tools) working folder
.ionide/
# Fody - auto-generated XML schema
FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
# Windows Installer files from build outputs
*.cab
*.msi
*.msix
*.msm
*.msp
# JetBrains Rider
*.sln.iml
# ---> VisualStudioCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
# ---> macOS
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# ---> Vim
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]
# Session
Session.vim
Sessionx.vim
# Temporary
.netrwhist
*~
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~
# ---> Emacs
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
# directory configuration
.dir-locals.el
# network security
/network-security.data

View file

@ -1,10 +1,10 @@
{
"recommendations": [
"Vue.volar",
"vitest.explorer",
"ms-playwright.playwright",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
]
"recommendations": [
"Vue.volar",
"vitest.explorer",
"ms-playwright.playwright",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode"
]
}

22
.vscode/settings.json vendored
View file

@ -1,13 +1,13 @@
{
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"tsconfig.json": "tsconfig.*.json, env.d.ts",
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}

View file

@ -9,34 +9,43 @@ Figma</a></span>
Projectopgave</a></span>
</p>
<ul align="center" style="list-style-type: none">
<li>Projectleider: Fransisco Van Langenhove (<a href="https://github.com/Gabriellvl">@Gabriellvl</a>)</li>
<li>Technische lead: Tibo De Peuter (<a href="https://github.com/tdpeuter">@tdpeuter</a>)</li>
<li>Systeembeheerder: Timo De Meyst (<a href="https://github.com/kloep1">@kloep1</a>)</li>
<li>Customer relations officer: Adriaan Jacquet (<a href="https://github.com/WhisperinCheetah">@WhisperinCheetah</a>)</li>
</ul>
Dit is de monorepo voor [Dwengo-1](https://sel2-1.ugent.be), een interactief leerplatform waar leerkrachten opdrachten
en lessen kunnen samenstellen hun leerlingen en hun vooruitgang kunnen opvolgen.
## Installatie
Om de applicatie in te stellen voor een productieomgeving, volg
de [installatiehandleiding](https://github.com/SELab-2/Dwengo-1/wiki/Administrator:-Productie-omgeving).
Alternatief kan je één van de volgende methodes gebruiken om de applicatie lokaal te draaien.
### Quick start
1. Installeer Docker en Docker Compose op je systeem (zie [Docker](https://docs.docker.com/get-docker/) en [Docker Compose](https://docs.docker.com/compose/)).
1. Installeer Docker en Docker Compose op je systeem (zie [Docker](https://docs.docker.com/get-docker/)
en [Docker Compose](https://docs.docker.com/compose/)).
2. Clone deze repository.
3. Voer `docker compose up` uit in de root van de repository.
3. In de backend, kopieer `.env.example` (of `.env.development.example`) naar `.env` en pas de variabelen aan waar
nodig.
4. Voer `docker compose up` uit in de root van de repository.
5. Optioneel: Configureer de applicatie aan de hand van
de [configuratiehandleiding](https://github.com/SELab-2/Dwengo-1/wiki/Administrator:-Productie-omgeving#dwengo-1-configuratie).
```bash
docker compose version
git clone https://github.com/SELab-2/Dwengo-1.git
cd Dwengo-1
cd Dwengo-1/backend
cp .env.example .env
# Pas .env aan
nano .env
cd ..
docker compose up
# Configureer de applicatie
```
### Handmatige installatie
Zie de submappen voor de installatie-instructies van de [frontend](./frontend/README.md) en [backend](./backend/README.md).
Zie de submappen voor de installatie-instructies van de [frontend](./frontend/README.md)
en [backend](./backend/README.md).
## Architectuur
@ -46,9 +55,33 @@ De tech-stack bestaat uit:
- **Frontend**: TypeScript + Vue.js + Vuetify
- **Backend**: TypeScript + Node.js + Express.js + TypeORM + PostgreSQL
- **Identity provider**: Keycloak
Voor meer informatie over de keuze van deze tech-stack, zie [designkeuzes](https://github.com/SELab-2/Dwengo-1/wiki/Design-keuzes).
Voor meer informatie over de keuze van deze tech-stack,
zie [designkeuzes](https://github.com/SELab-2/Dwengo-1/wiki/Developer:-Design-keuzes).
## Testen
Voer volgende commando's uit om de <frontend/backend> te testen:
```
npm run test:unit
```
## Bijdragen aan Dwengo-1
Zie [CONTRIBUTING.md](./CONTRIBUTING.md) voor meer informatie over hoe je kan bijdragen aan Dwengo-1.
Deze rocksterren hebben bijgedragen aan Dwengo-1:
| Naam | Functie |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- |
| [<img src="https://github.com/WhisperinCheetah.png" width="100px"/><br/><sub><b>Adriaan Jacquet</b></sub>](https://github.com/WhisperinCheetah) | Backend Lead |
| [<img src="https://github.com/Gabriellvl.png" width="100px"/><br/><sub><b>Francisco Gabriel Van Langenhove</b></sub>](https://github.com/Gabriellvl) | Team Lead |
| [<img src="https://github.com/geraldschmittinger.png" width="100px"/><br/><sub><b>Gerald Schmittinger</b></sub>](https://github.com/geraldschmittinger) | Database Administrator |
| [<img src="https://github.com/joyelle436.png" width="100px"/><br/><sub><b>Joyelle Ndagijimana</b></sub>](https://github.com/joyelle436) | Frontend Lead |
| [<img src="https://github.com/laurejablonski.png" width="100px"/><br><sub><b>Laure Jablonski</b></sub>](https://github.com/laurejablonski) | Documentatie- en Test Lead |
| [<img src="https://github.com/tdpeuter.png" width="100px"/><br/><sub><b>Tibo De Peuter</b></sub>](https://github.com/tdpeuter) | Technische Lead |
| [<img src="https://github.com/kloep1.png" width="100px"/><br/><sub><b>Timo De Meyst</b></sub>](https://github.com/kloep1) | System Administrator |
En in de toekomst misschien jij ook?

BIN
assets/img/keycloak.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View file

@ -4,3 +4,13 @@ DWENGO_DB_PORT=5431
DWENGO_DB_USERNAME=postgres
DWENGO_DB_PASSWORD=postgres
DWENGO_DB_UPDATE=true
DWENGO_AUTH_STUDENT_URL=http://localhost:7080/realms/student
DWENGO_AUTH_STUDENT_CLIENT_ID=dwengo
DWENGO_AUTH_STUDENT_JWKS_ENDPOINT=http://localhost:7080/realms/student/protocol/openid-connect/certs
DWENGO_AUTH_TEACHER_URL=http://localhost:7080/realms/teacher
DWENGO_AUTH_TEACHER_CLIENT_ID=dwengo
DWENGO_AUTH_TEACHER_JWKS_ENDPOINT=http://localhost:7080/realms/teacher/protocol/openid-connect/certs
# Allow Vite dev-server to access the backend (for testing purposes). Don't forget to remove this in production!
DWENGO_CORS_ALLOWED_ORIGINS=http://localhost:5173

View file

@ -1 +1,22 @@
PORT=3000
DWENGO_PORT=3000 # The port the backend will listen on
DWENGO_DB_HOST=domain-or-ip-of-database
DWENGO_DB_PORT=5432
# Change this to the actual credentials of the user Dwengo should use in the backend
DWENGO_DB_USERNAME=postgres
DWENGO_DB_PASSWORD=postgres
# Set this to true when the database scheme needs to be updated. In that case, take a backup first.
DWENGO_DB_UPDATE=false
# Data for the identity provider via which the students authenticate.
DWENGO_AUTH_STUDENT_URL=http://localhost:7080/realms/student
DWENGO_AUTH_STUDENT_CLIENT_ID=dwengo
DWENGO_AUTH_STUDENT_JWKS_ENDPOINT=http://localhost:7080/realms/student/protocol/openid-connect/certs
# Data for the identity provider via which the teachers authenticate.
DWENGO_AUTH_TEACHER_URL=http://localhost:7080/realms/teacher
DWENGO_AUTH_TEACHER_CLIENT_ID=dwengo
DWENGO_AUTH_TEACHER_JWKS_ENDPOINT=http://localhost:7080/realms/teacher/protocol/openid-connect/certs
# LOKI_HOST=http://localhost:3102 # The address of the Loki instance, used for logging

View file

@ -20,3 +20,18 @@ npm run dev
npm run build
npm run start
```
### Tests
Voer volgend commando uit om de unit tests uit te voeren:
```
npm run test:unit
```
## Keycloak configuratie
Tijdens development is het voldoende om gebruik te maken van de keycloak configuratie die automatisch ingeladen wordt.
Voor productie is het ten sterkste aangeraden om keycloak manueel te configureren.
Voor meer informatie, zie de [administrator-handleiding](https://github.com/SELab-2/Dwengo-1/wiki/Administrator:-Productie-omgeving#installatie-en-server-configuratie).

View file

@ -24,320 +24,320 @@ curricula_page:
algorithms:
title: Algorithmen
sub_title: Algorithmen
description: "Schüler der zweiten und dritten Klasse (Sekundarstufe) lernen, wie sie Algorithmen verwenden können, um Probleme zu lösen. Sie lernen, wie sie Algorithmen entwerfen und die Effizienz von Algorithmen analysieren können. Sie lernen auch, wie sie Algorithmen zur Problemlösung einsetzen können."
contact: ""
description: 'Schüler der zweiten und dritten Klasse (Sekundarstufe) lernen, wie sie Algorithmen verwenden können, um Probleme zu lösen. Sie lernen, wie sie Algorithmen entwerfen und die Effizienz von Algorithmen analysieren können. Sie lernen auch, wie sie Algorithmen zur Problemlösung einsetzen können.'
contact: ''
teaser: https://www.youtube.com/embed/2B6gZ9HdQ1Y
basics_ai:
title: Basisprincipes van AI
sub_title: Basisprincipes van AI
description: "Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen."
contact: ""
description: 'Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen.'
contact: ''
kiks:
title: KI und Klima
sub_title: KIKS
description: "Schülerinnen und Schüler der dritten Klasse (SO) erforschen, wie Pflanzen sich über ihre Spaltöffnungen an den Klimawandel anpassen. Dazu zählen sie diese Spaltöffnungen mit künstlicher Intelligenz und Bilderkennung."
contact: ""
description: 'Schülerinnen und Schüler der dritten Klasse (SO) erforschen, wie Pflanzen sich über ihre Spaltöffnungen an den Klimawandel anpassen. Dazu zählen sie diese Spaltöffnungen mit künstlicher Intelligenz und Bilderkennung.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Projektblatt KIKS"
file_info: "Dies ist ein kurzer Überblick über das KIKS-Projekt mit Projektstruktur und -merkmalen."
file_location: "/assets/files/kiks/projectfiche_kiks.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Die Anleitung - auch in gedruckter Version erhältlich"
file_info: "Wir möchten den Lehrern Hintergrundwissen über den Inhalt dieses Projekts vermitteln: den Klimawandel, die Biologie der Spaltöffnungen und die Art und Weise, wie Pflanzen sich über die Spaltöffnungen an den Klimawandel anpassen, die wissenschaftliche Forschung der UGent und des Plantentuin Meise, die Bürgerwissenschaft, was künstliche Intelligenz (KI) ist, die Geschichte von KI, ihre Anwendung und Ethik, die Prinzipien digitaler Bilder, die Mathematik hinter den Algorithmen und die Grundlagen der derzeit am häufigsten verwendeten KI-Techniken. Wir zeigen auch, wie wir mit KIKS im Unterricht gearbeitet haben."
file_location: "/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Ein Schülerkurs"
file_info: "Mit dem Schülerkurs geben wir ein Beispiel für einen möglichen, umfassenden Weg, den ein Lehrer mit den Schülern gehen kann. Der Weg umfasst den Klimawandel, die Biologie der Spaltöffnungen mit einer Mikroskopie-Aufgabe, die Art und Weise, wie Pflanzen sich über die Spaltöffnungen an den Klimawandel anpassen, die wissenschaftliche Forschung der UGent und des Plantentuin Meise, das Sammeln von Daten zur Schulung eines neuronalen Netzwerks, was künstliche Intelligenz (KI) ist, die Geschichte von KI, ihre Anwendung und Ethik, die Prinzipien digitaler Bilder, das Arbeiten mit Convolutional Neural Networks, die Mathematik hinter dem Perceptron-Algorithmus, das lineare und nicht-lineare Klassifizieren von Daten und die Grundlagen des maschinellen Lernens."
file_location: "/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Die Lehrziele"
file_info: "Im Rahmen des KIKS-Projekts können viele Lehrziele erreicht werden. Der Lehrer entscheidet selbst, welche Lehrziele mit dem Projekt in Verbindung gebracht werden. Darüber hinaus bietet das Projekt viele Möglichkeiten, die Schüler aktiv und selbstständig lernen zu lassen und ICT-Kenntnisse zu vermitteln. KIKS kann auch verwendet werden, um eine Forschungsaufgabe zu entwickeln. In den Endzielen und Lehrplänen der verschiedenen Verbände finden sich viele Lehrziele, die KIKS mit Biologie, Geografie und Mathematik verknüpfen."
file_location: "/assets/files/kiks/Leerdoelen-KIKS.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Das Erstellen eines Nagellaktabdrucks eines Blattteils"
file_info: "Um die Anzahl der Spaltöffnungen auf einem Teil eines Blattes einer Pflanze zu kennen, betrachten wir die Blattoberfläche unter dem Mikroskop. Wir können dazu einen Teil der dünnen Cuticula des Blattes entfernen, aber bei einigen Pflanzen gelingt das nicht so gut, zum Beispiel aufgrund der Steifheit des Blattes. Dies kann jedoch aufgefangen werden, indem die gleiche Methode verwendet wird wie die Forscher des Plantentuin Meise, nämlich einen Abdruck eines Teils der Blattoberfläche mit transparentem Nagellack zu machen. Das mikroskopische Bild kann mit einem Smartphone fotografiert werden."
file_location: "https://vimeo.com/467062270"
file_icon_name: "play_arrow"
link_name: "Ansehen"
- file_title: 'Projektblatt KIKS'
file_info: 'Dies ist ein kurzer Überblick über das KIKS-Projekt mit Projektstruktur und -merkmalen.'
file_location: '/assets/files/kiks/projectfiche_kiks.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Die Anleitung - auch in gedruckter Version erhältlich'
file_info: 'Wir möchten den Lehrern Hintergrundwissen über den Inhalt dieses Projekts vermitteln: den Klimawandel, die Biologie der Spaltöffnungen und die Art und Weise, wie Pflanzen sich über die Spaltöffnungen an den Klimawandel anpassen, die wissenschaftliche Forschung der UGent und des Plantentuin Meise, die Bürgerwissenschaft, was künstliche Intelligenz (KI) ist, die Geschichte von KI, ihre Anwendung und Ethik, die Prinzipien digitaler Bilder, die Mathematik hinter den Algorithmen und die Grundlagen der derzeit am häufigsten verwendeten KI-Techniken. Wir zeigen auch, wie wir mit KIKS im Unterricht gearbeitet haben.'
file_location: '/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Ein Schülerkurs'
file_info: 'Mit dem Schülerkurs geben wir ein Beispiel für einen möglichen, umfassenden Weg, den ein Lehrer mit den Schülern gehen kann. Der Weg umfasst den Klimawandel, die Biologie der Spaltöffnungen mit einer Mikroskopie-Aufgabe, die Art und Weise, wie Pflanzen sich über die Spaltöffnungen an den Klimawandel anpassen, die wissenschaftliche Forschung der UGent und des Plantentuin Meise, das Sammeln von Daten zur Schulung eines neuronalen Netzwerks, was künstliche Intelligenz (KI) ist, die Geschichte von KI, ihre Anwendung und Ethik, die Prinzipien digitaler Bilder, das Arbeiten mit Convolutional Neural Networks, die Mathematik hinter dem Perceptron-Algorithmus, das lineare und nicht-lineare Klassifizieren von Daten und die Grundlagen des maschinellen Lernens.'
file_location: '/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Die Lehrziele'
file_info: 'Im Rahmen des KIKS-Projekts können viele Lehrziele erreicht werden. Der Lehrer entscheidet selbst, welche Lehrziele mit dem Projekt in Verbindung gebracht werden. Darüber hinaus bietet das Projekt viele Möglichkeiten, die Schüler aktiv und selbstständig lernen zu lassen und ICT-Kenntnisse zu vermitteln. KIKS kann auch verwendet werden, um eine Forschungsaufgabe zu entwickeln. In den Endzielen und Lehrplänen der verschiedenen Verbände finden sich viele Lehrziele, die KIKS mit Biologie, Geografie und Mathematik verknüpfen.'
file_location: '/assets/files/kiks/Leerdoelen-KIKS.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Das Erstellen eines Nagellaktabdrucks eines Blattteils'
file_info: 'Um die Anzahl der Spaltöffnungen auf einem Teil eines Blattes einer Pflanze zu kennen, betrachten wir die Blattoberfläche unter dem Mikroskop. Wir können dazu einen Teil der dünnen Cuticula des Blattes entfernen, aber bei einigen Pflanzen gelingt das nicht so gut, zum Beispiel aufgrund der Steifheit des Blattes. Dies kann jedoch aufgefangen werden, indem die gleiche Methode verwendet wird wie die Forscher des Plantentuin Meise, nämlich einen Abdruck eines Teils der Blattoberfläche mit transparentem Nagellack zu machen. Das mikroskopische Bild kann mit einem Smartphone fotografiert werden.'
file_location: 'https://vimeo.com/467062270'
file_icon_name: 'play_arrow'
link_name: 'Ansehen'
socialrobot:
title: Sozialer Roboter
sub_title: Robotik im Klassenzimmer
description: "Während Schülerinnen und Schüler der ersten Klasse (SO) einen sozialen Roboter basteln und programmieren, lernen sie komplexe Probleme durch computational thinking zu lösen. Auf spielerische Weise arbeiten sie an den neuen Endzielen für digitale Kompetenzen."
description: 'Während Schülerinnen und Schüler der ersten Klasse (SO) einen sozialen Roboter basteln und programmieren, lernen sie komplexe Probleme durch computational thinking zu lösen. Auf spielerische Weise arbeiten sie an den neuen Endzielen für digitale Kompetenzen.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels wenden unter Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Projektblatt Sozialer Roboter"
- file_title: 'Projektblatt Sozialer Roboter'
file_info: "Dies ist ein kurzer Überblick über das Projekt 'Sozialer Roboter' mit Projektstruktur und -merkmalen."
file_location: "/assets/files/socialrobot/projectfiche_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Collage sozialer Roboter"
file_info: "Die Roboter auf diesem Foto sind Arbeiten von Schülern der ersten Klasse der Sekundarstufe oder Prototypen."
file_location: "/assets/files/socialrobot/collage.png"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/projectfiche_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Collage sozialer Roboter'
file_info: 'Die Roboter auf diesem Foto sind Arbeiten von Schülern der ersten Klasse der Sekundarstufe oder Prototypen.'
file_location: '/assets/files/socialrobot/collage.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Bausatz für das 'Sozialer Roboter'-Projekt"
file_info: "Möchten Sie, dass Ihre Schülerinnen und Schüler auch einen sozialen Roboter entwerfen und bauen? Das geht mit dem Bausatz von Dwengo vzw. Auf der Abbildung sehen Sie die aktuelle Zusammensetzung des Bausatzes. Interessiert? Kontaktieren Sie uns per E-Mail oder finden Sie weitere Informationen auf dieser Projektseite."
file_location: "/assets/files/socialrobot/constructiekit_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Vom Projekt zu den Endzielen"
file_info: 'Möchten Sie, dass Ihre Schülerinnen und Schüler auch einen sozialen Roboter entwerfen und bauen? Das geht mit dem Bausatz von Dwengo vzw. Auf der Abbildung sehen Sie die aktuelle Zusammensetzung des Bausatzes. Interessiert? Kontaktieren Sie uns per E-Mail oder finden Sie weitere Informationen auf dieser Projektseite.'
file_location: '/assets/files/socialrobot/constructiekit_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Vom Projekt zu den Endzielen'
file_info: "Die Endziele, an denen gearbeitet werden kann, werden mit den verschiedenen Phasen des Projekts 'Sozialer Roboter' verknüpft."
file_location: "/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotionsmaschine (unvollständig) - Computational Thinking (unplugged Aktivität)"
file_info: "Unplugged Aktivität"
file_location: "/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotionsmaschine (Aufgabe) - Computational Thinking (unplugged Aktivität)"
file_info: "Unplugged Aktivität"
file_location: "/assets/files/socialrobot/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotionsmaschine (vollständig) - Computational Thinking (unplugged Aktivität)"
file_info: "Unplugged Aktivität"
file_location: "/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotionsmaschine mit LED-Matrix - Computational Thinking (unplugged Aktivität)"
file_info: "Unplugged Aktivität"
file_location: "/assets/files/socialrobot/emotiemachine_matrices_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Lehrerhandbuch"
file_info: "Die gebündelten Handbücher, in denen die Verwendung des Dwenguino und der Sensoren und Aktuatoren erklärt wird."
file_location: "/assets/files/socialrobot/ficheboekje_lkn.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Handbücher für Schülerinnen und Schüler"
file_info: "In diesen Handbüchern wird die Verwendung des Dwenguino und der Sensoren und Aktuatoren erklärt."
file_location: "/assets/files/socialrobot/fichesSocialeRobot_lln.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Erstelle ein Gesicht - Computational Thinking (unplugged Aktivität)"
file_info: "Unplugged Aktivität"
file_location: "/assets/files/socialrobot/maakeengezicht_activiteit.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Aufgaben der Übungen im MOOC"
file_info: "Eine Übersicht über die Programmieraufgaben im MOOC."
file_location: "/assets/files/socialrobot/Opgaven_MOOC.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotionsmaschine (unvollständig) - Computational Thinking (unplugged Aktivität)'
file_info: 'Unplugged Aktivität'
file_location: '/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotionsmaschine (Aufgabe) - Computational Thinking (unplugged Aktivität)'
file_info: 'Unplugged Aktivität'
file_location: '/assets/files/socialrobot/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotionsmaschine (vollständig) - Computational Thinking (unplugged Aktivität)'
file_info: 'Unplugged Aktivität'
file_location: '/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotionsmaschine mit LED-Matrix - Computational Thinking (unplugged Aktivität)'
file_info: 'Unplugged Aktivität'
file_location: '/assets/files/socialrobot/emotiemachine_matrices_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Lehrerhandbuch'
file_info: 'Die gebündelten Handbücher, in denen die Verwendung des Dwenguino und der Sensoren und Aktuatoren erklärt wird.'
file_location: '/assets/files/socialrobot/ficheboekje_lkn.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Handbücher für Schülerinnen und Schüler'
file_info: 'In diesen Handbüchern wird die Verwendung des Dwenguino und der Sensoren und Aktuatoren erklärt.'
file_location: '/assets/files/socialrobot/fichesSocialeRobot_lln.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Erstelle ein Gesicht - Computational Thinking (unplugged Aktivität)'
file_info: 'Unplugged Aktivität'
file_location: '/assets/files/socialrobot/maakeengezicht_activiteit.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Aufgaben der Übungen im MOOC'
file_info: 'Eine Übersicht über die Programmieraufgaben im MOOC.'
file_location: '/assets/files/socialrobot/Opgaven_MOOC.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Poster 'Sozialer Roboter'-Projekt"
file_info: "Das Poster zeigt die verschiedenen Aspekte des Projekts."
file_location: "/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'Das Poster zeigt die verschiedenen Aspekte des Projekts.'
file_location: '/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Handbuch 'Hallo Roboter!'"
file_info: "Mit diesem Lehrbuch bringen Sie Ihren eigenen sozialen Roboter zum Leben."
file_location: "/assets/files/socialrobot/handleiding_hallo_robot.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'Mit diesem Lehrbuch bringen Sie Ihren eigenen sozialen Roboter zum Leben.'
file_location: '/assets/files/socialrobot/handleiding_hallo_robot.pdf'
file_icon_name: 'description'
link_name: 'Download'
chatbot:
title: Sprachtechnologie in der Schule
sub_title: Mit einem Chatbot arbeiten
description: "Wo Sprache und Technologie aufeinandertreffen, entsteht das Gebiet des Natural Language Processing. Kann ein Computer Texte verstehen, übersetzen oder sogar schreiben? Kann ein Computer Emotionen erkennen? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) lernen in diesem Paket alles darüber."
description: 'Wo Sprache und Technologie aufeinandertreffen, entsteht das Gebiet des Natural Language Processing. Kann ein Computer Texte verstehen, übersetzen oder sogar schreiben? Kann ein Computer Emotionen erkennen? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) lernen in diesem Paket alles darüber.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels wenden unter Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Projektblatt Chatbot"
file_info: "Dies ist ein kurzer Überblick über das Chatbot-Projekt mit Projektstruktur und -merkmalen."
file_location: "/assets/files/chatbot/projectfiche_chatbot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Chatbots"
file_info: "In diesem brAInfood - für Jugendliche konzipiert - gibt das Zentrum für Daten & Gesellschaft weitere Informationen zu Chatbots. Das brAInfood enthält eine fiktive Geschichte über Lotte, die mit einem Chatbot spricht und vermutlich Informationen über sie an Unternehmen weitergibt. Es werden auch einige Punkte zu Chatbots erläutert sowie einige Tipps für Jugendliche, um ihre (personenbezogenen) Daten besser zu schützen. Auf diese Weise möchten wir Jugendliche für die Funktionsweise von Chatbots sensibilisieren und sie dazu anregen, über die gesammelten Daten nachzudenken."
file_location: "/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Personalisierte Nachrichten"
file_info: "In diesem brAInfood des Zentrums für Daten & Gesellschaft werden Tipps gegeben, wie Sie die Kontrolle über Ihren Nachrichten-Feed behalten können."
file_location: "/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Projektblatt Chatbot'
file_info: 'Dies ist ein kurzer Überblick über das Chatbot-Projekt mit Projektstruktur und -merkmalen.'
file_location: '/assets/files/chatbot/projectfiche_chatbot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Chatbots'
file_info: 'In diesem brAInfood - für Jugendliche konzipiert - gibt das Zentrum für Daten & Gesellschaft weitere Informationen zu Chatbots. Das brAInfood enthält eine fiktive Geschichte über Lotte, die mit einem Chatbot spricht und vermutlich Informationen über sie an Unternehmen weitergibt. Es werden auch einige Punkte zu Chatbots erläutert sowie einige Tipps für Jugendliche, um ihre (personenbezogenen) Daten besser zu schützen. Auf diese Weise möchten wir Jugendliche für die Funktionsweise von Chatbots sensibilisieren und sie dazu anregen, über die gesammelten Daten nachzudenken.'
file_location: '/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Personalisierte Nachrichten'
file_info: 'In diesem brAInfood des Zentrums für Daten & Gesellschaft werden Tipps gegeben, wie Sie die Kontrolle über Ihren Nachrichten-Feed behalten können.'
file_location: '/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Handbuch 'Chatbot' - Auch in gedruckter Form erhältlich"
file_info: "Lehrkräfte erhalten über dieses Handbuch ausreichend Hintergrundinformationen, um mit (einem Teil des) Projekts 'Chatbot' im Klassenzimmer zu arbeiten. Das Buch behandelt verschiedene Aspekte der Sprachtechnologie, wie die Geschichte der künstlichen Intelligenz, ethische Aspekte, Sentimentanalyse und Cybermobbingerkennung, Chatbots, sprechende digitale Assistenten und Autorenerkennung. Es wird auch auf die STEM-Endziele sowie die Endziele zu digitaler Kompetenz und Medienkompetenz eingegangen."
file_location: "/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Improbotics - Lehrermappe - Lehrerfassung"
file_info: "In der Theateraufführung Improbotics improvisiert ein sozialer Roboter in den Szenen mit. In der Mappe für Lehrkräfte finden Sie Informationen zu den verwendeten Technologien."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Improbotics - Lehrermappe - Schülerinnen und Schüler"
file_info: "In der Theateraufführung Improbotics improvisiert ein sozialer Roboter in den Szenen mit. In der Mappe finden Sie Informationen zu den verwendeten Technologien."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Improbotics - Lehrermappe - Lehrerfassung'
file_info: 'In der Theateraufführung Improbotics improvisiert ein sozialer Roboter in den Szenen mit. In der Mappe für Lehrkräfte finden Sie Informationen zu den verwendeten Technologien.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Improbotics - Lehrermappe - Schülerinnen und Schüler'
file_info: 'In der Theateraufführung Improbotics improvisiert ein sozialer Roboter in den Szenen mit. In der Mappe finden Sie Informationen zu den verwendeten Technologien.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf'
file_icon_name: 'description'
link_name: 'Download'
care:
title: KI im Gesundheitswesen
sub_title: KI-Systeme, die im Gesundheitswesen helfen
description: "Krankenhäuser machen bereits heute Gebrauch von künstlicher Intelligenz. Schülerinnen und Schüler der zweiten und dritten Klasse (SO) entdecken, welche Systeme existieren und wie sie Ärzte bei Entscheidungen unterstützen. Auf diese Weise lernen die Schülerinnen und Schüler die Prinzipien des Entscheidungsbaums, einer weit verbreiteten Technik im maschinellen Lernen."
contact: ""
description: 'Krankenhäuser machen bereits heute Gebrauch von künstlicher Intelligenz. Schülerinnen und Schüler der zweiten und dritten Klasse (SO) entdecken, welche Systeme existieren und wie sie Ärzte bei Entscheidungen unterstützen. Auf diese Weise lernen die Schülerinnen und Schüler die Prinzipien des Entscheidungsbaums, einer weit verbreiteten Technik im maschinellen Lernen.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Projektblatt KI im Gesundheitswesen"
file_info: "Dies ist ein kurzer Überblick über das Projekt KI im Gesundheitswesen mit Projektstruktur und -merkmalen."
file_location: "/assets/files/care/projectfiche_aiindezorg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Sprouts"
- file_title: 'Projektblatt KI im Gesundheitswesen'
file_info: 'Dies ist ein kurzer Überblick über das Projekt KI im Gesundheitswesen mit Projektstruktur und -merkmalen.'
file_location: '/assets/files/care/projectfiche_aiindezorg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Sprouts'
file_info: "Ein Spiel zur Einführung in 'Graphen'."
file_location: "/assets/files/care/Sprouts.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Erklärung zu Übungen mit Graphen aus dem Schülerkurs"
file_info: "Welche Figuren repräsentieren denselben Graphen? Eine formalere Methode."
file_location: "/assets/files/care/dezelfdegraafFormeel.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Erklärung zu Übungen mit Graphen aus dem Schülerkurs"
file_info: "Welche Figuren repräsentieren denselben Graphen? Eine Methode mit Farben."
file_location: "/assets/files/care/dezelfdeGraaf.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Der Schülerkurs - Ziel Durchfluss"
file_info: "Schülerkurs"
file_location: "/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Kartenset - Auch in gedruckter Form erhältlich"
file_info: "Mit diesem Kartenset können Lehrer die Schüler über ethische Aspekte neuer Technologien nachdenken lassen. Wie steht es um die Privatsphäre? Werden soziale Kontakte beeinträchtigt? Welche Technologien werden begeistert aufgenommen? Was ist nicht wünschenswert? Sind die neuen Technologien für alle erschwinglich?"
file_location: "/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Anleitung für das Kartenset"
file_info: "Diese Anleitung bietet zusätzliche Erläuterungen zum Kartenset."
file_location: "/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/Sprouts.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Erklärung zu Übungen mit Graphen aus dem Schülerkurs'
file_info: 'Welche Figuren repräsentieren denselben Graphen? Eine formalere Methode.'
file_location: '/assets/files/care/dezelfdegraafFormeel.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Erklärung zu Übungen mit Graphen aus dem Schülerkurs'
file_info: 'Welche Figuren repräsentieren denselben Graphen? Eine Methode mit Farben.'
file_location: '/assets/files/care/dezelfdeGraaf.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Der Schülerkurs - Ziel Durchfluss'
file_info: 'Schülerkurs'
file_location: '/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Kartenset - Auch in gedruckter Form erhältlich'
file_info: 'Mit diesem Kartenset können Lehrer die Schüler über ethische Aspekte neuer Technologien nachdenken lassen. Wie steht es um die Privatsphäre? Werden soziale Kontakte beeinträchtigt? Welche Technologien werden begeistert aufgenommen? Was ist nicht wünschenswert? Sind die neuen Technologien für alle erschwinglich?'
file_location: '/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Anleitung für das Kartenset'
file_info: 'Diese Anleitung bietet zusätzliche Erläuterungen zum Kartenset.'
file_location: '/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Entscheidungsbaum 'mBrAIn'-Projekt in nicht kompakter Form"
file_info: "Im Forschungsprojekt 'mBrain', das die Entwicklung einer App zum Vorhersagen eines Migräneanfalls zum Ziel hat, wurde ein Entscheidungsbaum erstellt. Mit diesem Entscheidungsbaum wird ein Problem der binären Klassifikation angegangen: Es gibt nur zwei Klassen: 'Migräne' und 'Keine Migräne'. (Quellen: Femke Ongenae. (2021), UGent; Van Hoecke, S., Ongenae, F., Paemeleire, K., & Vandenbussche, N. (2020). App muss Kopfschmerzen vorhersagen. EOS Wissenschaftsspezial, Technologie und Gesundheit, 25.) Wir haben die Form dieses Entscheidungsbaums in einen binären Entscheidungsbaum umgewandelt, um zu zeigen, dass diese Form nicht immer benutzerfreundlich ist. Weitere Informationen finden Sie im vierten Kapitel des Schülerkurses dieses Projekts."
file_location: "/assets/files/care/MBrainBeslissingsboom.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Suche nach Sprache - Computerdenken (unplugged Aktivität)"
file_info: "Das Locked-In-Syndrom ist eine der schlimmsten medizinischen Erkrankungen. Man ist vollständig gelähmt, außer dass man vielleicht noch mit einem Auge blinzeln kann. Der intelligente Geist ist in einem nutzlosen Körper eingesperrt: Man kann alles fühlen, aber nicht kommunizieren. Es kann jedem passieren, aus dem Nichts, als Folge eines Schlaganfalls. Wenn Sie Menschen mit dem Locked-In-Syndrom helfen möchten, ist es besser, Arzt oder Krankenschwester zu werden? Oder kann man als Informatiker auch helfen?"
file_location: "/assets/files/care/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/MBrainBeslissingsboom.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Suche nach Sprache - Computerdenken (unplugged Aktivität)'
file_info: 'Das Locked-In-Syndrom ist eine der schlimmsten medizinischen Erkrankungen. Man ist vollständig gelähmt, außer dass man vielleicht noch mit einem Auge blinzeln kann. Der intelligente Geist ist in einem nutzlosen Körper eingesperrt: Man kann alles fühlen, aber nicht kommunizieren. Es kann jedem passieren, aus dem Nichts, als Folge eines Schlaganfalls. Wenn Sie Menschen mit dem Locked-In-Syndrom helfen möchten, ist es besser, Arzt oder Krankenschwester zu werden? Oder kann man als Informatiker auch helfen?'
file_location: '/assets/files/care/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
stem:
title: Python in MINT
sub_title: Datavisualisierungen mit Python
description: "In diesem Paket lernen Sie, komplexe Probleme einfacher und schneller mit der Programmiersprache Python zu lösen. Programmieren kann nämlich eine verbindende Rolle zwischen Wissenschaft, Technik, Design und angewandter Mathematik spielen. Kurz gesagt, dank Python holen wir das Beste aus MINT heraus."
description: 'In diesem Paket lernen Sie, komplexe Probleme einfacher und schneller mit der Programmiersprache Python zu lösen. Programmieren kann nämlich eine verbindende Rolle zwischen Wissenschaft, Technik, Design und angewandter Mathematik spielen. Kurz gesagt, dank Python holen wir das Beste aus MINT heraus.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
agriculture:
title: KI in der Landwirtschaft
sub_title: KI in der Landwirtschaft
description: "Verfaulte Tomaten während der Ernte entfernen? Künstliche Intelligenz kann dabei helfen. Aber wie? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) setzen KI ein. Vielleicht kann ein vibrierendes Laufband das System noch verbessern?"
description: 'Verfaulte Tomaten während der Ernte entfernen? Künstliche Intelligenz kann dabei helfen. Aber wie? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) setzen KI ein. Vielleicht kann ein vibrierendes Laufband das System noch verbessern?'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Design"
file_info: "Design des Laufbands"
file_location: "/assets/files/art/Transportband_InnoVET_RCH.zip"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Design'
file_info: 'Design des Laufbands'
file_location: '/assets/files/art/Transportband_InnoVET_RCH.zip'
file_icon_name: 'description'
link_name: 'Download'
art:
title: KI in der Kunst
sub_title: Zeichenroboter im Unterricht
description: "Können wir Kunst mit künstlicher Intelligenz schaffen? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) setzen sich kreativ mit KI auseinander und reflektieren über das Ergebnis. Ist das Kunst? Sie entdecken auch, wie KI unser kulturelles Erbe schützen kann."
contact: ""
description: 'Können wir Kunst mit künstlicher Intelligenz schaffen? Schülerinnen und Schüler der zweiten und dritten Klasse (SO) setzen sich kreativ mit KI auseinander und reflektieren über das Ergebnis. Ist das Kunst? Sie entdecken auch, wie KI unser kulturelles Erbe schützen kann.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
wegostem:
title: WeGoSTEM
sub_title: Zeichenroboter im Unterricht
description: "Wir fordern Kinder der dritten Klasse (GS) heraus, einen zeichnenden Kunstroboter zu programmieren. Spielerisch lernen die Kinder viele MINT-Fähigkeiten, von Technik bis zum algorithmischen Denken."
description: 'Wir fordern Kinder der dritten Klasse (GS) heraus, einen zeichnenden Kunstroboter zu programmieren. Spielerisch lernen die Kinder viele MINT-Fähigkeiten, von Technik bis zum algorithmischen Denken.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
computational_thinking:
title: Algorithmisches Denken
sub_title: Algorithmisches Denken im Unterricht
description: "Wie können wir komplexe Probleme mithilfe eines Computers lösen? Dank algorithmischem Denken! Das können Sie durch verschiedene Aktivitäten mit oder ohne Computer lernen. Wir helfen Ihnen gerne auf dem Weg."
description: 'Wie können wir komplexe Probleme mithilfe eines Computers lösen? Dank algorithmischem Denken! Das können Sie durch verschiedene Aktivitäten mit oder ohne Computer lernen. Wir helfen Ihnen gerne auf dem Weg.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Konzepte und Ansätze des algorithmischen Denkens"
file_info: "Poster"
file_location: "/assets/files/computational_thinking/CDposterDwengo2.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Erklärung der vier Konzepte des algorithmischen Denkens"
file_info: "Präsentation über die vier Konzepte des algorithmischen Denkens: Dekomposition, Mustererkennung, Abstraktion und Algorithmus. Sie können die PDF herunterladen > öffnen > präsentieren über CTRL-L und mit den Pfeiltasten navigieren."
file_location: "/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Konzepte und Prinzipien"
file_info: "Übersicht"
file_location: "/assets/files/computational_thinking/Icoontjes.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Emotionsmaschine (Aufgabe)"
file_info: "Wie können Sie Emotionen bei einem Roboter fördern?"
file_location: "/assets/files/computational_thinking/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Emotionsmaschine"
file_info: "Wie können Sie Emotionen bei einem Roboter fördern?"
file_location: "/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Farben nach Zahlen"
- file_title: 'Konzepte und Ansätze des algorithmischen Denkens'
file_info: 'Poster'
file_location: '/assets/files/computational_thinking/CDposterDwengo2.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Erklärung der vier Konzepte des algorithmischen Denkens'
file_info: 'Präsentation über die vier Konzepte des algorithmischen Denkens: Dekomposition, Mustererkennung, Abstraktion und Algorithmus. Sie können die PDF herunterladen > öffnen > präsentieren über CTRL-L und mit den Pfeiltasten navigieren.'
file_location: '/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Konzepte und Prinzipien'
file_info: 'Übersicht'
file_location: '/assets/files/computational_thinking/Icoontjes.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Emotionsmaschine (Aufgabe)'
file_info: 'Wie können Sie Emotionen bei einem Roboter fördern?'
file_location: '/assets/files/computational_thinking/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Emotionsmaschine'
file_info: 'Wie können Sie Emotionen bei einem Roboter fördern?'
file_location: '/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Farben nach Zahlen'
file_info: "Bilder können auf verschiedene Weisen dargestellt werden. Bei diesem Farben-nach-Zahlen-Rätsel müssen Sie ein Bild rekonstruieren, indem Sie die gegebene Liste von Zahlen verwenden. Diese Liste sagt Ihnen, welche Farbe Sie jedem Quadrat ('Pixel') zuordnen."
file_location: "/assets/files/computational_thinking/kleurenopnummer1.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Ein menschliches Computernetzwerk"
file_info: "In dieser Aktivität lernen die Schülerinnen und Schüler, wie die Datenübertragung im Internet funktioniert. Computer, Smartphones und andere Geräte, die über das Internet miteinander verbunden sind, können kommunizieren. Um sich gegenseitig zu verstehen, muss diese Kommunikation nach bestimmten Regeln erfolgen. Diese Regeln nennen wir Protokoll."
file_location: "/assets/files/computational_thinking/menselijkComputernetwerk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Komprimierung"
file_info: "Um Bilder über Netzwerke zu senden, möchten wir die Informationen mit möglichst wenig Daten darstellen. Hier kommt die Komprimierung ins Spiel. Mit Hilfe von Algorithmen werden Bilder mit möglichst wenigen Zahlen dargestellt, aber so, dass Sie das ursprüngliche Bild immer noch wiederherstellen können. Andere Algorithmen stellen das ursprüngliche Bild wieder her, wenn die Informationen ihr Ziel erreicht haben."
file_location: "/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Programmieren Sie einmal einen Menschen"
file_info: "Computer können nicht interpretieren und führen daher buchstäblich jede Anweisung aus, die Sie ihnen geben. Die Herausforderung für den Programmierer besteht darin, Probleme in kleine, vom Computer ausführbare Schritte zu zerlegen und dem Computer die Anweisungen auf die richtige Weise zu geben."
file_location: "/assets/files/computational_thinking/programmeerEensEenMens.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged-Aktivität - Suche nach Sprache"
file_info: "Das Locked-In-Syndrom ist eine der schlimmsten medizinischen Erkrankungen. Sie sind vollständig gelähmt, außer dass Sie vielleicht noch mit einem Auge blinzeln können. Ihr intelligenter Geist ist in einem nutzlosen Körper gefangen: Sie können alles fühlen, aber nicht kommunizieren. Es kann jedem passieren, aus dem Nichts, als Folge eines Schlaganfalls. Wenn Sie Menschen mit dem Locked-In-Syndrom helfen möchten, werden Sie am besten Arzt oder Krankenschwester? Oder kann Ihnen auch ein Informatiker helfen?"
file_location: "/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/computational_thinking/kleurenopnummer1.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Ein menschliches Computernetzwerk'
file_info: 'In dieser Aktivität lernen die Schülerinnen und Schüler, wie die Datenübertragung im Internet funktioniert. Computer, Smartphones und andere Geräte, die über das Internet miteinander verbunden sind, können kommunizieren. Um sich gegenseitig zu verstehen, muss diese Kommunikation nach bestimmten Regeln erfolgen. Diese Regeln nennen wir Protokoll.'
file_location: '/assets/files/computational_thinking/menselijkComputernetwerk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Komprimierung'
file_info: 'Um Bilder über Netzwerke zu senden, möchten wir die Informationen mit möglichst wenig Daten darstellen. Hier kommt die Komprimierung ins Spiel. Mit Hilfe von Algorithmen werden Bilder mit möglichst wenigen Zahlen dargestellt, aber so, dass Sie das ursprüngliche Bild immer noch wiederherstellen können. Andere Algorithmen stellen das ursprüngliche Bild wieder her, wenn die Informationen ihr Ziel erreicht haben.'
file_location: '/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Programmieren Sie einmal einen Menschen'
file_info: 'Computer können nicht interpretieren und führen daher buchstäblich jede Anweisung aus, die Sie ihnen geben. Die Herausforderung für den Programmierer besteht darin, Probleme in kleine, vom Computer ausführbare Schritte zu zerlegen und dem Computer die Anweisungen auf die richtige Weise zu geben.'
file_location: '/assets/files/computational_thinking/programmeerEensEenMens.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged-Aktivität - Suche nach Sprache'
file_info: 'Das Locked-In-Syndrom ist eine der schlimmsten medizinischen Erkrankungen. Sie sind vollständig gelähmt, außer dass Sie vielleicht noch mit einem Auge blinzeln können. Ihr intelligenter Geist ist in einem nutzlosen Körper gefangen: Sie können alles fühlen, aber nicht kommunizieren. Es kann jedem passieren, aus dem Nichts, als Folge eines Schlaganfalls. Wenn Sie Menschen mit dem Locked-In-Syndrom helfen möchten, werden Sie am besten Arzt oder Krankenschwester? Oder kann Ihnen auch ein Informatiker helfen?'
file_location: '/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
math_with_python:
title: Python im Mathematikunterricht
sub_title: Python in der Mathematik
description: "Die Programmiersprache Python bietet interessante Möglichkeiten, den Mathematikunterricht zu bereichern. Von der Pythagoras-Theorie bis zur Erstellung eigener Grafiken, digitalen Bildverarbeitung und linearer Regression wird alles mit Python klarer."
contact: ""
description: 'Die Programmiersprache Python bietet interessante Möglichkeiten, den Mathematikunterricht zu bereichern. Von der Pythagoras-Theorie bis zur Erstellung eigener Grafiken, digitalen Bildverarbeitung und linearer Regression wird alles mit Python klarer.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
python_programming:
title: Programmieren mit Python
sub_title: Grundlagen des Programmierens in Python
description: "Die Grundprinzipien des Programmierens erlernen? Das ist perfekt möglich mit diesem Paket. Wir verwenden Python und lernen alles über Sequenzen, Wiederholungsstrukturen und Auswahlstrukturen. Genau das steht in den Endzielen. Und noch mehr!"
description: 'Die Grundprinzipien des Programmierens erlernen? Das ist perfekt möglich mit diesem Paket. Wir verwenden Python und lernen alles über Sequenzen, Wiederholungsstrukturen und Auswahlstrukturen. Genau das steht in den Endzielen. Und noch mehr!'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
physical_computing:
title: Physical Computing
sub_title: Programmieren von Robotern im Unterricht
description: "Ein Musikinstrument, Auto oder Wetterstation bauen? Das geht mit Dwenguino, einer Mikrocontroller-Plattform mit einer eigenen Programmierumgebung. Schülerinnen und Schüler der Grundschule und der Sekundarstufe können sofort damit arbeiten. Echt oder in unserem Simulator, blockbasiert oder textuell."
description: 'Ein Musikinstrument, Auto oder Wetterstation bauen? Das geht mit Dwenguino, einer Mikrocontroller-Plattform mit einer eigenen Programmierumgebung. Schülerinnen und Schüler der Grundschule und der Sekundarstufe können sofort damit arbeiten. Echt oder in unserem Simulator, blockbasiert oder textuell.'
contact: Fragen? Kontaktieren Sie uns unter team@aiopschool.be. Die Presse kann sich an Francis Wyffels unter Francis@dwengo.org wenden.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Bouw jouw eigen robot"
file_info: "Baue deinen eigenen fahrenden Roboter."
file_location: "/assets/files/physical_computing/bouwjouweigenrobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Bouw jouw eigen robot'
file_info: 'Baue deinen eigenen fahrenden Roboter.'
file_location: '/assets/files/physical_computing/bouwjouweigenrobot.pdf'
file_icon_name: 'description'
link_name: 'Download'

View file

@ -17,7 +17,6 @@ strengths:
name: Matthias and Bruno
affiliation: Grade 10
curricula_page:
title: Our teaching topics
read_more: Read more
@ -25,212 +24,212 @@ curricula_page:
algorithms:
title: Algorithms
sub_title: Algorithms
description: "Students in the second and third grade (secondary education) learn how to use algorithms to solve problems. They learn how to design algorithms and analyze the efficiency of algorithms. They also learn how to use algorithms to solve problems."
contact: ""
description: 'Students in the second and third grade (secondary education) learn how to use algorithms to solve problems. They learn how to design algorithms and analyze the efficiency of algorithms. They also learn how to use algorithms to solve problems.'
contact: ''
teaser: https://www.youtube.com/embed/2B6gZ9HdQ1Y
basics_ai:
title: Basisprincipes van AI
sub_title: Basisprincipes van AI
description: "Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen."
contact: ""
description: 'Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen.'
contact: ''
kiks:
title: AI and Climate
sub_title: KIKS
description: "Students in the third grade (SO) investigate how plants adapt to climate change through their stomata. They use artificial intelligence and image recognition to count these stomata."
contact: ""
description: 'Students in the third grade (SO) investigate how plants adapt to climate change through their stomata. They use artificial intelligence and image recognition to count these stomata.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Project Sheet KIKS"
file_info: "This is a brief overview of the KIKS project with project structure and characteristics."
file_location: "/assets/files/kiks/projectfiche_kiks.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "The manual - also available in print"
file_info: "We want to provide teachers with background knowledge about the content of this project: climate change, the biology of stomata, how plants adapt to climate change through stomata, the scientific research of UGent and Plantentuin Meise underlying this project, citizen science, what artificial intelligence (AI) is, the history of AI, its use and ethics, principles of digital images, mathematics behind algorithms, and foundations of currently most-used AI techniques. We also explain how we implemented KIKS in the classroom."
file_location: "/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Student Course"
file_info: "With the student course, we provide an example of a possible, comprehensive trajectory that a teacher can go through with students. The trajectory includes climate change, the biology of stomata with a microscopy assignment, how plants adapt to climate change through stomata, the scientific research of UGent and Plantentuin Meise, collecting data to train a neural network, what artificial intelligence (AI) is, the history of AI, its use and ethics, principles of digital images, working with convolutions, mathematics behind the Perceptron algorithm, linear and non-linear classification of data, and foundations of machine learning."
file_location: "/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Curriculum Goals"
file_info: "Within the KIKS project, many curriculum goals can be addressed. The teacher determines which goals are related to the project. Moreover, the project offers many opportunities to actively engage and let students learn independently, as well as teach ICT skills. KIKS can also be used for a research assignment. In the final objectives and curricula of various educational bodies, many goals can be found linking KIKS with biology, geography, and mathematics."
file_location: "/assets/files/kiks/Leerdoelen-KIKS.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Making a Nail Polish Impression of a Leaf Part"
file_info: "To know the number of stomata on a part of a plant leaf, we examine the leaf surface under the microscope. We can remove a piece of the thin cuticle of the leaf for this, but for some plants, it is not so successful, for example, due to the stiffness of the leaf. However, this can be compensated by using the same method as the researchers at Plantentuin Meise, namely, taking an impression of a part of the leaf surface with transparent nail polish. The microscopic image can be photographed with a smartphone."
file_location: "https://vimeo.com/467062270"
file_icon_name: "play_arrow"
link_name: "Watch"
- file_title: 'Project Sheet KIKS'
file_info: 'This is a brief overview of the KIKS project with project structure and characteristics.'
file_location: '/assets/files/kiks/projectfiche_kiks.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'The manual - also available in print'
file_info: 'We want to provide teachers with background knowledge about the content of this project: climate change, the biology of stomata, how plants adapt to climate change through stomata, the scientific research of UGent and Plantentuin Meise underlying this project, citizen science, what artificial intelligence (AI) is, the history of AI, its use and ethics, principles of digital images, mathematics behind algorithms, and foundations of currently most-used AI techniques. We also explain how we implemented KIKS in the classroom.'
file_location: '/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Student Course'
file_info: 'With the student course, we provide an example of a possible, comprehensive trajectory that a teacher can go through with students. The trajectory includes climate change, the biology of stomata with a microscopy assignment, how plants adapt to climate change through stomata, the scientific research of UGent and Plantentuin Meise, collecting data to train a neural network, what artificial intelligence (AI) is, the history of AI, its use and ethics, principles of digital images, working with convolutions, mathematics behind the Perceptron algorithm, linear and non-linear classification of data, and foundations of machine learning.'
file_location: '/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Curriculum Goals'
file_info: 'Within the KIKS project, many curriculum goals can be addressed. The teacher determines which goals are related to the project. Moreover, the project offers many opportunities to actively engage and let students learn independently, as well as teach ICT skills. KIKS can also be used for a research assignment. In the final objectives and curricula of various educational bodies, many goals can be found linking KIKS with biology, geography, and mathematics.'
file_location: '/assets/files/kiks/Leerdoelen-KIKS.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Making a Nail Polish Impression of a Leaf Part'
file_info: 'To know the number of stomata on a part of a plant leaf, we examine the leaf surface under the microscope. We can remove a piece of the thin cuticle of the leaf for this, but for some plants, it is not so successful, for example, due to the stiffness of the leaf. However, this can be compensated by using the same method as the researchers at Plantentuin Meise, namely, taking an impression of a part of the leaf surface with transparent nail polish. The microscopic image can be photographed with a smartphone.'
file_location: 'https://vimeo.com/467062270'
file_icon_name: 'play_arrow'
link_name: 'Watch'
socialrobot:
title: Social Robot
sub_title: Robotics in the classroom
description: "While first-year students (secondary education) build and program a social robot, they learn to solve complex problems through computational thinking. They playfully work on the new end terms for digital competencies."
description: 'While first-year students (secondary education) build and program a social robot, they learn to solve complex problems through computational thinking. They playfully work on the new end terms for digital competencies.'
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Project Sheet Social Robot"
- file_title: 'Project Sheet Social Robot'
file_info: "This is a brief overview of the 'Social Robot' project with project structure and characteristics."
file_location: "/assets/files/socialrobot/projectfiche_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Collage of Social Robots"
file_info: "The robots in this photo are creations of first-year secondary education students or prototypes."
file_location: "/assets/files/socialrobot/collage.png"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/projectfiche_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Collage of Social Robots'
file_info: 'The robots in this photo are creations of first-year secondary education students or prototypes.'
file_location: '/assets/files/socialrobot/collage.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Construction Kit for 'Social Robot' Project"
file_info: "Do you want your students to design and build a social robot too? This is possible via the construction kit of Dwengovzw. The figure shows the current composition of the construction kit. Interested? Contact us by email or find more information on this project page."
file_location: "/assets/files/socialrobot/constructiekit_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "From Project to End Terms"
file_info: 'Do you want your students to design and build a social robot too? This is possible via the construction kit of Dwengovzw. The figure shows the current composition of the construction kit. Interested? Contact us by email or find more information on this project page.'
file_location: '/assets/files/socialrobot/constructiekit_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'From Project to End Terms'
file_info: "The end terms that can be worked on are linked to the different phases of the 'Social Robot' project."
file_location: "/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotion Machine (Incomplete) - Computational Thinking (Unplugged Activity)"
file_info: "Unplugged activity"
file_location: "/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotion Machine (Task) - Computational Thinking (Unplugged Activity)"
file_info: "Unplugged activity"
file_location: "/assets/files/socialrobot/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotion Machine (Complete) - Computational Thinking (Unplugged Activity)"
file_info: "Unplugged activity"
file_location: "/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotion Machine with LED Matrix - Computational Thinking (Unplugged Activity)"
file_info: "Unplugged activity"
file_location: "/assets/files/socialrobot/emotiemachine_matrices_nl.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotion Machine (Incomplete) - Computational Thinking (Unplugged Activity)'
file_info: 'Unplugged activity'
file_location: '/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotion Machine (Task) - Computational Thinking (Unplugged Activity)'
file_info: 'Unplugged activity'
file_location: '/assets/files/socialrobot/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotion Machine (Complete) - Computational Thinking (Unplugged Activity)'
file_info: 'Unplugged activity'
file_location: '/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotion Machine with LED Matrix - Computational Thinking (Unplugged Activity)'
file_info: 'Unplugged activity'
file_location: '/assets/files/socialrobot/emotiemachine_matrices_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Teacher's Guide"
file_info: "The bundled sheets explain the use of the Dwenguino and the sensors and actuators."
file_location: "/assets/files/socialrobot/ficheboekje_lkn.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Information Sheets for Students"
file_info: "These information sheets explain the use of the Dwenguino and sensors and actuators."
file_location: "/assets/files/socialrobot/fichesSocialeRobot_lln.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Create a Face - Computational Thinking (Unplugged Activity)"
file_info: "Unplugged activity"
file_location: "/assets/files/socialrobot/maakeengezicht_activiteit.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Tasks for Exercises in the MOOC"
file_info: "An overview of programming exercises in the MOOC"
file_location: "/assets/files/socialrobot/Opgaven_MOOC.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'The bundled sheets explain the use of the Dwenguino and the sensors and actuators.'
file_location: '/assets/files/socialrobot/ficheboekje_lkn.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Information Sheets for Students'
file_info: 'These information sheets explain the use of the Dwenguino and sensors and actuators.'
file_location: '/assets/files/socialrobot/fichesSocialeRobot_lln.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Create a Face - Computational Thinking (Unplugged Activity)'
file_info: 'Unplugged activity'
file_location: '/assets/files/socialrobot/maakeengezicht_activiteit.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Tasks for Exercises in the MOOC'
file_info: 'An overview of programming exercises in the MOOC'
file_location: '/assets/files/socialrobot/Opgaven_MOOC.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Poster 'Social Robot' Project"
file_info: "The poster displays the different aspects of the project."
file_location: "/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'The poster displays the different aspects of the project.'
file_location: '/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Manual 'Hello Robot!'"
file_info: "With this lesson booklet, you bring your own social robot to life."
file_location: "/assets/files/socialrobot/handleiding_hallo_robot.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'With this lesson booklet, you bring your own social robot to life.'
file_location: '/assets/files/socialrobot/handleiding_hallo_robot.pdf'
file_icon_name: 'description'
link_name: 'Download'
chatbot:
title: Language Technology at School
sub_title: Getting Started with a Chatbot
description: "Where language and technology come together, the domain of Natural Language Processing emerges. Can a computer understand, translate, or even write texts? Can a computer recognize emotions? Students in the second and third grades (SO) learn all about it in this package."
description: 'Where language and technology come together, the domain of Natural Language Processing emerges. Can a computer understand, translate, or even write texts? Can a computer recognize emotions? Students in the second and third grades (SO) learn all about it in this package.'
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Project Sheet Chatbot"
file_info: "This is a brief overview of the Chatbot project with project structure and characteristics."
file_location: "/assets/files/chatbot/projectfiche_chatbot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Chatbots"
file_info: "In this BrAInfood - aimed at young people - the Knowledge Center Data & Society provides more information about chatbots. The BrAInfood includes a fictional story about Lotte talking to a chatbot and presumably providing information about her to companies. Further, some points related to chatbots are explained, along with some tips for young people to better protect their (personal) data. In this way, we aim to make young people more aware of how chatbots work and encourage them to reflect on the data collected about them."
file_location: "/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Personalized Newsfeeds"
file_info: "In this BrAInfood from the Knowledge Center Data & Society, tips are given on how to keep control over your newsfeed."
file_location: "/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Project Sheet Chatbot'
file_info: 'This is a brief overview of the Chatbot project with project structure and characteristics.'
file_location: '/assets/files/chatbot/projectfiche_chatbot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Chatbots'
file_info: 'In this BrAInfood - aimed at young people - the Knowledge Center Data & Society provides more information about chatbots. The BrAInfood includes a fictional story about Lotte talking to a chatbot and presumably providing information about her to companies. Further, some points related to chatbots are explained, along with some tips for young people to better protect their (personal) data. In this way, we aim to make young people more aware of how chatbots work and encourage them to reflect on the data collected about them.'
file_location: '/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Personalized Newsfeeds'
file_info: 'In this BrAInfood from the Knowledge Center Data & Society, tips are given on how to keep control over your newsfeed.'
file_location: '/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Manual 'Chatbot' - Also available in print"
file_info: "Teachers acquire sufficient background information through this manual to work with (a part of) the 'Chatbot' project in the classroom. The book covers various aspects of language technology, such as the history of artificial intelligence, its ethical aspects, sentiment analysis, and cyberbullying detection, chatbots, speaking digital assistants, and author recognition. It also addresses the STEM objectives and the objectives related to digital competence and media literacy."
file_location: "/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Improbotics - Lesson Plan - Teacher's Version"
file_info: "In the theater performance Improbotics, a social robot improvises in the scenes. The lesson plan provides information about the technologies used."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Improbotics - Lesson Plan - Students"
file_info: "In the theater performance Improbotics, a social robot improvises in the scenes. The lesson plan provides information about the technologies used."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'In the theater performance Improbotics, a social robot improvises in the scenes. The lesson plan provides information about the technologies used.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Improbotics - Lesson Plan - Students'
file_info: 'In the theater performance Improbotics, a social robot improvises in the scenes. The lesson plan provides information about the technologies used.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf'
file_icon_name: 'description'
link_name: 'Download'
care:
title: AI in Healthcare
sub_title: AI Systems Assisting in Healthcare
description: "Hospitals are already using artificial intelligence today. Students in the second and third grades (SO) discover the existing systems and how they help doctors make decisions. This way, students learn the principles of the decision tree, a commonly used technique in machine learning."
contact: ""
description: 'Hospitals are already using artificial intelligence today. Students in the second and third grades (SO) discover the existing systems and how they help doctors make decisions. This way, students learn the principles of the decision tree, a commonly used technique in machine learning.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Project Sheet AI in Healthcare"
file_info: "This is a brief overview of the AI in Healthcare project with project structure and characteristics."
file_location: "/assets/files/care/projectfiche_aiindezorg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Sprouts"
- file_title: 'Project Sheet AI in Healthcare'
file_info: 'This is a brief overview of the AI in Healthcare project with project structure and characteristics.'
file_location: '/assets/files/care/projectfiche_aiindezorg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Sprouts'
file_info: "A game as an introduction to 'Graphs'."
file_location: "/assets/files/care/Sprouts.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Explanation of Exercises on Graphs from the Student Course"
file_info: "Which figures represent the same graph? A more formal approach."
file_location: "/assets/files/care/dezelfdegraafFormeel.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Explanation of Exercises on Graphs from the Student Course"
file_info: "Which figures represent the same graph? An approach with colors."
file_location: "/assets/files/care/dezelfdeGraaf.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Student Course - Finality Throughflow"
file_info: "Student course."
file_location: "/assets/files/care/AIinHealthcare_throughflow_firstedition.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Card Set - Also available in print"
file_info: "With this card set, you can make students reflect on the ethical aspects of new technologies. What about privacy? Are social contacts not at risk? Which technologies are welcomed? What is undesirable? Are the new technologies affordable for everyone?"
file_location: "/assets/files/care/Cardset_AIinHealthcare_AIOpSchool_Dwengo.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Manual for Card Set"
file_info: "This manual provides additional explanation for the card set."
file_location: "/assets/files/care/AIinHealthcareCardset_InstructionForTeacher.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/Sprouts.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Explanation of Exercises on Graphs from the Student Course'
file_info: 'Which figures represent the same graph? A more formal approach.'
file_location: '/assets/files/care/dezelfdegraafFormeel.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Explanation of Exercises on Graphs from the Student Course'
file_info: 'Which figures represent the same graph? An approach with colors.'
file_location: '/assets/files/care/dezelfdeGraaf.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Student Course - Finality Throughflow'
file_info: 'Student course.'
file_location: '/assets/files/care/AIinHealthcare_throughflow_firstedition.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Card Set - Also available in print'
file_info: 'With this card set, you can make students reflect on the ethical aspects of new technologies. What about privacy? Are social contacts not at risk? Which technologies are welcomed? What is undesirable? Are the new technologies affordable for everyone?'
file_location: '/assets/files/care/Cardset_AIinHealthcare_AIOpSchool_Dwengo.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Manual for Card Set'
file_info: 'This manual provides additional explanation for the card set.'
file_location: '/assets/files/care/AIinHealthcareCardset_InstructionForTeacher.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Decision Tree 'mBrAIn' Project in Non-compact Form"
file_info: "In the research project 'mBrain,' which aims to develop an app predicting a migraine attack, a decision tree was constructed. This decision tree addresses a binary classification problem: there are only two classes, 'Migraine' and 'No Migraine.' (Sources: Femke Ongenae. (2021), UGent; Van Hoecke, S., Ongenae, F., Paemeleire, K., & Vandenbussche, N. (2020). App moet hoofdpijn voorspellen. EOS Wetenschap Special, Technologie en gezondheid, 25.) We have transformed the shape of this decision tree into a binary decision tree to demonstrate that this form is not always user-friendly. For more explanation, see chapter 4 of the student course of this project."
file_location: "/assets/files/care/MBrainBeslissingsboom.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Search for Speech - Computational Thinking (unplugged activity)"
file_info: "Locked-in syndrome is one of the worst medical conditions. You are completely paralyzed, except that you might still be able to blink with one eye. Your intelligent mind is trapped in a useless body: you can feel everything but cannot communicate. It can happen to anyone, out of nowhere, as a result of a stroke. If you want to help people with the locked-in syndrome, is it best to become a doctor or a nurse? Or can you also help as a computer scientist?"
file_location: "/assets/files/care/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/MBrainBeslissingsboom.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Search for Speech - Computational Thinking (unplugged activity)'
file_info: 'Locked-in syndrome is one of the worst medical conditions. You are completely paralyzed, except that you might still be able to blink with one eye. Your intelligent mind is trapped in a useless body: you can feel everything but cannot communicate. It can happen to anyone, out of nowhere, as a result of a stroke. If you want to help people with the locked-in syndrome, is it best to become a doctor or a nurse? Or can you also help as a computer scientist?'
file_location: '/assets/files/care/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
stem:
title: Python in STEM
sub_title: Data Visualizations with Python
@ -240,25 +239,25 @@ curricula_page:
agriculture:
title: AI in Agriculture
sub_title: AI in agriculture
description: "Removing rotten tomatoes during harvest? Artificial intelligence can help with that. But how? Students in the second and third grades (SO) get hands-on experience with AI. Perhaps a vibrating conveyor belt can improve the system even more?"
description: 'Removing rotten tomatoes during harvest? Artificial intelligence can help with that. But how? Students in the second and third grades (SO) get hands-on experience with AI. Perhaps a vibrating conveyor belt can improve the system even more?'
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Design"
file_info: "Design of the conveyor belt"
file_location: "/assets/files/art/Transportband_InnoVET_RCH.zip"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Design'
file_info: 'Design of the conveyor belt'
file_location: '/assets/files/art/Transportband_InnoVET_RCH.zip'
file_icon_name: 'description'
link_name: 'Download'
art:
title: AI in Art
sub_title: Drawing Robots in the Classroom
description: "Can we create art with artificial intelligence? Students in the second and third grades (SO) express their creativity with AI and reflect on the result. Is this art? They also discover how AI can protect our cultural heritage."
contact: ""
description: 'Can we create art with artificial intelligence? Students in the second and third grades (SO) express their creativity with AI and reflect on the result. Is this art? They also discover how AI can protect our cultural heritage.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
wegostem:
title: WeGoSTEM
sub_title: Drawing Robots in the Classroom
description: "We challenge third-grade (BO) children to program a drawing robot. Through play, children learn a lot of STEM skills, from technology to computational thinking."
description: 'We challenge third-grade (BO) children to program a drawing robot. Through play, children learn a lot of STEM skills, from technology to computational thinking.'
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
@ -269,61 +268,61 @@ curricula_page:
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Concepts and Approach to Computational Thinking"
file_info: "poster"
file_location: "/assets/files/computational_thinking/CDposterDwengo2.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Explaining Four Concepts of Computational Thinking"
file_info: "Presentation on four concepts of computational thinking: decomposition, pattern recognition, abstraction, and algorithm. You can download the PDF, open it, present it using CTRL-L, and navigate with the arrow keys."
file_location: "/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Concepts and Principles"
file_info: "Overview"
file_location: "/assets/files/computational_thinking/Icoontjes.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Emotion Machine (Assignment)"
file_info: "How can you stimulate emotions in a robot?"
file_location: "/assets/files/computational_thinking/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Emotion Machine"
file_info: "How can you stimulate emotions in a robot?"
file_location: "/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Color by Number"
- file_title: 'Concepts and Approach to Computational Thinking'
file_info: 'poster'
file_location: '/assets/files/computational_thinking/CDposterDwengo2.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Explaining Four Concepts of Computational Thinking'
file_info: 'Presentation on four concepts of computational thinking: decomposition, pattern recognition, abstraction, and algorithm. You can download the PDF, open it, present it using CTRL-L, and navigate with the arrow keys.'
file_location: '/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Concepts and Principles'
file_info: 'Overview'
file_location: '/assets/files/computational_thinking/Icoontjes.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Emotion Machine (Assignment)'
file_info: 'How can you stimulate emotions in a robot?'
file_location: '/assets/files/computational_thinking/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Emotion Machine'
file_info: 'How can you stimulate emotions in a robot?'
file_location: '/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Color by Number'
file_info: "Images can be represented in many ways. In this color by number puzzle, you have to reconstruct an image using the given list of numbers; this list tells you which color to fill in each square ('pixel')."
file_location: "/assets/files/computational_thinking/kleurenopnummer1.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Human Computer Network"
file_info: "In this activity, students learn how data transfer over the Internet works. Computers, smartphones, and other devices connected via the Internet can communicate with each other. To understand each other, this communication must follow certain agreements. We call these agreements a protocol."
file_location: "/assets/files/computational_thinking/menselijkComputernetwerk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Compression"
file_info: "To send images over networks, we want to represent information with as little data as possible. Compression comes into play here. Using algorithms, images are represented with as few numbers as possible, but in a way that you can still recover the original figure. Other algorithms restore the original image when the information reaches its destination."
file_location: "/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Program a Human"
file_location: '/assets/files/computational_thinking/kleurenopnummer1.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Human Computer Network'
file_info: 'In this activity, students learn how data transfer over the Internet works. Computers, smartphones, and other devices connected via the Internet can communicate with each other. To understand each other, this communication must follow certain agreements. We call these agreements a protocol.'
file_location: '/assets/files/computational_thinking/menselijkComputernetwerk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Compression'
file_info: 'To send images over networks, we want to represent information with as little data as possible. Compression comes into play here. Using algorithms, images are represented with as few numbers as possible, but in a way that you can still recover the original figure. Other algorithms restore the original image when the information reaches its destination.'
file_location: '/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Program a Human'
file_info: "Computers cannot interpret, so they literally execute every instruction you give them. The programmer's challenge is to solve problems by breaking them down into small steps that the computer can execute and giving the instructions to the computer correctly."
file_location: "/assets/files/computational_thinking/programmeerEensEenMens.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged Activity - Search for Speech"
file_info: "Locked-in syndrome is one of the worst medical conditions. You are completely paralyzed, except that you may still be able to blink with one eye. Your intelligent mind is trapped in a useless body: you can feel everything but cannot communicate. It can happen to anyone, out of nowhere, as a result of a stroke. If you wanted to help people with locked-in syndrome, would you be better off as a doctor or nurse? Or can you help as a computer scientist?"
file_location: "/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/computational_thinking/programmeerEensEenMens.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged Activity - Search for Speech'
file_info: 'Locked-in syndrome is one of the worst medical conditions. You are completely paralyzed, except that you may still be able to blink with one eye. Your intelligent mind is trapped in a useless body: you can feel everything but cannot communicate. It can happen to anyone, out of nowhere, as a result of a stroke. If you wanted to help people with locked-in syndrome, would you be better off as a doctor or nurse? Or can you help as a computer scientist?'
file_location: '/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
math_with_python:
title: Python in Math Class
sub_title: Python in Mathematics
description: "The programming language Python offers great possibilities to enrich the math class. From the Pythagorean theorem to creating your own graphs, digital image processing, and linear regression, everything becomes clearer with Python."
contact: ""
description: 'The programming language Python offers great possibilities to enrich the math class. From the Pythagorean theorem to creating your own graphs, digital image processing, and linear regression, everything becomes clearer with Python.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
python_programming:
title: Programming with Python
@ -334,12 +333,12 @@ curricula_page:
physical_computing:
title: Physical Computing
sub_title: Program Robots in the Classroom
description: "Build a musical instrument, car, or weather station? You can do that with Dwenguino, a microcontroller platform with its own programming environment. Students from both primary and secondary education can get started with it right away. In real life or in our simulator, block-based or textual."
description: 'Build a musical instrument, car, or weather station? You can do that with Dwenguino, a microcontroller platform with its own programming environment. Students from both primary and secondary education can get started with it right away. In real life or in our simulator, block-based or textual.'
contact: Questions? Contact us at team@aiopschool.be. The press can contact Francis Wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Bouw jouw eigen robot"
file_info: "Build your own driving robot."
file_location: "/assets/files/physical_computing/bouwjouweigenrobot.pdf"
file_icon_name: "link"
link_name: "Download"
- file_title: 'Bouw jouw eigen robot'
file_info: 'Build your own driving robot.'
file_location: '/assets/files/physical_computing/bouwjouweigenrobot.pdf'
file_icon_name: 'link'
link_name: 'Download'

View file

@ -19,333 +19,333 @@ strengths:
curricula_page:
title: Notre sujets d'enseignement
read_more: "Lees meer"
curricula_files: "Bestanden"
read_more: 'Lees meer'
curricula_files: 'Bestanden'
algorithms:
title: Algorithmes
sub_title: Algorithmes
description: "Les élèves de la troisième à la sixième année (enseignement secondaire) apprennent comment utiliser des algorithmes pour résoudre des problèmes. Ils apprennent à concevoir des algorithmes et à analyser l'efficacité de ces derniers. Ils apprennent également à utiliser des algorithmes pour résoudre des problèmes."
contact: ""
contact: ''
teaser: https://www.youtube.com/embed/2B6gZ9HdQ1Y
basics_ai:
title: Basisprincipes van AI
sub_title: Basisprincipes van AI
description: "Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen."
contact: ""
description: 'Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen.'
contact: ''
kiks:
title: "IA et changement climatique"
sub_title: "KIKS"
title: 'IA et changement climatique'
sub_title: 'KIKS'
description: "Les élèves de la troisième année du secondaire explorent comment les plantes s'adaptent au changement climatique via leurs stomates. Ils utilisent l'intelligence artificielle et la reconnaissance d'image pour compter ces stomates."
contact: ""
teaser: "https://www.youtube.com/embed/dO-E33G20co"
contact: ''
teaser: 'https://www.youtube.com/embed/dO-E33G20co'
curricula_files:
- file_title: "Fiche de projet KIKS"
- file_title: 'Fiche de projet KIKS'
file_info: "Il s'agit d'un bref aperçu du projet KIKS avec la structure et les caractéristiques du projet."
file_location: "/assets/files/kiks/projectfiche_kiks.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Le manuel - également disponible en version imprimée"
file_location: '/assets/files/kiks/projectfiche_kiks.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Le manuel - également disponible en version imprimée'
file_info: "Nous voulons donner aux enseignants des connaissances de base sur le contenu de ce projet : le changement climatique, la biologie des stomates et la manière dont les plantes s'adaptent à ce changement climatique via les stomates, la recherche scientifique de l'UGent et du Jardin botanique de Meise à l'origine de ce projet, la science citoyenne, ce qu'est l'intelligence artificielle (IA), l'histoire de l'IA, son utilisation et l'éthique qui l'entoure, les principes des images numériques, les mathématiques derrière les algorithmes et les fondements des techniques d'IA actuellement les plus utilisées. Nous expliquons également comment nous avons utilisé KIKS en classe."
file_location: "/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Un cours pour les élèves"
file_location: '/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Un cours pour les élèves'
file_info: "Avec le cours pour les élèves, nous donnons un exemple d'un parcours possible que l'enseignant peut suivre avec les élèves. Le parcours inclut le changement climatique, la biologie des stomates avec une tâche de microscopie, la manière dont les plantes s'adaptent au changement climatique via les stomates, la recherche scientifique de l'UGent et du Jardin botanique de Meise, la collecte de données pour entraîner un réseau neuronal, ce qu'est l'intelligence artificielle (IA), l'histoire de l'IA, son utilisation et l'éthique qui l'entoure, les principes des images numériques, le travail avec les convolutions, les mathématiques derrière l'algorithme du Perceptron, la classification linéaire et non linéaire des données, et les fondements de l'apprentissage machine."
file_location: "/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Les objectifs d'apprentissage"
file_info: "Dans le projet KIKS, de nombreux objectifs d'apprentissage peuvent être abordés. L'enseignant décide lui-même des objectifs d'apprentissage liés au projet. De plus, le projet offre de nombreuses possibilités pour permettre aux élèves d'apprendre de manière active et autonome, et pour enseigner les compétences en TIC. KIKS peut également être utilisé pour développer une mission de recherche. Les objectifs d'apprentissage et les plans de cours des différentes institutions contiennent de nombreux objectifs d'apprentissage liés à la biologie, à la géographie et aux mathématiques."
file_location: "/assets/files/kiks/Leerdoelen-KIKS.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/kiks/Leerdoelen-KIKS.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "La réalisation d'une empreinte de vernis à ongles d'une partie d'une feuille"
file_info: "Pour connaître le nombre de stomates sur une partie d'une feuille d'une plante, nous examinons la surface de la feuille sous le microscope. Pour ce faire, nous pouvons retirer une partie de la cuticule très fine de la feuille, mais cela ne fonctionne pas aussi bien pour certaines plantes en raison de la rigidité de la feuille. Cela peut cependant être compensé en utilisant la même méthode que les chercheurs du Jardin botanique de Meise, à savoir prendre une empreinte d'une partie de la surface de la feuille avec du vernis à ongles transparent. L'image microscopique peut être photographiée avec un smartphone."
file_location: "https://vimeo.com/467062270"
file_icon_name: "play_arrow"
link_name: "Voir"
file_location: 'https://vimeo.com/467062270'
file_icon_name: 'play_arrow'
link_name: 'Voir'
socialrobot:
title: "Robot social"
sub_title: "Robotique en classe"
description: "Alors que les élèves de la première année du secondaire bricolent et programment un robot social, ils apprennent à résoudre des problèmes complexes grâce à la pensée computationnelle. Ils travaillent de manière ludique sur les nouvelles compétences finales en compétences numériques."
contact: "Questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
title: 'Robot social'
sub_title: 'Robotique en classe'
description: 'Alors que les élèves de la première année du secondaire bricolent et programment un robot social, ils apprennent à résoudre des problèmes complexes grâce à la pensée computationnelle. Ils travaillent de manière ludique sur les nouvelles compétences finales en compétences numériques.'
contact: 'Questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
curricula_files:
- file_title: "Fiche de projet Robot social"
- file_title: 'Fiche de projet Robot social'
file_info: "Il s'agit d'un bref aperçu du projet 'Robot social' avec la structure et les caractéristiques du projet."
file_location: "/assets/files/socialrobot/projectfiche_socialerobot.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Collage des robots sociaux"
file_location: '/assets/files/socialrobot/projectfiche_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Collage des robots sociaux'
file_info: "Les robots sur cette photo sont des réalisations d'élèves de la première année du secondaire ou des prototypes."
file_location: "/assets/files/socialrobot/collage.png"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/socialrobot/collage.png'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Kit de construction pour le projet 'Robot social'"
file_info: "Vous souhaitez que vos élèves conçoivent et construisent également un robot social ? Cela peut se faire avec le kit de construction de Dwengovzw. Sur la figure, vous découvrirez la composition actuelle du kit de construction. Intéressé ? Contactez-nous par e-mail ou trouvez plus d'informations sur cette page du projet."
file_location: "/assets/files/socialrobot/constructiekit_socialerobot.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "De la mission aux compétences finales"
file_location: '/assets/files/socialrobot/constructiekit_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'De la mission aux compétences finales'
file_info: "Les compétences finales qui peuvent être travaillées sont liées aux différentes phases du projet 'Robot social'."
file_location: "/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Machine à émotions (incomplète) - Pensée computationnelle (activité débranchée)"
file_info: "Activité débranchée"
file_location: "/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Machine à émotions (mission) - Pensée computationnelle (activité débranchée)"
file_info: "Activité débranchée"
file_location: "/assets/files/socialrobot/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Machine à émotions (complète) - Pensée computationnelle (activité débranchée)"
file_info: "Activité débranchée"
file_location: "/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Machine à émotions avec matrice de LED - Pensée computationnelle (activité débranchée)"
file_info: "Activité débranchée"
file_location: "/assets/files/socialrobot/emotiemachine_matrices_nl.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Guide pour les enseignants"
file_location: '/assets/files/socialrobot/EindtermenAStroomSsocialeRobot.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Machine à émotions (incomplète) - Pensée computationnelle (activité débranchée)'
file_info: 'Activité débranchée'
file_location: '/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Machine à émotions (mission) - Pensée computationnelle (activité débranchée)'
file_info: 'Activité débranchée'
file_location: '/assets/files/socialrobot/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Machine à émotions (complète) - Pensée computationnelle (activité débranchée)'
file_info: 'Activité débranchée'
file_location: '/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Machine à émotions avec matrice de LED - Pensée computationnelle (activité débranchée)'
file_info: 'Activité débranchée'
file_location: '/assets/files/socialrobot/emotiemachine_matrices_nl.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Guide pour les enseignants'
file_info: "Les fiches regroupées détaillant l'utilisation du Dwenguino et des capteurs et actionneurs."
file_location: "/assets/files/socialrobot/ficheboekje_lkn.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Fiches pour les élèves"
file_location: '/assets/files/socialrobot/ficheboekje_lkn.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Fiches pour les élèves'
file_info: "Ces fiches expliquent l'utilisation du Dwenguino et des capteurs et actionneurs."
file_location: "/assets/files/socialrobot/fichesSocialeRobot_lln.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Créer un visage - Pensée computationnelle (activité débranchée)"
file_info: "Activité débranchée"
file_location: "/assets/files/socialrobot/maakeengezicht_activiteit.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Exercices de la MOOC"
file_info: "Aperçu des exercices de programmation dans le MOOC."
file_location: "/assets/files/socialrobot/Opgaven_MOOC.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/socialrobot/fichesSocialeRobot_lln.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Créer un visage - Pensée computationnelle (activité débranchée)'
file_info: 'Activité débranchée'
file_location: '/assets/files/socialrobot/maakeengezicht_activiteit.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Exercices de la MOOC'
file_info: 'Aperçu des exercices de programmation dans le MOOC.'
file_location: '/assets/files/socialrobot/Opgaven_MOOC.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Affiche du projet 'Robot social'"
file_info: "L'affiche représente les différents aspects du projet."
file_location: "/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Guide 'Bonjour robot!'"
file_info: "Avec ce livret, donnez vie à votre propre robot social."
file_location: "/assets/files/socialrobot/handleiding_hallo_robot.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_info: 'Avec ce livret, donnez vie à votre propre robot social.'
file_location: '/assets/files/socialrobot/handleiding_hallo_robot.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
chatbot:
title: "Technologie du langage à l'école"
sub_title: "Se mettre au travail avec un chatbot"
description: "Là où le langage et la technologie se rencontrent, naît le domaine du Traitement du Langage Naturel. Un ordinateur peut-il comprendre, traduire ou même écrire des textes ? Peut-il reconnaître les émotions ? Les élèves de la deuxième et de la troisième année (enseignement secondaire) en apprennent davantage dans ce programme."
contact: "Questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
sub_title: 'Se mettre au travail avec un chatbot'
description: 'Là où le langage et la technologie se rencontrent, naît le domaine du Traitement du Langage Naturel. Un ordinateur peut-il comprendre, traduire ou même écrire des textes ? Peut-il reconnaître les émotions ? Les élèves de la deuxième et de la troisième année (enseignement secondaire) en apprennent davantage dans ce programme.'
contact: 'Questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
curricula_files:
- file_title: "Fiche de projet Chatbot"
- file_title: 'Fiche de projet Chatbot'
file_info: "Il s'agit d'un bref aperçu du projet Chatbot avec la structure et les caractéristiques du projet."
file_location: "/assets/files/chatbot/projectfiche_chatbot.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "BrAInfood Chatbots"
file_location: '/assets/files/chatbot/projectfiche_chatbot.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'BrAInfood Chatbots'
file_info: "Dans ce BrAInfood destiné aux jeunes, le Centre de connaissances Data & Société donne plus d'informations sur les chatbots. Le BrAInfood contient une histoire fictive sur Lotte qui discute avec un chatbot et transmet potentiellement des informations à des entreprises. En outre, quelques points d'attention concernant les chatbots sont expliqués, ainsi que quelques conseils pour les jeunes afin de mieux protéger leurs données personnelles. De cette manière, nous voulons sensibiliser les jeunes au fonctionnement des chatbots et les encourager à réfléchir aux données qui sont collectées à leur sujet."
file_location: "/assets/files/chatbot/Brainfood13_Chatbots_FR.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "BrAInfood Nouvelles personnalisées"
file_location: '/assets/files/chatbot/Brainfood13_Chatbots_FR.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'BrAInfood Nouvelles personnalisées'
file_info: "Dans ce BrAInfood du Centre de connaissances Data & Société, des conseils sont donnés sur la façon de garder le contrôle sur votre fil d'actualité."
file_location: "/assets/files/chatbot/brainfoodrecommendationnews.jpg"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/chatbot/brainfoodrecommendationnews.jpg'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Manuel 'Chatbot' - Également disponible en version imprimée"
file_info: "Les enseignants acquièrent, via ce manuel, des informations de base suffisantes pour aborder (une partie du) projet 'Chatbot' en classe. Le livre aborde différents aspects de la technologie du langage, tels que l'histoire de l'intelligence artificielle, ses aspects éthiques, l'analyse des sentiments et la détection du cyberharcèlement, les chatbots, les assistants numériques parlants et la reconnaissance d'auteur. Il aborde également les compétences finales STEM et les compétences finales en compétences numériques et en éducation aux médias."
file_location: "/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Improbotics - Livret - Version enseignant"
file_info: "Dans la pièce de théâtre Improbotics, un robot social improvise dans les scènes. Le livret contient des informations sur les technologies utilisées."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Enseignant.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Improbotics - Livret - Élèves"
file_info: "Dans la pièce de théâtre Improbotics, un robot social improvise dans les scènes. Le livret contient des informations sur les technologies utilisées."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Eleve.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Improbotics - Livret - Version enseignant'
file_info: 'Dans la pièce de théâtre Improbotics, un robot social improvise dans les scènes. Le livret contient des informations sur les technologies utilisées.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Enseignant.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Improbotics - Livret - Élèves'
file_info: 'Dans la pièce de théâtre Improbotics, un robot social improvise dans les scènes. Le livret contient des informations sur les technologies utilisées.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Eleve.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
care:
title: "IA dans les soins de santé"
title: 'IA dans les soins de santé'
sub_title: "Systèmes d'IA aidant dans les soins de santé"
description: "Les hôpitaux utilisent déjà l'intelligence artificielle aujourd'hui. Les élèves de la deuxième et de la troisième année (enseignement secondaire) découvrent quels systèmes existent et comment ils aident les médecins à prendre des décisions. Ainsi, les élèves apprennent les principes de l'arbre de décision, une technique couramment utilisée dans l'apprentissage automatique."
contact: ""
teaser: "https://www.youtube.com/embed/dO-E33G20co"
contact: ''
teaser: 'https://www.youtube.com/embed/dO-E33G20co'
curricula_files:
- file_title: "Fiche de projet IA dans les soins de santé"
- file_title: 'Fiche de projet IA dans les soins de santé'
file_info: "Il s'agit d'un bref aperçu du projet IA dans les soins de santé avec la structure et les caractéristiques du projet."
file_location: "/assets/files/care/projectfiche_aiindezorg.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Sprouts"
file_location: '/assets/files/care/projectfiche_aiindezorg.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Sprouts'
file_info: "Un jeu d'introduction aux 'Graphes'."
file_location: "/assets/files/care/Sprouts.mov"
file_icon_name: "play_arrow"
link_name: "Télécharger"
- file_title: "Explication des exercices de graphes du cours des élèves"
file_info: "Quels dessins représentent le même graphe ? Une approche plus formelle."
file_location: "/assets/files/care/dezelfdegraafFormeel.mov"
file_icon_name: "play_arrow"
link_name: "Télécharger"
- file_title: "Explication des exercices de graphes du cours des élèves"
file_info: "Quels dessins représentent le même graphe ? Une approche avec des couleurs."
file_location: "/assets/files/care/dezelfdeGraaf.mov"
file_icon_name: "play_arrow"
link_name: "Télécharger"
- file_title: "Le cours des élèves - Finalité Générale"
file_info: "Cours des élèves"
file_location: "/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Ensemble de cartes - Également disponible en version imprimée"
file_location: '/assets/files/care/Sprouts.mov'
file_icon_name: 'play_arrow'
link_name: 'Télécharger'
- file_title: 'Explication des exercices de graphes du cours des élèves'
file_info: 'Quels dessins représentent le même graphe ? Une approche plus formelle.'
file_location: '/assets/files/care/dezelfdegraafFormeel.mov'
file_icon_name: 'play_arrow'
link_name: 'Télécharger'
- file_title: 'Explication des exercices de graphes du cours des élèves'
file_info: 'Quels dessins représentent le même graphe ? Une approche avec des couleurs.'
file_location: '/assets/files/care/dezelfdeGraaf.mov'
file_icon_name: 'play_arrow'
link_name: 'Télécharger'
- file_title: 'Le cours des élèves - Finalité Générale'
file_info: 'Cours des élèves'
file_location: '/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Ensemble de cartes - Également disponible en version imprimée'
file_info: "À l'aide de cet ensemble de cartes, vous pouvez amener les élèves à réfléchir aux aspects éthiques des nouvelles technologies. Qu'en est-il de la vie privée ? Les contacts sociaux ne sont-ils pas compromis ? Quelles technologies sont bien accueillies ? Qu'est-ce qui n'est pas souhaitable ? Les nouvelles technologies sont-elles abordables pour tous ?"
file_location: "/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Manuel de l'ensemble de cartes"
file_info: "Ce manuel fournit des explications supplémentaires sur l'ensemble de cartes."
file_location: "/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: "Arbre de décision du projet 'mBrAIn' sous forme non compacte"
file_info: "Dans le projet de recherche 'mBrain', qui vise le développement d'une application prédisant une crise de migraine, une arborescence de décision a été construite. Cette arborescence de décision aborde un problème de classification binaire : il n'y a que deux classes, 'Migraine' et 'Pas de migraine'. (Sources : Femke Ongenae. (2021), UGent ; Van Hoecke, S., Ongenae, F., Paemeleire, K., & Vandenbussche, N. (2020). App doit prédire les maux de tête. EOS Wetenschap Special, Technologie en gezondheid, 25.) Nous avons transformé la forme de cette arborescence de décision en une arborescence de décision binaire pour montrer que cette forme n'est pas toujours conviviale. Pour plus d'explications, voir le chapitre 4 du cours des élèves de ce projet."
file_location: "/assets/files/care/MBrainBeslissingsboom.png"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Recherche de la parole - Pensée computationnelle (activité débranchée)"
file_location: '/assets/files/care/MBrainBeslissingsboom.png'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Recherche de la parole - Pensée computationnelle (activité débranchée)'
file_info: "Le syndrome d'enfermement est l'une des pires conditions médicales. Vous êtes complètement paralysé, sauf peut-être pour cligner des yeux. Votre esprit intelligent est enfermé dans un corps inutile : vous pouvez tout ressentir, mais pas communiquer. Cela peut arriver à n'importe qui, à tout moment, suite à un AVC. Si vous voulez aider les personnes atteintes du syndrome d'enfermement, vaut-il mieux être médecin ou infirmier ? Ou en tant qu'informaticien, pouvez-vous aussi aider ?"
file_location: "/assets/files/care/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/care/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
stem:
title: "Python en STEM"
sub_title: "Visualisations de données avec Python"
description: "Dans ce programme, vous apprendrez à aborder des problèmes complexes de manière plus simple et plus rapide avec le langage de programmation Python. La programmation peut jouer un rôle de liaison entre la science, la technologie, la conception et les mathématiques appliquées. En bref, grâce à Python, nous tirons le meilleur parti de STEM."
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
title: 'Python en STEM'
sub_title: 'Visualisations de données avec Python'
description: 'Dans ce programme, vous apprendrez à aborder des problèmes complexes de manière plus simple et plus rapide avec le langage de programmation Python. La programmation peut jouer un rôle de liaison entre la science, la technologie, la conception et les mathématiques appliquées. En bref, grâce à Python, nous tirons le meilleur parti de STEM.'
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
agriculture:
title: "IA dans l'Agriculture"
sub_title: "IA dans l'agriculture"
description: "Retirer les tomates pourries pendant la récolte ? L'intelligence artificielle peut aider. Mais comment ? Les élèves de la deuxième et de la troisième année (enseignement secondaire) travaillent avec l'IA. Peut-être qu'un tapis roulant vibrant pourrait améliorer le système encore davantage ?"
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
curricula_files:
- file_title: "Conception"
file_info: "Conception du tapis roulant"
file_location: "/assets/files/art/Transportband_InnoVET_RCH.zip"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: 'Conception'
file_info: 'Conception du tapis roulant'
file_location: '/assets/files/art/Transportband_InnoVET_RCH.zip'
file_icon_name: 'description'
link_name: 'Télécharger'
art:
title: "IA dans l'Art"
sub_title: "Robots de dessin en classe"
sub_title: 'Robots de dessin en classe'
description: "Peut-on créer de l'art avec l'intelligence artificielle ? Les élèves de la deuxième et de la troisième année (enseignement secondaire) expriment leur créativité avec l'IA et réfléchissent au résultat. Est-ce de l'art ? Ils découvrent également comment l'IA peut protéger notre patrimoine culturel."
contact: ""
teaser: "https://www.youtube.com/embed/dO-E33G20co"
contact: ''
teaser: 'https://www.youtube.com/embed/dO-E33G20co'
wegostem:
title: "WeGoSTEM"
sub_title: "Robots de dessin en classe"
description: "Nous mettons au défi les enfants de la troisième année (enseignement primaire) de programmer un robot artistique capable de dessiner. Les enfants apprennent de manière ludique de nombreuses compétences STEM, de la technologie à la pensée informatique."
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
title: 'WeGoSTEM'
sub_title: 'Robots de dessin en classe'
description: 'Nous mettons au défi les enfants de la troisième année (enseignement primaire) de programmer un robot artistique capable de dessiner. Les enfants apprennent de manière ludique de nombreuses compétences STEM, de la technologie à la pensée informatique.'
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
computational_thinking:
title: "Pensée informatique"
sub_title: "Pensée informatique en classe"
title: 'Pensée informatique'
sub_title: 'Pensée informatique en classe'
description: "Comment pouvons-nous résoudre des problèmes complexes à l'aide d'un ordinateur ? Grâce à la pensée informatique ! Vous pouvez apprendre cela grâce à diverses activités avec ou sans ordinateur. Nous vous aidons déjà à démarrer."
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
curricula_files:
- file_title: "Concepts et approches de la pensée informatique"
file_info: "poster"
file_location: "/assets/files/computational_thinking/CDposterDwengo2.png"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Explication des quatre concepts de la pensée informatique"
file_info: "Présentation des quatre concepts de la pensée informatique : décomposition, reconnaissance de motifs, abstraction et algorithme. Vous pouvez télécharger le PDF > ouvrir > présenter avec CTRL-L et naviguer avec les touches fléchées."
file_location: "/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Concepts et principes"
file_info: "Aperçu"
file_location: "/assets/files/computational_thinking/Icoontjes.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Machine émotionnelle (tâche)"
file_info: "Comment stimuler les émotions chez un robot ?"
file_location: "/assets/files/computational_thinking/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Machine émotionnelle"
file_info: "Comment stimuler les émotions chez un robot ?"
file_location: "/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Coloriage par numéro"
- file_title: 'Concepts et approches de la pensée informatique'
file_info: 'poster'
file_location: '/assets/files/computational_thinking/CDposterDwengo2.png'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Explication des quatre concepts de la pensée informatique'
file_info: 'Présentation des quatre concepts de la pensée informatique : décomposition, reconnaissance de motifs, abstraction et algorithme. Vous pouvez télécharger le PDF > ouvrir > présenter avec CTRL-L et naviguer avec les touches fléchées.'
file_location: '/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Concepts et principes'
file_info: 'Aperçu'
file_location: '/assets/files/computational_thinking/Icoontjes.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Machine émotionnelle (tâche)'
file_info: 'Comment stimuler les émotions chez un robot ?'
file_location: '/assets/files/computational_thinking/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Machine émotionnelle'
file_info: 'Comment stimuler les émotions chez un robot ?'
file_location: '/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Coloriage par numéro'
file_info: "Les images peuvent être représentées de nombreuses manières. Dans ce casse-tête de coloriage par numéro, vous devez reconstruire une image en utilisant la liste donnée de numéros ; cette liste vous dit dans quelle couleur remplir chaque carré ('pixel')."
file_location: "/assets/files/computational_thinking/kleurenopnummer1.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Un réseau informatique humain"
file_location: '/assets/files/computational_thinking/kleurenopnummer1.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Un réseau informatique humain'
file_info: "Dans cette activité, les élèves découvrent comment fonctionne le transfert de données sur Internet. Les ordinateurs, les smartphones et d'autres appareils connectés par Internet peuvent communiquer entre eux. Pour se comprendre, cette communication doit suivre certaines règles. Nous appelons ces règles un protocole."
file_location: "/assets/files/computational_thinking/menselijkComputernetwerk.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Compression"
file_location: '/assets/files/computational_thinking/menselijkComputernetwerk.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Compression'
file_info: "Pour envoyer des images sur des réseaux, nous voulons représenter l'information avec le moins de données possible. C'est là qu'intervient la compression. À l'aide d'algorithmes, les images sont représentées avec le moins de nombres possible, mais de manière à ce que vous puissiez récupérer la figure originale. D'autres algorithmes restaurent l'image d'origine une fois que l'information a atteint sa destination."
file_location: "/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Programmez un être humain"
file_location: '/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Programmez un être humain'
file_info: "Les ordinateurs ne peuvent pas interpréter et exécutent donc littéralement chaque instruction que vous leur donnez. Le défi du programmeur consiste à résoudre des problèmes en les divisant en petites étapes exécutables par l'ordinateur, et à donner les instructions à l'ordinateur de la bonne manière."
file_location: "/assets/files/computational_thinking/programmeerEensEenMens.pdf"
file_icon_name: "description"
link_name: "Télécharger"
- file_title: "Activité sans ordinateur - Recherche de la parole"
file_location: '/assets/files/computational_thinking/programmeerEensEenMens.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
- file_title: 'Activité sans ordinateur - Recherche de la parole'
file_info: "Le locked-in syndrome est l'une des pires affections médicales. Vous êtes complètement paralysé, sauf peut-être que vous pouvez cligner des yeux. Votre esprit intelligent est emprisonné dans un corps inutile : vous pouvez tout ressentir, mais pas communiquer. Cela peut arriver à n'importe qui, sans avertissement, à la suite d'une attaque. Si vous voulez aider les personnes atteintes du locked-in syndrome, vaut-il mieux être médecin ou infirmier ? Ou un informaticien peut-il aussi aider ?"
file_location: "/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Télécharger"
file_location: '/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Télécharger'
math_with_python:
title: "Python dans le cours de mathématiques"
sub_title: "Python en mathématiques"
title: 'Python dans le cours de mathématiques'
sub_title: 'Python en mathématiques'
description: "Le langage de programmation Python offre des possibilités intéressantes pour enrichir le cours de mathématiques. De la théorie de Pythagore à la création de graphiques personnalisés, en passant par le traitement d'images numériques et la régression linéaire, tout devient plus clair avec Python."
contact: ""
teaser: "https://www.youtube.com/embed/dO-E33G20co"
contact: ''
teaser: 'https://www.youtube.com/embed/dO-E33G20co'
python_programming:
title: "Programmation avec Python"
sub_title: "Programmation de base en Python"
title: 'Programmation avec Python'
sub_title: 'Programmation de base en Python'
description: "Apprendre les principes de base de la programmation ? C'est possible avec ce programme. Nous utilisons Python et apprenons tout sur les séquences, les structures de répétition et les structures de choix. C'est exactement ce qui est stipulé dans les objectifs finaux. Et plus encore !"
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
physical_computing:
title: "Informatique physique"
sub_title: "Programmer des robots en classe"
title: 'Informatique physique'
sub_title: 'Programmer des robots en classe'
description: "Construire un instrument de musique, une voiture ou une station météorologique ? C'est possible avec Dwenguino, une plateforme de microcontrôleurs avec son propre environnement de programmation. Les élèves du primaire et du secondaire peuvent commencer à l'utiliser immédiatement. En vrai ou dans notre simulateur, en mode blocs ou textuel."
contact: "Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org."
teaser: "https://www.youtube.com/embed/tqSnpAKLsu8"
contact: 'Des questions ? Contactez-nous via team@aiopschool.be. La presse peut contacter Francis Wyffels via Francis@dwengo.org.'
teaser: 'https://www.youtube.com/embed/tqSnpAKLsu8'
curricula_files:
- file_title: "Bouw jouw eigen robot"
file_info: "Construisez votre propre robot de conduite."
file_location: "/assets/files/physical_computing/bouwjouweigenrobot.pdf"
file_icon_name: "link"
link_name: "Download"
- file_title: 'Bouw jouw eigen robot'
file_info: 'Construisez votre propre robot de conduite.'
file_location: '/assets/files/physical_computing/bouwjouweigenrobot.pdf'
file_icon_name: 'link'
link_name: 'Download'

View file

@ -10,7 +10,7 @@ strengths:
research_based_text: Alle lespakketten van Dwengo vzw zijn gebaseerd op gedegen wetenschappelijk onderzoek.
inclusive_text: We richten ons op alle kinderen en jongeren met een specifieke aandacht voor het evenwicht tussen meisjes en jongens en leerlingen uit kansengroepen.
socially_relevant_text: We zoeken projecten uit die passen binnen de actualiteit en maatschappelijke thema's.
summary: ""
summary: ''
main: Al onze pakketten zijn gebruiksvriendelijk, maatschappelijk relevant, wetenschappelijk onderbouwd, én inclusief. Leerkrachten over de hele wereld gingen hiermee reeds aan de slag. Jij ook? Verken de lesthema's op onze website!
quote:
text: Je maakt iets praktisch, je leert werken met hardware en je kan zelf iets nieuws cre&euml;ren.
@ -25,357 +25,357 @@ curricula_page:
algorithms:
title: Algoritmes
sub_title: Algoritmes
description: "Leerlingen uit de tweede en de derde graad (SO) leren hoe ze algoritmes kunnen gebruiken om problemen op te lossen. Ze leren hoe ze algoritmes kunnen ontwerpen en hoe ze de efficiëntie van algoritmes kunnen analyseren. Ze leren ook hoe ze algoritmes kunnen gebruiken om problemen op te lossen."
contact: ""
description: 'Leerlingen uit de tweede en de derde graad (SO) leren hoe ze algoritmes kunnen gebruiken om problemen op te lossen. Ze leren hoe ze algoritmes kunnen ontwerpen en hoe ze de efficiëntie van algoritmes kunnen analyseren. Ze leren ook hoe ze algoritmes kunnen gebruiken om problemen op te lossen.'
contact: ''
basics_ai:
title: Basisprincipes van AI
sub_title: Basisprincipes van AI
description: "Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen."
contact: ""
description: 'Onder dit lesthema bundelen we verschillende activiteiten waarin de basisprincipes van artificiële intelligentie (AI) aan bod komen. Leerlingen leren wat AI is, hoe het werkt en hoe het kan worden toegepast in verschillende domeinen.'
contact: ''
kiks:
title: AI en Klimaat
sub_title: KIKS
description: "Leerlingen uit de derde graad (SO) onderzoeken hoe planten zich via hun huidmondjes aanpassen aan de klimaatverandering. Daarvoor tellen ze deze huidmondjes met artificiële intelligentie en beeldherkenning."
contact: ""
description: 'Leerlingen uit de derde graad (SO) onderzoeken hoe planten zich via hun huidmondjes aanpassen aan de klimaatverandering. Daarvoor tellen ze deze huidmondjes met artificiële intelligentie en beeldherkenning.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Projectfiche KIKS"
file_info: "Dit is een kort overzicht van het KIKS-project met projectstructuur- en kenmerken."
file_location: "/assets/files/kiks/projectfiche_kiks.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "De handleiding - ook verkrijgbaar in gedrukte versie"
file_info: "We willen de leerkrachten achtergrondkennis geven over de inhoud van dit project: de klimaatverandering, de biologie van de huidmondjes en de manier waarop planten zich via de huidmondjes aan die klimaatverandering aanpassen, het wetenschappelijk onderzoek van de UGent en de Plantentuin Meise dat aan de grondslag ligt van dit project, burgerwetenschap, wat is artificiële intelligentie (AI), de geschiedenis van AI, het gebruik ervan en de ethiek errond, de principes van digitale beelden, de wiskunde achter de algoritmen en de fundamenten van de momenteel meest gebruikte AI-technieken. We geven ook aan hoe wij met KIKS aan de slag gegaan zijn in de klas."
file_location: "/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Een leerlingencursus"
file_info: "Met de leerlingencursus geven we een voorbeeld van een mogelijk, uitgebreid traject dat een leerkracht met leerlingen kan doorlopen. Het traject omvat de klimaatverandering, de biologie van de huidmondjes met een microscopie-opdracht, de manier waarop planten zich via de huidmondjes aan die klimaatverandering aanpassen, het wetenschappelijk onderzoek van de UGent en de Plantentuin Meise, het verzamelen van de data om een neuraal netwerk te trainen, wat is artificiële intelligentie (AI), de geschiedenis van AI, het gebruik ervan en de ethiek errond, de principes van digitale beelden, het werken met convoluties, de wiskunde achter het Perceptron-algoritme, het lineaire en niet-lineaire classificeren van data, en de fundamenten van machinaal leren."
file_location: "/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "De leerplandoelen"
- file_title: 'Projectfiche KIKS'
file_info: 'Dit is een kort overzicht van het KIKS-project met projectstructuur- en kenmerken.'
file_location: '/assets/files/kiks/projectfiche_kiks.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'De handleiding - ook verkrijgbaar in gedrukte versie'
file_info: 'We willen de leerkrachten achtergrondkennis geven over de inhoud van dit project: de klimaatverandering, de biologie van de huidmondjes en de manier waarop planten zich via de huidmondjes aan die klimaatverandering aanpassen, het wetenschappelijk onderzoek van de UGent en de Plantentuin Meise dat aan de grondslag ligt van dit project, burgerwetenschap, wat is artificiële intelligentie (AI), de geschiedenis van AI, het gebruik ervan en de ethiek errond, de principes van digitale beelden, de wiskunde achter de algoritmen en de fundamenten van de momenteel meest gebruikte AI-technieken. We geven ook aan hoe wij met KIKS aan de slag gegaan zijn in de klas.'
file_location: '/assets/files/kiks/KIKS_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Een leerlingencursus'
file_info: 'Met de leerlingencursus geven we een voorbeeld van een mogelijk, uitgebreid traject dat een leerkracht met leerlingen kan doorlopen. Het traject omvat de klimaatverandering, de biologie van de huidmondjes met een microscopie-opdracht, de manier waarop planten zich via de huidmondjes aan die klimaatverandering aanpassen, het wetenschappelijk onderzoek van de UGent en de Plantentuin Meise, het verzamelen van de data om een neuraal netwerk te trainen, wat is artificiële intelligentie (AI), de geschiedenis van AI, het gebruik ervan en de ethiek errond, de principes van digitale beelden, het werken met convoluties, de wiskunde achter het Perceptron-algoritme, het lineaire en niet-lineaire classificeren van data, en de fundamenten van machinaal leren.'
file_location: '/assets/files/kiks/KIKS_leerlingencursus_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'De leerplandoelen'
file_info: "Binnen het KIKS-project kunnen behoorlijk veel leerdoelen aan bod komen. De leerkracht bepaalt zelf welke leerdoelen in verband gebracht worden met het project. Bovendien biedt het project heel wat mogelijkheden om de leerlingen actief en zelfstandig te laten leren en om ICT-vaardigheden bij te brengen. KIKS kan ook gebruikt worden om een onderzoeksopdracht uit te werken.\n In de minimumdoelen en leerplannen van de verschillende koepels zijn heel wat leerdoelen te vinden die KIKS linken met biologie, aardrijkskunde en wiskunde."
file_location: "/assets/files/kiks/Leerdoelen-KIKS.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Het maken van een nagellakafdruk van een deel van een blad"
file_location: '/assets/files/kiks/Leerdoelen-KIKS.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Het maken van een nagellakafdruk van een deel van een blad'
file_info: "Om het aantal huidmondjes op een deel van een blad van een plant te kennen, bekijken we het bladoppervlak onder de microscoop. We kunnen daarvoor een stuk van de flinterdunne cuticula van het blad verwijderen, maar bij sommige planten lukt dat niet zo goed, bijvoorbeeld door de stugheid van het blad.\nDit kan echter opgevangen worden door dezelfde methode te gebruiken als de onderzoekers van de Plantentuin Meise, nl. een afdruk nemen van een deel van het bladoppervlak met doorzichtige nagellak.\nHet miscroscopische beeld kan met een smartphone gefotografeerd worden."
file_location: "https://www.youtube.com/watch?v=JptF3jhOV5k"
file_icon_name: "play_arrow"
link_name: "Kijk"
file_location: 'https://www.youtube.com/watch?v=JptF3jhOV5k'
file_icon_name: 'play_arrow'
link_name: 'Kijk'
socialrobot:
title: Sociale robot
sub_title: Robotica in de klas
description: "Terwijl leerlingen uit de eerste graad (SO) een sociale robot knutselen en programmeren, leren ze complexe problemen oplossen via computationeel denken. Spelenderwijs werken ze aan de nieuwe eindtermen rond digitale competenties."
description: 'Terwijl leerlingen uit de eerste graad (SO) een sociale robot knutselen en programmeren, leren ze complexe problemen oplossen via computationeel denken. Spelenderwijs werken ze aan de nieuwe eindtermen rond digitale competenties.'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Projectfiche Sociale Robot"
- file_title: 'Projectfiche Sociale Robot'
file_info: "Dit is een kort overzicht van het 'Sociale Robot'-project met projectstructuur en -kenmerken."
file_location: "/assets/files/socialrobot/projectfiche_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Collage sociale robots"
file_info: "De robots op deze foto zijn realisaties van leerlingen van de eerste graad van het secundair onderwijs of zijn prototypes."
file_location: "/assets/files/socialrobot/collage.png"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/projectfiche_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Collage sociale robots'
file_info: 'De robots op deze foto zijn realisaties van leerlingen van de eerste graad van het secundair onderwijs of zijn prototypes.'
file_location: '/assets/files/socialrobot/collage.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Constructiekit voor 'Sociale Robot'-project"
file_info: "Wil jij dat jouw leerlingen ook een sociale robot ontwerpen en bouwen? Dat kan via de constructiekit van Dwengo vzw. Op de figuur ontdek je de huidige samenstelling van de constructiekit. Geïnteresseerd? Contacteer ons via e-mail, bekijk de kit in de shop, of vind meer informatie op deze projectpagina."
file_location: "/assets/files/socialrobot/constructiekit_socialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Van project naar minimumdoelen eerste graad A-stroom"
file_info: 'Wil jij dat jouw leerlingen ook een sociale robot ontwerpen en bouwen? Dat kan via de constructiekit van Dwengo vzw. Op de figuur ontdek je de huidige samenstelling van de constructiekit. Geïnteresseerd? Contacteer ons via e-mail, bekijk de kit in de shop, of vind meer informatie op deze projectpagina.'
file_location: '/assets/files/socialrobot/constructiekit_socialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Van project naar minimumdoelen eerste graad A-stroom'
file_info: "De minimumdoelen waaraan gewerkt kan worden, worden gelinkt aan de verschillende fasen van het 'Sociale Robot'-project."
file_location: "/assets/files/socialrobot/MinimumdoelenA-stroomSocialeRobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Van project naar minimumdoelen eerste graad B-stroom"
file_location: '/assets/files/socialrobot/MinimumdoelenA-stroomSocialeRobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Van project naar minimumdoelen eerste graad B-stroom'
file_info: "De minimumdoelen waaraan gewerkt kan worden, worden gelinkt aan de verschillende fasen van het 'Sociale Robot'-project."
file_location: "/assets/files/socialrobot/minimumdoelenBstroomsocialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Van project naar minimumdoelen tweede graad"
file_location: '/assets/files/socialrobot/minimumdoelenBstroomsocialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Van project naar minimumdoelen tweede graad'
file_info: "De minimumdoelen waaraan gewerkt kan worden, worden gelinkt aan de verschillende fasen van het 'Sociale Robot'-project."
file_location: "/assets/files/socialrobot/minimumdoelentweedegraadsocialerobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotiemachine (onvolledig) - Computationeel denken (unplugged activiteit)"
file_info: "Unplugged activiteit"
file_location: "/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotiemachine (opdracht) - Computationeel denken (unplugged activiteit)"
file_info: "Unplugged activiteit"
file_location: "/assets/files/socialrobot/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotiemachine (volledig) - Computationeel denken (unplugged activiteit)"
file_info: "Unplugged activiteit"
file_location: "/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Emotiemachine met ledmatrix - Computationeel denken (unplugged activiteit)"
file_info: "Unplugged activiteit"
file_location: "/assets/files/socialrobot/emotiemachine_matrices_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Ficheboekje voor leerkrachten"
file_info: "De gebundelde fiches waarin het gebruik van de Dwenguino en van de sensoren en actuatoren uit de doeken wordt gedaan."
file_location: "/assets/files/socialrobot/ficheboekje_lkr.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Fiches voor de leerlingen"
file_info: "In deze fiches wordt het gebruik van de Dwenguino en van de sensoren en actuatoren uit de doeken gedaan."
file_location: "/assets/files/socialrobot/fiches_lln.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Maak een gezicht - Computationeel denken (unplugged activiteit)"
file_info: "Unplugged activiteit"
file_location: "/assets/files/socialrobot/maakeengezicht_activiteit.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Opgaven van opdrachten in de MOOC"
file_info: "Een overzicht van de programmeeroefeningen in de MOOC"
file_location: "/assets/files/socialrobot/Opgaven_MOOC.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/socialrobot/minimumdoelentweedegraadsocialerobot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotiemachine (onvolledig) - Computationeel denken (unplugged activiteit)'
file_info: 'Unplugged activiteit'
file_location: '/assets/files/socialrobot/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotiemachine (opdracht) - Computationeel denken (unplugged activiteit)'
file_info: 'Unplugged activiteit'
file_location: '/assets/files/socialrobot/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotiemachine (volledig) - Computationeel denken (unplugged activiteit)'
file_info: 'Unplugged activiteit'
file_location: '/assets/files/socialrobot/emotiemachine_ingevuld_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Emotiemachine met ledmatrix - Computationeel denken (unplugged activiteit)'
file_info: 'Unplugged activiteit'
file_location: '/assets/files/socialrobot/emotiemachine_matrices_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Ficheboekje voor leerkrachten'
file_info: 'De gebundelde fiches waarin het gebruik van de Dwenguino en van de sensoren en actuatoren uit de doeken wordt gedaan.'
file_location: '/assets/files/socialrobot/ficheboekje_lkr.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Fiches voor de leerlingen'
file_info: 'In deze fiches wordt het gebruik van de Dwenguino en van de sensoren en actuatoren uit de doeken gedaan.'
file_location: '/assets/files/socialrobot/fiches_lln.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Maak een gezicht - Computationeel denken (unplugged activiteit)'
file_info: 'Unplugged activiteit'
file_location: '/assets/files/socialrobot/maakeengezicht_activiteit.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Opgaven van opdrachten in de MOOC'
file_info: 'Een overzicht van de programmeeroefeningen in de MOOC'
file_location: '/assets/files/socialrobot/Opgaven_MOOC.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Poster 'Sociale Robot'-project"
file_info: "De poster geeft de verschillende aspecten van het project weer."
file_location: "/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'De poster geeft de verschillende aspecten van het project weer.'
file_location: '/assets/files/socialrobot/posterSocialeRobot_nl_Qo4ANmV.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Handleiding 'Hallo robot!'"
file_info: "Met dit lesboekje breng je je eigen sociale robot tot leven."
file_location: "/assets/files/socialrobot/handleiding_hallo_robot.pdf"
file_icon_name: "description"
link_name: "Download"
file_info: 'Met dit lesboekje breng je je eigen sociale robot tot leven.'
file_location: '/assets/files/socialrobot/handleiding_hallo_robot.pdf'
file_icon_name: 'description'
link_name: 'Download'
agriculture:
title: AI in de Landbouw
sub_title: AI in de landbouw
description: "Rotte tomaten weghalen tijdens de oogst? Daar kan artificiële intelligentie bij helpen. Maar hoe? Leerlingen uit de tweede en derde graad (SO) gaan met AI aan de slag. Misschien kan een trillende lopende band het systeem nog beter maken?"
description: 'Rotte tomaten weghalen tijdens de oogst? Daar kan artificiële intelligentie bij helpen. Maar hoe? Leerlingen uit de tweede en derde graad (SO) gaan met AI aan de slag. Misschien kan een trillende lopende band het systeem nog beter maken?'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Ontwerp"
file_info: "Ontwerp van de lopende band"
file_location: "/assets/files/art/Transportband_InnoVET_RCH.zip"
file_icon_name: "description"
link_name: "Download"
- file_title: "De lopende band"
file_info: "Video van de detectie van tomaten"
file_location: "https://www.youtube.com/watch?v=6TSqY4ECMU04"
file_icon_name: "play_arrow"
link_name: "Kijk"
- file_title: 'Ontwerp'
file_info: 'Ontwerp van de lopende band'
file_location: '/assets/files/art/Transportband_InnoVET_RCH.zip'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'De lopende band'
file_info: 'Video van de detectie van tomaten'
file_location: 'https://www.youtube.com/watch?v=6TSqY4ECMU04'
file_icon_name: 'play_arrow'
link_name: 'Kijk'
art:
title: AI in de Kunst
sub_title: Tekenrobots in de klas
description: "Kunnen we kunst maken met artificiële intelligentie? Leerlingen uit de tweede en derde graad (SO) leven zich creatief uit met AI en reflecteren over het resultaat. Is dit kunst? Ook ontdekken ze hoe AI ons cultureel erfgoed kan beschermen."
contact: ""
description: 'Kunnen we kunst maken met artificiële intelligentie? Leerlingen uit de tweede en derde graad (SO) leven zich creatief uit met AI en reflecteren over het resultaat. Is dit kunst? Ook ontdekken ze hoe AI ons cultureel erfgoed kan beschermen.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
wegostem:
title: WeGoSTEM
sub_title: Tekenrobots in de klas
description: "We dagen kinderen van de derde graad (BO) uit om een kunstrobot die kan tekenen te programmeren. Spelenderwijs leren de kinderen heel wat STEM-vaardigheden, van techniek tot computationeel denken."
description: 'We dagen kinderen van de derde graad (BO) uit om een kunstrobot die kan tekenen te programmeren. Spelenderwijs leren de kinderen heel wat STEM-vaardigheden, van techniek tot computationeel denken.'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
computational_thinking:
title: Computationeel denken
sub_title: Computationeel denken in de klas
description: "Hoe kunnen we complexe problemen oplossen met behulp van een computer? Dankzij computationeel denken! Dat kan je leren via allerlei activiteiten met óf zonder computer. Wij helpen je alvast op weg."
description: 'Hoe kunnen we complexe problemen oplossen met behulp van een computer? Dankzij computationeel denken! Dat kan je leren via allerlei activiteiten met óf zonder computer. Wij helpen je alvast op weg.'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Computationeel denken en programmeren in een STEM context"
file_info: "Informatievideo over het project"
file_location: "https://www.youtube.com/watch?v=Nifa0vooyKg"
file_icon_name: "play_arrow"
link_name: "Kijk"
- file_title: "Concepten en aanpak computationeel denken"
file_info: "Poster"
file_location: "/assets/files/computational_thinking/CDposterDwengo2.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Vier concepten van Computationeel denken uitgelegd"
file_info: "Presentatie over vier concepten van computationeel denken: decompositie, patroonherkenning, abstractie en algoritme. Je kan de pdf downloaden > openen > presenteren via CTRL-L en navigeren met de pijltjestoetsen."
file_location: "/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Concepten en principes"
file_info: "Overzicht"
file_location: "/assets/files/computational_thinking/Icoontjes.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Emotiemachine (opdracht)"
file_info: "Hoe kan je emoties stimuleren bij een robot?"
file_location: "/assets/files/computational_thinking/emotiemachine_gids.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Emotiemachine"
file_info: "Hoe kan je emoties stimuleren bij een robot?"
file_location: "/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Kleuren op nummer"
file_info: "Afbeeldingen kunnen op veel manieren worden gerepresenteerd. In deze kleuren op nummer puzzel moet je een afbeelding reconstrueren, gebruikmakend van de gegeven lijst van nummers; deze lijst vertelt je in welke kleur je elk vierkant (pixel) inkleurt."
file_location: "/assets/files/computational_thinking/kleurenopnummer1.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Een menselijk computernetwerk"
file_info: "In deze activiteit maken de leerlingen kennis met hoe overdracht van gegevens over het internet werkt. Computers, smartphones en andere toestellen die met elkaar verbonden zijn via het internet, kunnen met elkaar communiceren. Om elkaar te kunnen begrijpen, dient die communicatie volgens bepaalde afspraken te verlopen. We noemen deze afspraken een protocol."
file_location: "/assets/files/computational_thinking/menselijkComputernetwerk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Comprimeren"
file_info: "Om afbeeldingen te verzenden over netwerken, willen we de informatie met zo weinig mogelijk data representeren. Daar komt compressie aan te pas. Met behulp van algoritmes worden afbeeldingen met zo weinig mogelijk getallen gerepresenteerd, maar wel op zon manier dat je de oorspronkelijke figuur nog kunt terugkrijgen. Andere algoritmes herstellen de oorspronkelijke afbeelding als de informatie de bestemming bereikt heeft."
file_location: "/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Programmeer eens een mens"
file_info: "Computers kunnen niet interpreteren en voeren dus letterlijk iedere instructie uit die je ze geeft. De uitdaging van de programmeur bestaat erin problemen op te lossen door ze op te delen in kleine stappen die uitvoerbaar zijn door de computer, en de instructies op de juiste manier aan de computer te geven."
file_location: "/assets/files/computational_thinking/programmeerEensEenMens.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Unplugged activiteit - Zoektocht naar spraak"
file_info: "Het locked-in syndroom is een van de ergste medische aandoeningen. Je bent volledig verlamd, behalve dat je misschien nog kunt knipperen met een oog. Je intelligente geest zit opgesloten in een nutteloos lichaam: je kan alles voelen, maar niet communiceren. Het kan iedereen overkomen, uit het niets, als gevolg van een beroerte. Als je mensen met het locked-in syndroom zou willen helpen, word je dan best arts of verpleegkundige? Of kan je als computerwetenschapper ook helpen?"
file_location: "/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Computationeel denken en programmeren in een STEM context'
file_info: 'Informatievideo over het project'
file_location: 'https://www.youtube.com/watch?v=Nifa0vooyKg'
file_icon_name: 'play_arrow'
link_name: 'Kijk'
- file_title: 'Concepten en aanpak computationeel denken'
file_info: 'Poster'
file_location: '/assets/files/computational_thinking/CDposterDwengo2.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Vier concepten van Computationeel denken uitgelegd'
file_info: 'Presentatie over vier concepten van computationeel denken: decompositie, patroonherkenning, abstractie en algoritme. Je kan de pdf downloaden > openen > presenteren via CTRL-L en navigeren met de pijltjestoetsen.'
file_location: '/assets/files/computational_thinking/CD4concepten_33V3gBg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Concepten en principes'
file_info: 'Overzicht'
file_location: '/assets/files/computational_thinking/Icoontjes.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Emotiemachine (opdracht)'
file_info: 'Hoe kan je emoties stimuleren bij een robot?'
file_location: '/assets/files/computational_thinking/emotiemachine_gids.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Emotiemachine'
file_info: 'Hoe kan je emoties stimuleren bij een robot?'
file_location: '/assets/files/computational_thinking/emotiemachine_gewoon_nl.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Kleuren op nummer'
file_info: 'Afbeeldingen kunnen op veel manieren worden gerepresenteerd. In deze kleuren op nummer puzzel moet je een afbeelding reconstrueren, gebruikmakend van de gegeven lijst van nummers; deze lijst vertelt je in welke kleur je elk vierkant (pixel) inkleurt.'
file_location: '/assets/files/computational_thinking/kleurenopnummer1.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Een menselijk computernetwerk'
file_info: 'In deze activiteit maken de leerlingen kennis met hoe overdracht van gegevens over het internet werkt. Computers, smartphones en andere toestellen die met elkaar verbonden zijn via het internet, kunnen met elkaar communiceren. Om elkaar te kunnen begrijpen, dient die communicatie volgens bepaalde afspraken te verlopen. We noemen deze afspraken een protocol.'
file_location: '/assets/files/computational_thinking/menselijkComputernetwerk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Comprimeren'
file_info: 'Om afbeeldingen te verzenden over netwerken, willen we de informatie met zo weinig mogelijk data representeren. Daar komt compressie aan te pas. Met behulp van algoritmes worden afbeeldingen met zo weinig mogelijk getallen gerepresenteerd, maar wel op zon manier dat je de oorspronkelijke figuur nog kunt terugkrijgen. Andere algoritmes herstellen de oorspronkelijke afbeelding als de informatie de bestemming bereikt heeft.'
file_location: '/assets/files/computational_thinking/puzzel-gecomprimeerdepixel11.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Programmeer eens een mens'
file_info: 'Computers kunnen niet interpreteren en voeren dus letterlijk iedere instructie uit die je ze geeft. De uitdaging van de programmeur bestaat erin problemen op te lossen door ze op te delen in kleine stappen die uitvoerbaar zijn door de computer, en de instructies op de juiste manier aan de computer te geven.'
file_location: '/assets/files/computational_thinking/programmeerEensEenMens.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Unplugged activiteit - Zoektocht naar spraak'
file_info: 'Het locked-in syndroom is een van de ergste medische aandoeningen. Je bent volledig verlamd, behalve dat je misschien nog kunt knipperen met een oog. Je intelligente geest zit opgesloten in een nutteloos lichaam: je kan alles voelen, maar niet communiceren. Het kan iedereen overkomen, uit het niets, als gevolg van een beroerte. Als je mensen met het locked-in syndroom zou willen helpen, word je dan best arts of verpleegkundige? Of kan je als computerwetenschapper ook helpen?'
file_location: '/assets/files/computational_thinking/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
math_with_python:
title: Python in de Wiskundeles
sub_title: Python in wiskunde
description: "De programmeertaal Python biedt toffe mogelijkheden om de wiskundeles te verrijken. Van de stelling van Pythagoras tot de opmaak van eigen grafieken, digitale beeldverwerking en lineaire regressie, alles wordt duidelijker met Python."
contact: ""
description: 'De programmeertaal Python biedt toffe mogelijkheden om de wiskundeles te verrijken. Van de stelling van Pythagoras tot de opmaak van eigen grafieken, digitale beeldverwerking en lineaire regressie, alles wordt duidelijker met Python.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
python_programming:
title: Programmeren met Python
sub_title: Basis programmeren in Python
description: "De basisprincipes van programmeren aanleren? Dat kan perfect via dit pakket. We gaan aan de slag met Python en leren alles over sequenties, herhalingsstructuur en keuzestructuur. Dat is precies wat er in de eindtermen staat. En meer!"
description: 'De basisprincipes van programmeren aanleren? Dat kan perfect via dit pakket. We gaan aan de slag met Python en leren alles over sequenties, herhalingsstructuur en keuzestructuur. Dat is precies wat er in de eindtermen staat. En meer!'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
stem:
title: Python in STEM
sub_title: Datavisualisaties met Python
description: "In dit pakket leer je complexe problemen eenvoudiger én sneller aanpakken met de programmeertaal Python. Programmeren kan immers een verbindende rol spelen tussen wetenschap, techniek, ontwerp en toegepaste wiskunde. Kortom, dankzij Python halen we het beste uit STEM."
description: 'In dit pakket leer je complexe problemen eenvoudiger én sneller aanpakken met de programmeertaal Python. Programmeren kan immers een verbindende rol spelen tussen wetenschap, techniek, ontwerp en toegepaste wiskunde. Kortom, dankzij Python halen we het beste uit STEM.'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
care:
title: AI in de Zorg
sub_title: AI systemen die helpen in de zorg
description: "Ziekenhuizen maken vandaag al gebruik van artificiële intelligentie. Leerlingen uit de tweede en derde graad (SO) ontdekken welke systemen er bestaan en hoe ze dokters helpen om beslissingen te nemen. Zo leren leerlingen de principes van de beslissingsboom, een veelgebruikte techniek in machine learning."
contact: ""
description: 'Ziekenhuizen maken vandaag al gebruik van artificiële intelligentie. Leerlingen uit de tweede en derde graad (SO) ontdekken welke systemen er bestaan en hoe ze dokters helpen om beslissingen te nemen. Zo leren leerlingen de principes van de beslissingsboom, een veelgebruikte techniek in machine learning.'
contact: ''
teaser: https://www.youtube.com/embed/dO-E33G20co
curricula_files:
- file_title: "Projectfiche AI in de Zorg"
file_info: "Dit is een kort overzicht van project AI in de Zorg met projectstructuur- en kenmerken."
file_location: "/assets/files/care/projectfiche_aiindezorg.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Sprouts"
- file_title: 'Projectfiche AI in de Zorg'
file_info: 'Dit is een kort overzicht van project AI in de Zorg met projectstructuur- en kenmerken.'
file_location: '/assets/files/care/projectfiche_aiindezorg.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Sprouts'
file_info: "Een spel ter inleiding op 'Grafen'."
file_location: "/assets/files/care/Sprouts.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Uitleg bij oefeningen grafen uit de leerlingencursus"
file_info: "Welke figuren stellen er dezelfde graaf voor? Een meer formele werkwijze."
file_location: "/assets/files/care/dezelfdegraafFormeel.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "Uitleg bij oefeningen grafen uit de leerlingencursus"
file_info: "Welke figuren stellen er dezelfde graaf voor? Een werkwijze met kleuren."
file_location: "/assets/files/care/dezelfdeGraaf.mov"
file_icon_name: "play_arrow"
link_name: "Download"
- file_title: "De leerlingencursus - Finaliteit Doorstroom"
file_info: "Leerlingencursus"
file_location: "/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Kaartenset (unplugged activiteit) - Ook verkrijgbaar in gedrukte versie"
file_info: "Aan de hand van deze kaartenset kan je de leerlingen laten stilstaan bij de ethische aspecten van nieuwe technologieën. Hoe zit het met privacy? Komen de sociale contacten niet in het gedrang? Welke technologieën worden met open armen ontvangen? Wat is niet wenselijk? Zijn de nieuwe technologieën voor iedereen betaalbaar?"
file_location: "/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Handleiding kaartenset"
file_info: "Deze handleiding voorziet extra uitleg bij de kaartenset."
file_location: "/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/Sprouts.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Uitleg bij oefeningen grafen uit de leerlingencursus'
file_info: 'Welke figuren stellen er dezelfde graaf voor? Een meer formele werkwijze.'
file_location: '/assets/files/care/dezelfdegraafFormeel.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'Uitleg bij oefeningen grafen uit de leerlingencursus'
file_info: 'Welke figuren stellen er dezelfde graaf voor? Een werkwijze met kleuren.'
file_location: '/assets/files/care/dezelfdeGraaf.mov'
file_icon_name: 'play_arrow'
link_name: 'Download'
- file_title: 'De leerlingencursus - Finaliteit Doorstroom'
file_info: 'Leerlingencursus'
file_location: '/assets/files/care/AIindeZorg_doorstroom_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Kaartenset (unplugged activiteit) - Ook verkrijgbaar in gedrukte versie'
file_info: 'Aan de hand van deze kaartenset kan je de leerlingen laten stilstaan bij de ethische aspecten van nieuwe technologieën. Hoe zit het met privacy? Komen de sociale contacten niet in het gedrang? Welke technologieën worden met open armen ontvangen? Wat is niet wenselijk? Zijn de nieuwe technologieën voor iedereen betaalbaar?'
file_location: '/assets/files/care/Kaartset_AIIndeZorg_AIOpSchool_Dwengo.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Handleiding kaartenset'
file_info: 'Deze handleiding voorziet extra uitleg bij de kaartenset.'
file_location: '/assets/files/care/AIIndeZorgKaartenset_UitlegVoorLeerkracht.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Beslissingsboom 'mBrAIn'-project in niet-compacte vorm"
file_info: "In het onderzoeksproject 'mBrain', dat de ontwikkeling van een app die een migraineaanval voorspelt, als doel heeft, werd een beslissingsboom geconstrueerd. Met deze beslissingsboom wordt een probleem van binaire classificatie aangepakt: er zijn slechts twee klassen: Migraine en Geen migraine. (Bronnen: Femke Ongenae. (2021), UGent; Van Hoecke, S., Ongenae, F., Paemeleire, K., & Vandenbussche, N. (2020). App moet hoofdpijn voorspellen. EOS Wetenschap Special, Technologie en gezondheid, 25.) Wij hebben de vorm van deze beslissingsboom omgevormd tot een binaire beslissingsboom om aan te tonen dat deze vorm niet altijd gebruiksvriendelijk is. Voor meer uitleg zie hoofdstuk 4 van de leerlingencursus van dit project."
file_location: "/assets/files/care/MBrainBeslissingsboom.png"
file_icon_name: "description"
link_name: "Download"
- file_title: "Zoektocht naar spraak - Computationeel denken (unplugged activiteit)"
file_info: "Het locked-in syndroom is een van de ergste medische aandoeningen. Je bent volledig verlamd, behalve dat je misschien nog kunt knipperen met een oog. Je intelligente geest zit opgesloten in een nutteloos lichaam: je kan alles voelen, maar niet communiceren. Het kan iedereen overkomen, uit het niets, als gevolg van een beroerte. Als je mensen met het locked-in syndroom zou willen helpen, word je dan best arts of verpleegkundige? Of kan je als computerwetenschapper ook helpen?"
file_location: "/assets/files/care/ZoektochtNaarSpraak.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Sociale robots en stellingenspel (unplugged activiteit)"
file_info: "In deze presentatie maken leerlingen eerst kennis met sociale robots. Nadien worden de leerlingen aan de hand van enkele stellingen uitgedaagd om stil te staan bij de ethische aspecten van nieuwe technologieën. Hoe zit het met privacy? Komen de sociale contacten niet in het gedrang? Welke technologieën worden met open armen ontvangen? Wat is niet wenselijk? Zijn de nieuwe technologieën voor iedereen betaalbaar?"
file_location: "/assets/files/care/StellingenspelByDwengo.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/care/MBrainBeslissingsboom.png'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Zoektocht naar spraak - Computationeel denken (unplugged activiteit)'
file_info: 'Het locked-in syndroom is een van de ergste medische aandoeningen. Je bent volledig verlamd, behalve dat je misschien nog kunt knipperen met een oog. Je intelligente geest zit opgesloten in een nutteloos lichaam: je kan alles voelen, maar niet communiceren. Het kan iedereen overkomen, uit het niets, als gevolg van een beroerte. Als je mensen met het locked-in syndroom zou willen helpen, word je dan best arts of verpleegkundige? Of kan je als computerwetenschapper ook helpen?'
file_location: '/assets/files/care/ZoektochtNaarSpraak.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Sociale robots en stellingenspel (unplugged activiteit)'
file_info: 'In deze presentatie maken leerlingen eerst kennis met sociale robots. Nadien worden de leerlingen aan de hand van enkele stellingen uitgedaagd om stil te staan bij de ethische aspecten van nieuwe technologieën. Hoe zit het met privacy? Komen de sociale contacten niet in het gedrang? Welke technologieën worden met open armen ontvangen? Wat is niet wenselijk? Zijn de nieuwe technologieën voor iedereen betaalbaar?'
file_location: '/assets/files/care/StellingenspelByDwengo.pdf'
file_icon_name: 'description'
link_name: 'Download'
chatbot:
title: Taaltechnologie
sub_title: Aan de slag met een chatbot
description: "Waar taal en technologie samenkomen, ontstaat het domein van Natural Language Processing. Kan een computer teksten begrijpen, vertalen of zelfs schrijven? Kan een computer emoties herkennen? Leerlingen uit de tweede en derde graad (SO) leren er alles over in dit pakket."
description: 'Waar taal en technologie samenkomen, ontstaat het domein van Natural Language Processing. Kan een computer teksten begrijpen, vertalen of zelfs schrijven? Kan een computer emoties herkennen? Leerlingen uit de tweede en derde graad (SO) leren er alles over in dit pakket.'
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Projectfiche Chatbot"
file_info: "Dit is een kort overzicht van Chatbot-project met projectstructuur- en kenmerken."
file_location: "/assets/files/chatbot/projectfiche_chatbot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Chatbots"
file_info: "In deze brAInfood - gericht naar jongeren - geeft het Kenniscentrum Data & Maatschappij meer informatie over chatbots. De brAInfood bevat een fictief verhaal over Lotte die praat met een chatbot, en vermoedelijk informatie over haar doorgeeft aan bedrijven. Verder worden enkele aandachtspunten met betrekking tot chatbots toegelicht, alsook enkele tips voor jongeren om hun (persoons)gegevens beter te beschermen. Op die manier willen we jongeren bewuster maken van de werking van chatbots en hen stimuleren te reflecteren over de gegevens die van hen worden verzameld."
file_location: "/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "BrAInfood Gepersonaliseerde nieuwsberichten"
file_info: "In deze brAInfood van het Kenniscentrum Data & Maatschappij worden tips gegeven over hoe je de controle houdt over je newsfeed."
file_location: "/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Projectfiche Chatbot'
file_info: 'Dit is een kort overzicht van Chatbot-project met projectstructuur- en kenmerken.'
file_location: '/assets/files/chatbot/projectfiche_chatbot.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Chatbots'
file_info: 'In deze brAInfood - gericht naar jongeren - geeft het Kenniscentrum Data & Maatschappij meer informatie over chatbots. De brAInfood bevat een fictief verhaal over Lotte die praat met een chatbot, en vermoedelijk informatie over haar doorgeeft aan bedrijven. Verder worden enkele aandachtspunten met betrekking tot chatbots toegelicht, alsook enkele tips voor jongeren om hun (persoons)gegevens beter te beschermen. Op die manier willen we jongeren bewuster maken van de werking van chatbots en hen stimuleren te reflecteren over de gegevens die van hen worden verzameld.'
file_location: '/assets/files/chatbot/Brainfood13_Chatbots_NL.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'BrAInfood Gepersonaliseerde nieuwsberichten'
file_info: 'In deze brAInfood van het Kenniscentrum Data & Maatschappij worden tips gegeven over hoe je de controle houdt over je newsfeed.'
file_location: '/assets/files/chatbot/brainfoodaanbevelingnieuws.jpg'
file_icon_name: 'description'
link_name: 'Download'
- file_title: "Handleiding 'Chatbot' - Ook verkrijgbaar in gedrukte versie"
file_info: "Leerkrachten verwerven via deze handleiding voldoende achtergrondinformatie om met (een deel van) het 'Chatbot'-project aan de slag te gaan in de klas. Het boek behandelt verschillende aspecten van taaltechnologie, zoals de geschiedenis van de artificiële intelligentie, de ethische aspecten ervan, sentimentanalyse en cyberpestdetectie, chatbots, sprekende digitale assistenten, en auteursherkenning. Er wordt ook ingegaan op de STEM-eindtermen en de eindtermen rond digitale competentie en mediawijsheid."
file_location: "/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Improbotics - Lesmap - Leerkrachtenversie"
file_info: "In de theatervoorstelling Improbotics improviseert een sociale robot mee in de scènes. In de lesmap vind je informatie over de gebruikte technologieën."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: "Improbotics - Lesmap - Leerlingen"
file_info: "In de theatervoorstelling Improbotics improviseert een sociale robot mee in de scènes. In de lesmap vind je informatie over de gebruikte technologieën."
file_location: "/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf"
file_icon_name: "description"
link_name: "Download"
file_location: '/assets/files/chatbot/Chatbot_handleiding_eerstedruk.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Improbotics - Lesmap - Leerkrachtenversie'
file_info: 'In de theatervoorstelling Improbotics improviseert een sociale robot mee in de scènes. In de lesmap vind je informatie over de gebruikte technologieën.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerkracht.pdf'
file_icon_name: 'description'
link_name: 'Download'
- file_title: 'Improbotics - Lesmap - Leerlingen'
file_info: 'In de theatervoorstelling Improbotics improviseert een sociale robot mee in de scènes. In de lesmap vind je informatie over de gebruikte technologieën.'
file_location: '/assets/files/chatbot/Improbotics_lesmap_Leerling.pdf'
file_icon_name: 'description'
link_name: 'Download'
physical_computing:
title: Physical computing
sub_title: Programmeer robots in de klas
description: "Een muziekinstrument, auto of weerstation bouwen? Dat kan met Dwenguino, een microcontrollerplatform met een eigen programmeeromgeving. Leerlingen uit zowel basis- als secundair onderwijs kunnen er meteen mee aan de slag. In het echt of in onze simulator, blokgebaseerd of tekstueel. "
description: 'Een muziekinstrument, auto of weerstation bouwen? Dat kan met Dwenguino, een microcontrollerplatform met een eigen programmeeromgeving. Leerlingen uit zowel basis- als secundair onderwijs kunnen er meteen mee aan de slag. In het echt of in onze simulator, blokgebaseerd of tekstueel. '
contact: Vragen? Contacteer ons via team@aiopschool.be. De pers kan contact opnemen met Francis wyffels via Francis@dwengo.org.
teaser: https://www.youtube.com/embed/tqSnpAKLsu8
curricula_files:
- file_title: "Bouw jouw eigen robot"
file_info: "Bouw je eigen rijdende robot."
file_location: "/assets/files/physical_computing/bouwjouweigenrobot.pdf"
file_icon_name: "description"
link_name: "Download"
- file_title: 'Bouw jouw eigen robot'
file_info: 'Bouw je eigen rijdende robot.'
file_location: '/assets/files/physical_computing/bouwjouweigenrobot.pdf'
file_icon_name: 'description'
link_name: 'Download'

View file

@ -1,10 +0,0 @@
// Can be placed in dotenv but found it redundant
// Import dotenv from "dotenv";
// Load .env file
// Dotenv.config();
export const DWENGO_API_BASE = 'https://dwengo.org/backend/api';
export const FALLBACK_LANG = 'nl';

View file

@ -8,4 +8,14 @@ export default [
globals: globals.node,
},
},
{
files: ['tests/**/*.ts'],
languageOptions: {
globals: globals.node,
},
rules: {
'no-console': 'off',
},
},
];

View file

@ -5,30 +5,46 @@
"private": true,
"type": "module",
"scripts": {
"build": "tsc --project tsconfig.json",
"dev": "tsx watch --env-file=.env.development.local src/app.ts",
"start": "node --env-file=.env dist/app.js",
"build": "cross-env NODE_ENV=production tsc --project tsconfig.json",
"dev": "cross-env NODE_ENV=development tsx watch --env-file=.env.development.local src/app.ts",
"start": "cross-env NODE_ENV=production node --env-file=.env dist/app.js",
"format": "prettier --write src/",
"format-check": "prettier --check src/",
"lint": "eslint . --fix",
"test:unit": "vitest"
},
"dependencies": {
"@mikro-orm/core": "^6.4.6",
"@mikro-orm/postgresql": "^6.4.6",
"@mikro-orm/reflection": "^6.4.6",
"axios": "^1.8.1",
"@mikro-orm/sqlite": "6.4.6",
"@mikro-orm/core": "6.4.9",
"@mikro-orm/knex": "6.4.9",
"@mikro-orm/postgresql": "6.4.9",
"@mikro-orm/reflection": "6.4.9",
"@mikro-orm/sqlite": "6.4.9",
"axios": "^1.8.2",
"cors": "^2.8.5",
"cross": "^1.0.0",
"cross-env": "^7.0.3",
"dotenv": "^16.4.7",
"express": "^5.0.1",
"uuid": "^11.1.0",
"express-jwt": "^8.5.1",
"gift-pegjs": "^1.0.2",
"isomorphic-dompurify": "^2.22.0",
"js-yaml": "^4.1.0",
"@types/js-yaml": "^4.0.9"
"jsonpath-plus": "^10.3.0",
"jwks-rsa": "^3.1.0",
"loki-logger-ts": "^1.0.2",
"marked": "^15.0.7",
"response-time": "^2.3.3",
"uuid": "^11.1.0",
"winston": "^3.17.0",
"winston-loki": "^6.1.3"
},
"devDependencies": {
"@mikro-orm/cli": "^6.4.6",
"@mikro-orm/cli": "6.4.9",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.0",
"@types/js-yaml": "^4.0.9",
"@types/node": "^22.13.4",
"@types/response-time": "^2.3.8",
"globals": "^15.15.0",
"ts-node": "^10.9.2",
"tsx": "^4.19.3",

View file

@ -1,39 +1,49 @@
import express, { Express, Response } from 'express';
import { initORM } from './orm.js';
import { EnvVars, getNumericEnvVar } from './util/envvars.js';
import themeRoutes from './routes/themes.js';
import learningPathRoutes from './routes/learning-paths.js';
import learningObjectRoutes from './routes/learning-objects.js';
import studentRoutes from './routes/students.js';
import teacherRoutes from './routes/teachers.js';
import groupRoutes from './routes/groups.js';
import submissionRoutes from './routes/submissions.js';
import classRoutes from './routes/classes.js';
import questionRoutes from './routes/questions.js';
import studentRouter from './routes/student.js';
import groupRouter from './routes/groups.js';
import assignmentRouter from './routes/assignments.js';
import submissionRouter from './routes/submissions.js';
import classRouter from './routes/classes.js';
import questionRouter from './routes/questions.js';
import authRouter from './routes/auth.js';
import { authenticateUser } from './middleware/auth/auth.js';
import cors from './middleware/cors.js';
import { getLogger, Logger } from './logging/initalize.js';
import { responseTimeLogger } from './logging/responseTimeLogger.js';
import responseTime from 'response-time';
import { EnvVars, getNumericEnvVar } from './util/envvars.js';
const logger: Logger = getLogger();
const app: Express = express();
const port: string | number = getNumericEnvVar(EnvVars.Port);
app.use(cors);
app.use(express.json());
app.use(express.json());
app.use(responseTime(responseTimeLogger));
app.use(authenticateUser);
// TODO Replace with Express routes
app.get('/', (_, res: Response) => {
logger.debug('GET /');
res.json({
message: 'Hello Dwengo!🚀',
});
});
app.use('/student', studentRoutes);
app.use('/teacher', teacherRoutes);
app.use('/group', groupRoutes);
app.use('/submission', submissionRoutes);
app.use('/class', classRoutes);
app.use('/question', questionRoutes);
app.use('/student', studentRouter);
app.use('/group', groupRouter);
app.use('/assignment', assignmentRouter);
app.use('/submission', submissionRouter);
app.use('/class', classRouter);
app.use('/question', questionRouter);
app.use('/auth', authRouter);
app.use('/theme', themeRoutes);
app.use('/learningPath', learningPathRoutes);
app.use('/learningObject', learningObjectRoutes);
@ -42,7 +52,7 @@ async function startServer() {
await initORM();
app.listen(port, () => {
console.log(`Server is running at http://localhost:${port}`);
logger.info(`Server is running at http://localhost:${port}`);
});
}

View file

@ -1,14 +1,12 @@
// Can be placed in dotenv but found it redundant
// Import dotenv from "dotenv";
// Load .env file
// Dotenv.config();
import { EnvVars, getEnvVar } from './util/envvars.js';
import {Language} from "./entities/content/language.js";
export const DWENGO_API_BASE = 'https://dwengo.org/backend/api';
// API
export const DWENGO_API_BASE = getEnvVar(EnvVars.LearningContentRepoApiBaseUrl);
export const FALLBACK_LANG = getEnvVar(EnvVars.FallbackLanguage);
export const FALLBACK_LANG: Language = Language.Dutch;
// Logging
export const LOG_LEVEL: string = 'development' === process.env.NODE_ENV ? 'debug' : 'info';
export const LOKI_HOST: string = process.env.LOKI_HOST || 'http://localhost:3102';
export const FALLBACK_SEQ_NUM = 1;

View file

@ -0,0 +1,33 @@
import { EnvVars, getEnvVar } from '../util/envvars.js';
type FrontendIdpConfig = {
authority: string;
clientId: string;
scope: string;
responseType: string;
};
type FrontendAuthConfig = {
student: FrontendIdpConfig;
teacher: FrontendIdpConfig;
};
const SCOPE = 'openid profile email';
const RESPONSE_TYPE = 'code';
export function getFrontendAuthConfig(): FrontendAuthConfig {
return {
student: {
authority: getEnvVar(EnvVars.IdpStudentUrl),
clientId: getEnvVar(EnvVars.IdpStudentClientId),
scope: SCOPE,
responseType: RESPONSE_TYPE,
},
teacher: {
authority: getEnvVar(EnvVars.IdpTeacherUrl),
clientId: getEnvVar(EnvVars.IdpTeacherClientId),
scope: SCOPE,
responseType: RESPONSE_TYPE,
},
};
}

View file

@ -1,60 +1,69 @@
import { Request, Response } from 'express';
import {
getLearningObjectById,
getLearningObjectIdsFromPath,
getLearningObjectsFromPath,
} from '../services/learning-objects.js';
import { FALLBACK_LANG } from '../config.js';
import { FilteredLearningObject } from '../interfaces/learning-path.js';
import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifier } from '../interfaces/learning-content.js';
import learningObjectService from '../services/learning-objects/learning-object-service.js';
import { EnvVars, getEnvVar } from '../util/envvars.js';
import { Language } from '../entities/content/language.js';
import { BadRequestException } from '../exceptions.js';
import attachmentService from '../services/learning-objects/attachment-service.js';
import { NotFoundError } from '@mikro-orm/core';
export async function getAllLearningObjects(
req: Request,
res: Response
): Promise<void> {
try {
const hruid = req.query.hruid as string;
const full = req.query.full === 'true';
const language = (req.query.language as string) || FALLBACK_LANG;
if (!hruid) {
res.status(400).json({ error: 'HRUID query is required.' });
return;
}
let learningObjects: FilteredLearningObject[] | string[];
if (full) {
learningObjects = await getLearningObjectsFromPath(hruid, language);
} else {
learningObjects = await getLearningObjectIdsFromPath(
hruid,
language
);
}
res.json(learningObjects);
} catch (error) {
console.error('Error fetching learning objects:', error);
res.status(500).json({ error: 'Internal server error' });
function getLearningObjectIdentifierFromRequest(req: Request): LearningObjectIdentifier {
if (!req.params.hruid) {
throw new BadRequestException('HRUID is required.');
}
return {
hruid: req.params.hruid as string,
language: (req.query.language || getEnvVar(EnvVars.FallbackLanguage)) as Language,
version: parseInt(req.query.version as string),
};
}
export async function getLearningObject(
req: Request,
res: Response
): Promise<void> {
try {
const { hruid } = req.params;
const language = (req.query.language as string) || FALLBACK_LANG;
if (!hruid) {
res.status(400).json({ error: 'HRUID parameter is required.' });
return;
}
const learningObject = await getLearningObjectById(hruid, language);
res.json(learningObject);
} catch (error) {
console.error('Error fetching learning object:', error);
res.status(500).json({ error: 'Internal server error' });
function getLearningPathIdentifierFromRequest(req: Request): LearningPathIdentifier {
if (!req.query.hruid) {
throw new BadRequestException('HRUID is required.');
}
return {
hruid: req.params.hruid as string,
language: (req.query.language as Language) || FALLBACK_LANG,
};
}
export async function getAllLearningObjects(req: Request, res: Response): Promise<void> {
const learningPathId = getLearningPathIdentifierFromRequest(req);
const full = req.query.full;
let learningObjects: FilteredLearningObject[] | string[];
if (full) {
learningObjects = await learningObjectService.getLearningObjectsFromPath(learningPathId);
} else {
learningObjects = await learningObjectService.getLearningObjectIdsFromPath(learningPathId);
}
res.json(learningObjects);
}
export async function getLearningObject(req: Request, res: Response): Promise<void> {
const learningObjectId = getLearningObjectIdentifierFromRequest(req);
const learningObject = await learningObjectService.getLearningObjectById(learningObjectId);
res.json(learningObject);
}
export async function getLearningObjectHTML(req: Request, res: Response): Promise<void> {
const learningObjectId = getLearningObjectIdentifierFromRequest(req);
const learningObject = await learningObjectService.getLearningObjectHTML(learningObjectId);
res.send(learningObject);
}
export async function getAttachment(req: Request, res: Response): Promise<void> {
const learningObjectId = getLearningObjectIdentifierFromRequest(req);
const name = req.params.attachmentName;
const attachment = await attachmentService.getAttachment(learningObjectId, name);
if (!attachment) {
throw new NotFoundError(`Attachment ${name} not found`);
}
res.setHeader('Content-Type', attachment.mimeType).send(attachment.content);
}

View file

@ -1,62 +1,64 @@
import { Request, Response } from 'express';
import { themes } from '../data/themes.js';
import { FALLBACK_LANG } from '../config.js';
import learningPathService from '../services/learning-paths/learning-path-service.js';
import { BadRequestException, NotFoundException } from '../exceptions.js';
import { Language } from '../entities/content/language.js';
import {
fetchLearningPaths,
searchLearningPaths,
} from '../services/learning-paths.js';
PersonalizationTarget,
personalizedForGroup,
personalizedForStudent,
} from '../services/learning-paths/learning-path-personalization-util.js';
/**
* Fetch learning paths based on query parameters.
*/
export async function getLearningPaths(
req: Request,
res: Response
): Promise<void> {
try {
const hruids = req.query.hruid;
const themeKey = req.query.theme as string;
const searchQuery = req.query.search as string;
const language = (req.query.language as string) || FALLBACK_LANG;
export async function getLearningPaths(req: Request, res: Response): Promise<void> {
const hruids = req.query.hruid;
const themeKey = req.query.theme as string;
const searchQuery = req.query.search as string;
const language = (req.query.language as string) || FALLBACK_LANG;
let hruidList;
const forStudent = req.query.forStudent as string;
const forGroupNo = req.query.forGroup as string;
const assignmentNo = req.query.assignmentNo as string;
const classId = req.query.classId as string;
if (hruids) {
hruidList = Array.isArray(hruids)
? hruids.map(String)
: [String(hruids)];
} else if (themeKey) {
const theme = themes.find((t) => {
return t.title === themeKey;
});
if (theme) {
hruidList = theme.hruids;
} else {
res.status(404).json({
error: `Theme "${themeKey}" not found.`,
});
return;
}
} else if (searchQuery) {
const searchResults = await searchLearningPaths(
searchQuery,
language
);
res.json(searchResults);
return;
} else {
hruidList = themes.flatMap((theme) => {
return theme.hruids;
});
let personalizationTarget: PersonalizationTarget | undefined;
if (forStudent) {
personalizationTarget = await personalizedForStudent(forStudent);
} else if (forGroupNo) {
if (!assignmentNo || !classId) {
throw new BadRequestException('If forGroupNo is specified, assignmentNo and classId must also be specified.');
}
const learningPaths = await fetchLearningPaths(
hruidList,
language,
`HRUIDs: ${hruidList.join(', ')}`
);
res.json(learningPaths.data);
} catch (error) {
console.error('❌ Unexpected error fetching learning paths:', error);
res.status(500).json({ error: 'Internal server error' });
personalizationTarget = await personalizedForGroup(classId, parseInt(assignmentNo), parseInt(forGroupNo));
}
let hruidList;
if (hruids) {
hruidList = Array.isArray(hruids) ? hruids.map(String) : [String(hruids)];
} else if (themeKey) {
const theme = themes.find((t) => t.title === themeKey);
if (theme) {
hruidList = theme.hruids;
} else {
throw new NotFoundException(`Theme "${themeKey}" not found.`);
}
} else if (searchQuery) {
const searchResults = await learningPathService.searchLearningPaths(searchQuery, language as Language, personalizationTarget);
res.json(searchResults);
return;
} else {
hruidList = themes.flatMap((theme) => theme.hruids);
}
const learningPaths = await learningPathService.fetchLearningPaths(
hruidList,
language as Language,
`HRUIDs: ${hruidList.join(', ')}`,
personalizationTarget
);
res.json(learningPaths.data);
}

View file

@ -1,6 +1,6 @@
import { Request, Response } from 'express';
import { themes } from '../data/themes.js';
import { loadTranslations } from '../util/translation-helper.js';
import { loadTranslations } from '../util/translationHelper.js';
interface Translations {
curricula_page: {
@ -11,24 +11,19 @@ interface Translations {
export function getThemes(req: Request, res: Response) {
const language = (req.query.language as string)?.toLowerCase() || 'nl';
const translations = loadTranslations<Translations>(language);
const themeList = themes.map((theme) => {
return {
key: theme.title,
title:
translations.curricula_page[theme.title]?.title || theme.title,
description: translations.curricula_page[theme.title]?.description,
image: `https://dwengo.org/images/curricula/logo_${theme.title}.png`,
};
});
const themeList = themes.map((theme) => ({
key: theme.title,
title: translations.curricula_page[theme.title]?.title || theme.title,
description: translations.curricula_page[theme.title]?.description,
image: `https://dwengo.org/images/curricula/logo_${theme.title}.png`,
}));
res.json(themeList);
}
export function getThemeByTitle(req: Request, res: Response) {
const themeKey = req.params.theme;
const theme = themes.find((t) => {
return t.title === themeKey;
});
const theme = themes.find((t) => t.title === themeKey);
if (theme) {
res.json(theme.hruids);

View file

@ -3,10 +3,7 @@ import { Assignment } from '../../entities/assignments/assignment.entity.js';
import { Class } from '../../entities/classes/class.entity.js';
export class AssignmentRepository extends DwengoEntityRepository<Assignment> {
public findByClassAndId(
within: Class,
id: number
): Promise<Assignment | null> {
public findByClassAndId(within: Class, id: number): Promise<Assignment | null> {
return this.findOne({ within: within, id: id });
}
public findAllAssignmentsInClass(within: Class): Promise<Assignment[]> {

View file

@ -4,24 +4,16 @@ import { TeacherInvitation } from '../../entities/classes/teacher-invitation.ent
import { Teacher } from '../../entities/users/teacher.entity.js';
export class TeacherInvitationRepository extends DwengoEntityRepository<TeacherInvitation> {
public findAllInvitationsForClass(
clazz: Class
): Promise<TeacherInvitation[]> {
public findAllInvitationsForClass(clazz: Class): Promise<TeacherInvitation[]> {
return this.findAll({ where: { class: clazz } });
}
public findAllInvitationsBy(sender: Teacher): Promise<TeacherInvitation[]> {
return this.findAll({ where: { sender: sender } });
}
public findAllInvitationsFor(
receiver: Teacher
): Promise<TeacherInvitation[]> {
public findAllInvitationsFor(receiver: Teacher): Promise<TeacherInvitation[]> {
return this.findAll({ where: { receiver: receiver } });
}
public deleteBy(
clazz: Class,
sender: Teacher,
receiver: Teacher
): Promise<void> {
public deleteBy(clazz: Class, sender: Teacher, receiver: Teacher): Promise<void> {
return this.deleteWhere({
sender: sender,
receiver: receiver,

View file

@ -1,16 +1,37 @@
import { DwengoEntityRepository } from '../dwengo-entity-repository.js';
import { Attachment } from '../../entities/content/attachment.entity.js';
import { LearningObject } from '../../entities/content/learning-object.entity.js';
import { Language } from '../../entities/content/language';
import { LearningObjectIdentifier } from '../../entities/content/learning-object-identifier';
export class AttachmentRepository extends DwengoEntityRepository<Attachment> {
public findByLearningObjectAndNumber(
learningObject: LearningObject,
sequenceNumber: number
) {
public findByLearningObjectIdAndName(learningObjectId: LearningObjectIdentifier, name: string): Promise<Attachment | null> {
return this.findOne({
learningObject: learningObject,
sequenceNumber: sequenceNumber,
learningObject: {
hruid: learningObjectId.hruid,
language: learningObjectId.language,
version: learningObjectId.version,
},
name: name,
});
}
public findByMostRecentVersionOfLearningObjectAndName(hruid: string, language: Language, attachmentName: string): Promise<Attachment | null> {
return this.findOne(
{
learningObject: {
hruid: hruid,
language: language,
},
name: attachmentName,
},
{
orderBy: {
learningObject: {
version: 'DESC',
},
},
}
);
}
// This repository is read-only for now since creating own learning object is an extension feature.
}

View file

@ -1,24 +1,33 @@
import { DwengoEntityRepository } from '../dwengo-entity-repository.js';
import { LearningObject } from '../../entities/content/learning-object.entity.js';
import { LearningObjectIdentifier } from '../../entities/content/learning-object-identifier.js';
import { Teacher } from '../../entities/users/teacher.entity';
export class LearningObjectRepository extends DwengoEntityRepository<LearningObject> {
public findByIdentifier(
identifier: LearningObjectIdentifier
): Promise<LearningObject | null> {
return this.findOne({
hruid: identifier.hruid,
language: identifier.language,
version: identifier.version,
});
public findByIdentifier(identifier: LearningObjectIdentifier): Promise<LearningObject | null> {
return this.findOne(
{
hruid: identifier.hruid,
language: identifier.language,
version: identifier.version,
},
{
populate: ['keywords'],
}
);
}
// This repository is read-only for now since creating own learning object is an extension feature.
public findAllByTeacher(teacher: Teacher): Promise<LearningObject[]> {
return this.find(
{ admins: teacher },
{ populate: ['admins'] } // Make sure to load admin relations
public findLatestByHruidAndLanguage(hruid: string, language: Language) {
return this.findOne(
{
hruid: hruid,
language: language,
},
{
populate: ['keywords'],
orderBy: {
version: 'DESC',
},
}
);
}
}

View file

@ -3,11 +3,24 @@ import { LearningPath } from '../../entities/content/learning-path.entity.js';
import { Language } from '../../entities/content/language.js';
export class LearningPathRepository extends DwengoEntityRepository<LearningPath> {
public findByHruidAndLanguage(
hruid: string,
language: Language
): Promise<LearningPath | null> {
return this.findOne({ hruid: hruid, language: language });
public findByHruidAndLanguage(hruid: string, language: Language): Promise<LearningPath | null> {
return this.findOne({ hruid: hruid, language: language }, { populate: ['nodes', 'nodes.transitions'] });
}
/**
* Returns all learning paths which have the given language and whose title OR description contains the
* query string.
*
* @param query The query string we want to seach for in the title or description.
* @param language The language of the learning paths we want to find.
*/
public async findByQueryStringAndLanguage(query: string, language: Language): Promise<LearningPath[]> {
return this.findAll({
where: {
language: language,
$or: [{ title: { $like: `%${query}%` } }, { description: { $like: `%${query}%` } }],
},
populate: ['nodes', 'nodes.transitions'],
});
}
// This repository is read-only for now since creating own learning object is an extension feature.
}

View file

@ -1,8 +1,6 @@
import { EntityRepository, FilterQuery } from '@mikro-orm/core';
export abstract class DwengoEntityRepository<
T extends object,
> extends EntityRepository<T> {
export abstract class DwengoEntityRepository<T extends object> extends EntityRepository<T> {
public async save(entity: T) {
const em = this.getEntityManager();
em.persist(entity);

View file

@ -4,15 +4,13 @@ import { Question } from '../../entities/questions/question.entity.js';
import { Teacher } from '../../entities/users/teacher.entity.js';
export class AnswerRepository extends DwengoEntityRepository<Answer> {
public createAnswer(answer: {
toQuestion: Question;
author: Teacher;
content: string;
}): Promise<Answer> {
const answerEntity = new Answer();
answerEntity.toQuestion = answer.toQuestion;
answerEntity.author = answer.author;
answerEntity.content = answer.content;
public createAnswer(answer: { toQuestion: Question; author: Teacher; content: string }): Promise<Answer> {
const answerEntity = this.create({
toQuestion: answer.toQuestion,
author: answer.author,
content: answer.content,
timestamp: new Date(),
});
return this.insert(answerEntity);
}
public findAllAnswersToQuestion(question: Question): Promise<Answer[]> {

View file

@ -2,15 +2,17 @@ import { DwengoEntityRepository } from '../dwengo-entity-repository.js';
import { Question } from '../../entities/questions/question.entity.js';
import { LearningObjectIdentifier } from '../../entities/content/learning-object-identifier.js';
import { Student } from '../../entities/users/student.entity.js';
import { LearningObject } from '../../entities/content/learning-object.entity';
export class QuestionRepository extends DwengoEntityRepository<Question> {
public createQuestion(question: {
loId: LearningObjectIdentifier;
author: Student;
content: string;
}): Promise<Question> {
const questionEntity = new Question();
public createQuestion(question: { loId: LearningObjectIdentifier; author: Student; content: string }): Promise<Question> {
const questionEntity = this.create({
learningObjectHruid: question.loId.hruid,
learningObjectLanguage: question.loId.language,
learningObjectVersion: question.loId.version,
author: question.author,
content: question.content,
timestamp: new Date(),
});
questionEntity.learningObjectHruid = question.loId.hruid;
questionEntity.learningObjectLanguage = question.loId.language;
questionEntity.learningObjectVersion = question.loId.version;

View file

@ -1,9 +1,4 @@
import {
AnyEntity,
EntityManager,
EntityName,
EntityRepository,
} from '@mikro-orm/core';
import { AnyEntity, EntityManager, EntityName, EntityRepository } from '@mikro-orm/core';
import { forkEntityManager } from '../orm.js';
import { StudentRepository } from './users/student-repository.js';
import { Student } from '../entities/users/student.entity.js';
@ -33,6 +28,8 @@ import { LearningPath } from '../entities/content/learning-path.entity.js';
import { LearningPathRepository } from './content/learning-path-repository.js';
import { AttachmentRepository } from './content/attachment-repository.js';
import { Attachment } from '../entities/content/attachment.entity.js';
import { LearningPathNode } from '../entities/content/learning-path-node.entity.js';
import { LearningPathTransition } from '../entities/content/learning-path-transition.entity.js';
let entityManager: EntityManager | undefined;
@ -59,63 +56,27 @@ function repositoryGetter<T extends AnyEntity, R extends EntityRepository<T>>(
}
/* Users */
export const getUserRepository = repositoryGetter<User, UserRepository<User>>(
User
);
export const getStudentRepository = repositoryGetter<
Student,
StudentRepository
>(Student);
export const getTeacherRepository = repositoryGetter<
Teacher,
TeacherRepository
>(Teacher);
export const getUserRepository = repositoryGetter<User, UserRepository>(User);
export const getStudentRepository = repositoryGetter<Student, StudentRepository>(Student);
export const getTeacherRepository = repositoryGetter<Teacher, TeacherRepository>(Teacher);
/* Classes */
export const getClassRepository = repositoryGetter<Class, ClassRepository>(
Class
);
export const getClassJoinRequestRepository = repositoryGetter<
ClassJoinRequest,
ClassJoinRequestRepository
>(ClassJoinRequest);
export const getTeacherInvitationRepository = repositoryGetter<
TeacherInvitation,
TeacherInvitationRepository
>(TeacherInvitation);
export const getClassRepository = repositoryGetter<Class, ClassRepository>(Class);
export const getClassJoinRequestRepository = repositoryGetter<ClassJoinRequest, ClassJoinRequestRepository>(ClassJoinRequest);
export const getTeacherInvitationRepository = repositoryGetter<TeacherInvitation, TeacherInvitationRepository>(TeacherInvitation);
/* Assignments */
export const getAssignmentRepository = repositoryGetter<
Assignment,
AssignmentRepository
>(Assignment);
export const getGroupRepository = repositoryGetter<Group, GroupRepository>(
Group
);
export const getSubmissionRepository = repositoryGetter<
Submission,
SubmissionRepository
>(Submission);
export const getAssignmentRepository = repositoryGetter<Assignment, AssignmentRepository>(Assignment);
export const getGroupRepository = repositoryGetter<Group, GroupRepository>(Group);
export const getSubmissionRepository = repositoryGetter<Submission, SubmissionRepository>(Submission);
/* Questions and answers */
export const getQuestionRepository = repositoryGetter<
Question,
QuestionRepository
>(Question);
export const getAnswerRepository = repositoryGetter<Answer, AnswerRepository>(
Answer
);
export const getQuestionRepository = repositoryGetter<Question, QuestionRepository>(Question);
export const getAnswerRepository = repositoryGetter<Answer, AnswerRepository>(Answer);
/* Learning content */
export const getLearningObjectRepository = repositoryGetter<
LearningObject,
LearningObjectRepository
>(LearningObject);
export const getLearningPathRepository = repositoryGetter<
LearningPath,
LearningPathRepository
>(LearningPath);
export const getAttachmentRepository = repositoryGetter<
Attachment,
AttachmentRepository
>(Assignment);
export const getLearningObjectRepository = repositoryGetter<LearningObject, LearningObjectRepository>(LearningObject);
export const getLearningPathRepository = repositoryGetter<LearningPath, LearningPathRepository>(LearningPath);
export const getLearningPathNodeRepository = repositoryGetter(LearningPathNode);
export const getLearningPathTransitionRepository = repositoryGetter(LearningPathTransition);
export const getAttachmentRepository = repositoryGetter<Attachment, AttachmentRepository>(Attachment);

View file

@ -23,13 +23,7 @@ export const themes: Theme[] = [
},
{
title: 'art',
hruids: [
'pn_werking',
'un_artificiele_intelligentie',
'art1',
'art2',
'art3',
],
hruids: ['pn_werking', 'un_artificiele_intelligentie', 'art1', 'art2', 'art3'],
},
{
title: 'socialrobot',
@ -37,12 +31,7 @@ export const themes: Theme[] = [
},
{
title: 'agriculture',
hruids: [
'pn_werking',
'un_artificiele_intelligentie',
'agri_landbouw',
'agri_lopendeband',
],
hruids: ['pn_werking', 'un_artificiele_intelligentie', 'agri_landbouw', 'agri_lopendeband'],
},
{
title: 'wegostem',
@ -83,16 +72,7 @@ export const themes: Theme[] = [
},
{
title: 'python_programming',
hruids: [
'pn_werking',
'pn_datatypes',
'pn_operatoren',
'pn_structuren',
'pn_functies',
'art2',
'stem_insectbooks',
'un_algoenprog',
],
hruids: ['pn_werking', 'pn_datatypes', 'pn_operatoren', 'pn_structuren', 'pn_functies', 'art2', 'stem_insectbooks', 'un_algoenprog'],
},
{
title: 'stem',
@ -110,15 +90,7 @@ export const themes: Theme[] = [
},
{
title: 'care',
hruids: [
'pn_werking',
'un_artificiele_intelligentie',
'aiz1_zorg',
'aiz2_grafen',
'aiz3_unplugged',
'aiz4_eindtermen',
'aiz5_triage',
],
hruids: ['pn_werking', 'un_artificiele_intelligentie', 'aiz1_zorg', 'aiz2_grafen', 'aiz3_unplugged', 'aiz4_eindtermen', 'aiz5_triage'],
},
{
title: 'chatbot',

View file

@ -1,7 +1,6 @@
import { Collection, Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core';
import { Assignment } from './assignment.entity.js';
import { Student } from '../users/student.entity.js';
import { GroupRepository } from '../../data/assignments/group-repository.js';
@Entity({
repository: () => {
@ -10,9 +9,7 @@ import { GroupRepository } from '../../data/assignments/group-repository.js';
})
export class Group {
@ManyToOne({
entity: () => {
return Assignment;
},
entity: () => Assignment,
primary: true,
})
assignment!: Assignment;
@ -20,8 +17,8 @@ export class Group {
@PrimaryKey({ type: 'integer', autoincrement: true })
groupNumber?: number;
@ManyToMany(() => {
return Student;
@ManyToMany({
entity: () => Student,
})
members!: Collection<Student>;
members!: Student[];
}

View file

@ -4,33 +4,25 @@ import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { Language } from '../content/language.js';
import { SubmissionRepository } from '../../data/assignments/submission-repository.js';
@Entity({
repository: () => {
return SubmissionRepository;
},
})
@Entity({ repository: () => SubmissionRepository })
export class Submission {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;
@Enum({
items: () => {
return Language;
},
items: () => Language,
primary: true,
})
learningObjectLanguage!: Language;
@PrimaryKey({ type: 'string' })
learningObjectVersion: string = '1';
@PrimaryKey({ type: 'numeric' })
learningObjectVersion: number = 1;
@PrimaryKey({ type: 'integer' })
submissionNumber!: number;
@ManyToOne({
entity: () => {
return Student;
},
entity: () => Student,
})
submitter!: Student;
@ -38,9 +30,7 @@ export class Submission {
submissionTime!: Date;
@ManyToOne({
entity: () => {
return Group;
},
entity: () => Group,
nullable: true,
})
onBehalfOf?: Group;

View file

@ -10,24 +10,18 @@ import { ClassJoinRequestRepository } from '../../data/classes/class-join-reques
})
export class ClassJoinRequest {
@ManyToOne({
entity: () => {
return Student;
},
entity: () => Student,
primary: true,
})
requester!: Student;
@ManyToOne({
entity: () => {
return Class;
},
entity: () => Class,
primary: true,
})
class!: Class;
@Enum(() => {
return ClassJoinRequestStatus;
})
@Enum(() => ClassJoinRequestStatus)
status!: ClassJoinRequestStatus;
}

View file

@ -8,7 +8,6 @@ import {
import { v4 } from 'uuid';
import { Teacher } from '../users/teacher.entity.js';
import { Student } from '../users/student.entity.js';
import { ClassRepository } from '../../data/classes/class-repository.js';
@Entity({
repository: () => {
@ -22,13 +21,9 @@ export class Class {
@Property({ type: 'string' })
displayName!: string;
@ManyToMany(() => {
return Teacher;
})
@ManyToMany(() => Teacher)
teachers!: Collection<Teacher>;
@ManyToMany(() => {
return Student;
})
@ManyToMany(() => Student)
students!: Collection<Student>;
}

View file

@ -6,32 +6,22 @@ import { TeacherInvitationRepository } from '../../data/classes/teacher-invitati
/**
* Invitation of a teacher into a class (in order to teach it).
*/
@Entity({
repository: () => {
return TeacherInvitationRepository;
},
})
@Entity({ repository: () => TeacherInvitationRepository })
export class TeacherInvitation {
@ManyToOne({
entity: () => {
return Teacher;
},
entity: () => Teacher,
primary: true,
})
sender!: Teacher;
@ManyToOne({
entity: () => {
return Teacher;
},
entity: () => Teacher,
primary: true,
})
receiver!: Teacher;
@ManyToOne({
entity: () => {
return Class;
},
entity: () => Class,
primary: true,
})
class!: Class;

View file

@ -1,6 +1,5 @@
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { LearningObject } from './learning-object.entity.js';
import { AttachmentRepository } from '../../data/content/attachment-repository.js';
@Entity({
repository: () => {
@ -16,8 +15,8 @@ export class Attachment {
})
learningObject!: LearningObject;
@PrimaryKey({ type: 'integer' })
sequenceNumber!: number;
@PrimaryKey({ type: 'string' })
name!: string;
@Property({ type: 'string' })
mimeType!: string;

View file

@ -1,8 +1,188 @@
export enum Language {
Afar = 'aa',
Abkhazian = 'ab',
Afrikaans = 'af',
Akan = 'ak',
Albanian = 'sq',
Amharic = 'am',
Arabic = 'ar',
Aragonese = 'an',
Armenian = 'hy',
Assamese = 'as',
Avaric = 'av',
Avestan = 'ae',
Aymara = 'ay',
Azerbaijani = 'az',
Bashkir = 'ba',
Bambara = 'bm',
Basque = 'eu',
Belarusian = 'be',
Bengali = 'bn',
Bihari = 'bh',
Bislama = 'bi',
Bosnian = 'bs',
Breton = 'br',
Bulgarian = 'bg',
Burmese = 'my',
Catalan = 'ca',
Chamorro = 'ch',
Chechen = 'ce',
Chinese = 'zh',
ChurchSlavic = 'cu',
Chuvash = 'cv',
Cornish = 'kw',
Corsican = 'co',
Cree = 'cr',
Czech = 'cs',
Danish = 'da',
Divehi = 'dv',
Dutch = 'nl',
French = 'fr',
Dzongkha = 'dz',
English = 'en',
Germany = 'de',
Esperanto = 'eo',
Estonian = 'et',
Ewe = 'ee',
Faroese = 'fo',
Fijian = 'fj',
Finnish = 'fi',
French = 'fr',
Frisian = 'fy',
Fulah = 'ff',
Georgian = 'ka',
German = 'de',
Gaelic = 'gd',
Irish = 'ga',
Galician = 'gl',
Manx = 'gv',
Greek = 'el',
Guarani = 'gn',
Gujarati = 'gu',
Haitian = 'ht',
Hausa = 'ha',
Hebrew = 'he',
Herero = 'hz',
Hindi = 'hi',
HiriMotu = 'ho',
Croatian = 'hr',
Hungarian = 'hu',
Igbo = 'ig',
Icelandic = 'is',
Ido = 'io',
SichuanYi = 'ii',
Inuktitut = 'iu',
Interlingue = 'ie',
Interlingua = 'ia',
Indonesian = 'id',
Inupiaq = 'ik',
Italian = 'it',
Javanese = 'jv',
Japanese = 'ja',
Kalaallisut = 'kl',
Kannada = 'kn',
Kashmiri = 'ks',
Kanuri = 'kr',
Kazakh = 'kk',
Khmer = 'km',
Kikuyu = 'ki',
Kinyarwanda = 'rw',
Kirghiz = 'ky',
Komi = 'kv',
Kongo = 'kg',
Korean = 'ko',
Kuanyama = 'kj',
Kurdish = 'ku',
Lao = 'lo',
Latin = 'la',
Latvian = 'lv',
Limburgan = 'li',
Lingala = 'ln',
Lithuanian = 'lt',
Luxembourgish = 'lb',
LubaKatanga = 'lu',
Ganda = 'lg',
Macedonian = 'mk',
Marshallese = 'mh',
Malayalam = 'ml',
Maori = 'mi',
Marathi = 'mr',
Malay = 'ms',
Malagasy = 'mg',
Maltese = 'mt',
Mongolian = 'mn',
Nauru = 'na',
Navajo = 'nv',
SouthNdebele = 'nr',
NorthNdebele = 'nd',
Ndonga = 'ng',
Nepali = 'ne',
NorwegianNynorsk = 'nn',
NorwegianBokmal = 'nb',
Norwegian = 'no',
Chichewa = 'ny',
Occitan = 'oc',
Ojibwa = 'oj',
Oriya = 'or',
Oromo = 'om',
Ossetian = 'os',
Punjabi = 'pa',
Persian = 'fa',
Pali = 'pi',
Polish = 'pl',
Portuguese = 'pt',
Pashto = 'ps',
Quechua = 'qu',
Romansh = 'rm',
Romanian = 'ro',
Rundi = 'rn',
Russian = 'ru',
Sango = 'sg',
Sanskrit = 'sa',
Sinhala = 'si',
Slovak = 'sk',
Slovenian = 'sl',
NorthernSami = 'se',
Samoan = 'sm',
Shona = 'sn',
Sindhi = 'sd',
Somali = 'so',
Sotho = 'st',
Spanish = 'es',
Sardinian = 'sc',
Serbian = 'sr',
Swati = 'ss',
Sundanese = 'su',
Swahili = 'sw',
Swedish = 'sv',
Tahitian = 'ty',
Tamil = 'ta',
Tatar = 'tt',
Telugu = 'te',
Tajik = 'tg',
Tagalog = 'tl',
Thai = 'th',
Tibetan = 'bo',
Tigrinya = 'ti',
Tonga = 'to',
Tswana = 'tn',
Tsonga = 'ts',
Turkmen = 'tk',
Turkish = 'tr',
Twi = 'tw',
Uighur = 'ug',
Ukrainian = 'uk',
Urdu = 'ur',
Uzbek = 'uz',
Venda = 've',
Vietnamese = 'vi',
Volapuk = 'vo',
Welsh = 'cy',
Walloon = 'wa',
Wolof = 'wo',
Xhosa = 'xh',
Yiddish = 'yi',
Yoruba = 'yo',
Zhuang = 'za',
Zulu = 'zu',
}
export const languageMap: Record<string, Language> = {

View file

@ -4,6 +4,6 @@ export class LearningObjectIdentifier {
constructor(
public hruid: string,
public language: Language,
public version: string
public version: number
) {}
}

View file

@ -11,8 +11,19 @@ import {
import { Language } from './language.js';
import { Attachment } from './attachment.entity.js';
import { Teacher } from '../users/teacher.entity.js';
import { DwengoContentType } from '../../services/learning-objects/processing/content-type.js';
import { v4 } from 'uuid';
import { LearningObjectRepository } from '../../data/content/learning-object-repository.js';
@Embeddable()
export class EducationalGoal {
@Property({ type: 'string' })
source!: string;
@Property({ type: 'string' })
id!: string;
}
@Embeddable()
export class ReturnValue {
@Property({ type: 'string' })
@ -22,30 +33,25 @@ export class ReturnValue {
callbackSchema!: string;
}
@Entity({
repository: () => {
return LearningObjectRepository;
},
})
@Entity({ repository: () => LearningObjectRepository })
export class LearningObject {
@PrimaryKey({ type: 'string' })
hruid!: string;
@Enum({
items: () => {
return Language;
},
items: () => Language,
primary: true,
})
language!: Language;
@PrimaryKey({ type: 'string' })
version: string = '1';
@PrimaryKey({ type: 'number' })
version: number = 1;
@Property({ type: 'uuid', unique: true })
uuid = v4();
@ManyToMany({
entity: () => {
return Teacher;
},
entity: () => Teacher,
})
admins!: Teacher[];
@ -56,24 +62,22 @@ export class LearningObject {
description!: string;
@Property({ type: 'string' })
contentType!: string;
contentType!: DwengoContentType;
@Property({ type: 'array' })
keywords: string[] = [];
@Property({ type: 'array', nullable: true })
targetAges?: number[];
targetAges?: number[] = [];
@Property({ type: 'bool' })
teacherExclusive: boolean = false;
@Property({ type: 'array' })
skosConcepts!: string[];
skosConcepts: string[] = [];
@Embedded({
entity: () => {
return EducationalGoal;
},
entity: () => EducationalGoal,
array: true,
})
educationalGoals: EducationalGoal[] = [];
@ -87,13 +91,11 @@ export class LearningObject {
@Property({ type: 'smallint', nullable: true })
difficulty?: number;
@Property({ type: 'integer' })
estimatedTime!: number;
@Property({ type: 'integer', nullable: true })
estimatedTime?: number;
@Embedded({
entity: () => {
return ReturnValue;
},
entity: () => ReturnValue,
})
returnValue!: ReturnValue;
@ -104,9 +106,7 @@ export class LearningObject {
contentLocation?: string;
@OneToMany({
entity: () => {
return Attachment;
},
entity: () => Attachment,
mappedBy: 'learningObject',
})
attachments: Attachment[] = [];
@ -114,21 +114,3 @@ export class LearningObject {
@Property({ type: 'blob' })
content!: Buffer;
}
@Embeddable()
export class EducationalGoal {
@Property({ type: 'string' })
source!: string;
@Property({ type: 'string' })
id!: string;
}
export enum ContentType {
Markdown = 'text/markdown',
Image = 'image/image',
Mpeg = 'audio/mpeg',
Pdf = 'application/pdf',
Extern = 'extern',
Blockly = 'Blockly',
}

View file

@ -0,0 +1,37 @@
import { Entity, Enum, ManyToOne, OneToMany, PrimaryKey, Property, Rel } from '@mikro-orm/core';
import { Language } from './language.js';
import { LearningPath } from './learning-path.entity.js';
import { LearningPathTransition } from './learning-path-transition.entity.js';
@Entity()
export class LearningPathNode {
@ManyToOne({ entity: () => LearningPath, primary: true })
learningPath!: Rel<LearningPath>;
@PrimaryKey({ type: 'integer', autoincrement: true })
nodeNumber!: number;
@Property({ type: 'string' })
learningObjectHruid!: string;
@Enum({ items: () => Language })
language!: Language;
@Property({ type: 'number' })
version!: number;
@Property({ type: 'text', nullable: true })
instruction?: string;
@Property({ type: 'bool' })
startNode!: boolean;
@OneToMany({ entity: () => LearningPathTransition, mappedBy: 'node' })
transitions: LearningPathTransition[] = [];
@Property({ length: 3 })
createdAt: Date = new Date();
@Property({ length: 3, onUpdate: () => new Date() })
updatedAt: Date = new Date();
}

View file

@ -0,0 +1,17 @@
import { Entity, ManyToOne, PrimaryKey, Property, Rel } from '@mikro-orm/core';
import { LearningPathNode } from './learning-path-node.entity.js';
@Entity()
export class LearningPathTransition {
@ManyToOne({ entity: () => LearningPathNode, primary: true })
node!: Rel<LearningPathNode>;
@PrimaryKey({ type: 'numeric' })
transitionNumber!: number;
@Property({ type: 'string' })
condition!: string;
@ManyToOne({ entity: () => LearningPathNode })
next!: Rel<LearningPathNode>;
}

View file

@ -1,39 +1,18 @@
import {
Embeddable,
Embedded,
Entity,
Enum,
ManyToMany,
OneToOne,
PrimaryKey,
Property,
} from '@mikro-orm/core';
import { Entity, Enum, ManyToMany, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
import { Language } from './language.js';
import { Teacher } from '../users/teacher.entity.js';
import { LearningPathRepository } from '../../data/content/learning-path-repository.js';
import { LearningPathNode } from './learning-path-node.entity.js';
@Entity({
repository: () => {
return LearningPathRepository;
},
})
@Entity({ repository: () => LearningPathRepository })
export class LearningPath {
@PrimaryKey({ type: 'string' })
hruid!: string;
@Enum({
items: () => {
return Language;
},
primary: true,
})
@Enum({ items: () => Language, primary: true })
language!: Language;
@ManyToMany({
entity: () => {
return Teacher;
},
})
@ManyToMany({ entity: () => Teacher })
admins!: Teacher[];
@Property({ type: 'string' })
@ -42,57 +21,9 @@ export class LearningPath {
@Property({ type: 'text' })
description!: string;
@Property({ type: 'blob' })
image!: string;
@Property({ type: 'blob', nullable: true })
image: Buffer | null = null;
@Embedded({
entity: () => {
return LearningPathNode;
},
array: true,
})
@OneToMany({ entity: () => LearningPathNode, mappedBy: 'learningPath' })
nodes: LearningPathNode[] = [];
}
@Embeddable()
export class LearningPathNode {
@Property({ type: 'string' })
learningObjectHruid!: string;
@Enum({
items: () => {
return Language;
},
})
language!: Language;
@Property({ type: 'string' })
version!: string;
@Property({ type: 'longtext' })
instruction!: string;
@Property({ type: 'bool' })
startNode!: boolean;
@Embedded({
entity: () => {
return LearningPathTransition;
},
array: true,
})
transitions!: LearningPathTransition[];
}
@Embeddable()
export class LearningPathTransition {
@Property({ type: 'string' })
condition!: string;
@OneToOne({
entity: () => {
return LearningPathNode;
},
})
next!: LearningPathNode;
}

View file

@ -3,30 +3,22 @@ import { Question } from './question.entity.js';
import { Teacher } from '../users/teacher.entity.js';
import { AnswerRepository } from '../../data/questions/answer-repository.js';
@Entity({
repository: () => {
return AnswerRepository;
},
})
@Entity({ repository: () => AnswerRepository })
export class Answer {
@ManyToOne({
entity: () => {
return Teacher;
},
entity: () => Teacher,
primary: true,
})
author!: Teacher;
@ManyToOne({
entity: () => {
return Question;
},
entity: () => Question,
primary: true,
})
toQuestion!: Question;
@PrimaryKey({ type: 'integer' })
sequenceNumber!: number;
@PrimaryKey({ type: 'integer', autoincrement: true })
sequenceNumber?: number;
@Property({ type: 'datetime' })
timestamp: Date = new Date();

View file

@ -3,33 +3,25 @@ import { Language } from '../content/language.js';
import { Student } from '../users/student.entity.js';
import { QuestionRepository } from '../../data/questions/question-repository.js';
@Entity({
repository: () => {
return QuestionRepository;
},
})
@Entity({ repository: () => QuestionRepository })
export class Question {
@PrimaryKey({ type: 'string' })
learningObjectHruid!: string;
@Enum({
items: () => {
return Language;
},
items: () => Language,
primary: true,
})
learningObjectLanguage!: Language;
@PrimaryKey({ type: 'string' })
learningObjectVersion: string = '1';
@PrimaryKey({ type: 'number' })
learningObjectVersion: number = 1;
@PrimaryKey({ type: 'integer' })
sequenceNumber!: number;
@PrimaryKey({ type: 'integer', autoincrement: true })
sequenceNumber?: number;
@ManyToOne({
entity: () => {
return Student;
},
entity: () => Student,
})
author!: Student;

View file

@ -5,19 +5,13 @@ import { Group } from '../assignments/group.entity.js';
import { StudentRepository } from '../../data/users/student-repository.js';
@Entity({
repository: () => {
return StudentRepository;
},
repository: () => StudentRepository,
})
export class Student extends User {
@ManyToMany(() => {
return Class;
})
@ManyToMany(() => Class)
classes!: Collection<Class>;
@ManyToMany(() => {
return Group;
})
@ManyToMany(() => Group)
groups!: Collection<Group>;
constructor(

View file

@ -3,14 +3,16 @@ import { User } from './user.entity.js';
import { Class } from '../classes/class.entity.js';
import { TeacherRepository } from '../../data/users/teacher-repository.js';
@Entity({
repository: () => {
return TeacherRepository;
},
})
@Entity({ repository: () => TeacherRepository })
export class Teacher extends User {
@ManyToMany(() => {
return Class;
})
@ManyToMany(() => Class)
classes!: Collection<Class>;
constructor(
public username: string,
public firstName: string,
public lastName: string
) {
super();
}
}

42
backend/src/exceptions.ts Normal file
View file

@ -0,0 +1,42 @@
/**
* Exception for HTTP 400 Bad Request
*/
export class BadRequestException extends Error {
public status = 400;
constructor(error: string) {
super(error);
}
}
/**
* Exception for HTTP 401 Unauthorized
*/
export class UnauthorizedException extends Error {
status = 401;
constructor(message: string = 'Unauthorized') {
super(message);
}
}
/**
* Exception for HTTP 403 Forbidden
*/
export class ForbiddenException extends Error {
status = 403;
constructor(message: string = 'Forbidden') {
super(message);
}
}
/**
* Exception for HTTP 404 Not Found
*/
export class NotFoundException extends Error {
public status = 404;
constructor(error: string) {
super(error);
}
}

View file

@ -1,3 +1,5 @@
import { Language } from '../entities/content/language';
export interface Transition {
default: boolean;
_id: string;
@ -9,15 +11,22 @@ export interface Transition {
};
}
export interface LearningObjectIdentifier {
hruid: string;
language: Language;
version?: number;
}
export interface LearningObjectNode {
_id: string;
learningobject_hruid: string;
version: number;
language: string;
language: Language;
start_node?: boolean;
transitions: Transition[];
created_at: string;
updatedAt: string;
done?: boolean; // True if a submission exists for this node by the user for whom the learning path is customized.
}
export interface LearningPath {
@ -37,6 +46,11 @@ export interface LearningPath {
__order: number;
}
export interface LearningPathIdentifier {
hruid: string;
language: Language;
}
export interface EducationalGoal {
source: string;
id: string;
@ -52,7 +66,7 @@ export interface LearningObjectMetadata {
uuid: string;
hruid: string;
version: number;
language: string;
language: Language;
title: string;
description: string;
difficulty: number;
@ -75,9 +89,9 @@ export interface FilteredLearningObject {
version: number;
title: string;
htmlUrl: string;
language: string;
language: Language;
difficulty: number;
estimatedTime: number;
estimatedTime?: number;
available: boolean;
teacherExclusive: boolean;
educationalGoals: EducationalGoal[];

View file

@ -0,0 +1,53 @@
import { createLogger, format, Logger as WinstonLogger, transports } from 'winston';
import LokiTransport from 'winston-loki';
import { LokiLabels } from 'loki-logger-ts';
import { LOG_LEVEL, LOKI_HOST } from '../config.js';
export class Logger extends WinstonLogger {
constructor() {
super();
}
}
const Labels: LokiLabels = {
source: 'Dwengo-Backend',
service: 'API',
host: 'localhost',
};
let logger: Logger;
function initializeLogger(): Logger {
if (logger !== undefined) {
return logger;
}
const lokiTransport: LokiTransport = new LokiTransport({
host: LOKI_HOST,
labels: Labels,
level: LOG_LEVEL,
json: true,
format: format.combine(format.timestamp(), format.json()),
onConnectionError: (err) => {
// eslint-disable-next-line no-console
console.error(`Connection error: ${err}`);
},
});
const consoleTransport = new transports.Console({
level: LOG_LEVEL,
format: format.combine(format.cli(), format.colorize()),
});
logger = createLogger({
transports: [lokiTransport, consoleTransport],
});
logger.debug(`Logger initialized with level ${LOG_LEVEL}, Loki host ${LOKI_HOST}`);
return logger;
}
export function getLogger(): Logger {
logger ||= initializeLogger();
return logger;
}

View file

@ -0,0 +1,69 @@
import { DefaultLogger, LogContext, LoggerNamespace } from '@mikro-orm/core';
import { getLogger, Logger } from './initalize.js';
import { LokiLabels } from 'loki-logger-ts';
export class MikroOrmLogger extends DefaultLogger {
private logger: Logger = getLogger();
log(namespace: LoggerNamespace, message: string, context?: LogContext) {
if (!this.isEnabled(namespace, context)) {
return;
}
switch (namespace) {
case 'query':
this.logger.debug(this.createMessage(namespace, message, context));
break;
case 'query-params':
// TODO Which log level should this be?
this.logger.info(this.createMessage(namespace, message, context));
break;
case 'schema':
this.logger.info(this.createMessage(namespace, message, context));
break;
case 'discovery':
this.logger.debug(this.createMessage(namespace, message, context));
break;
case 'info':
this.logger.info(this.createMessage(namespace, message, context));
break;
case 'deprecated':
this.logger.warn(this.createMessage(namespace, message, context));
break;
default:
switch (context?.level) {
case 'info':
this.logger.info(this.createMessage(namespace, message, context));
break;
case 'warning':
this.logger.warn(message);
break;
case 'error':
this.logger.error(message);
break;
default:
this.logger.debug(message);
break;
}
}
}
private createMessage(namespace: LoggerNamespace, messageArg: string, context?: LogContext) {
const labels: LokiLabels = {
service: 'ORM',
};
let message: string;
if (context?.label) {
message = `[${namespace}] (${context?.label}) ${messageArg}`;
} else {
message = `[${namespace}] ${messageArg}`;
}
return {
message: message,
labels: labels,
context: context,
};
}
}

View file

@ -0,0 +1,21 @@
import { getLogger, Logger } from './initalize.js';
import { Request, Response } from 'express';
export function responseTimeLogger(req: Request, res: Response, time: number) {
const logger: Logger = getLogger();
const method = req.method;
const url = req.url;
const status = res.statusCode;
logger.info({
message: 'Request completed',
method: method,
url: url,
status: status,
responseTime: Number(time),
labels: {
type: 'responseTime',
},
});
}

View file

@ -0,0 +1,141 @@
import { EnvVars, getEnvVar } from '../../util/envvars.js';
import { expressjwt } from 'express-jwt';
import { JwtPayload } from 'jsonwebtoken';
import jwksClient from 'jwks-rsa';
import * as express from 'express';
import * as jwt from 'jsonwebtoken';
import { AuthenticatedRequest } from './authenticated-request.js';
import { AuthenticationInfo } from './authentication-info.js';
import { ForbiddenException, UnauthorizedException } from '../../exceptions.js';
const JWKS_CACHE = true;
const JWKS_RATE_LIMIT = true;
const REQUEST_PROPERTY_FOR_JWT_PAYLOAD = 'jwtPayload';
const JWT_ALGORITHM = 'RS256'; // Not configurable via env vars since supporting other algorithms would
// Require additional libraries to be added.
const JWT_PROPERTY_NAMES = {
username: 'preferred_username',
firstName: 'given_name',
lastName: 'family_name',
name: 'name',
email: 'email',
};
function createJwksClient(uri: string): jwksClient.JwksClient {
return jwksClient({
cache: JWKS_CACHE,
rateLimit: JWKS_RATE_LIMIT,
jwksUri: uri,
});
}
const idpConfigs = {
student: {
issuer: getEnvVar(EnvVars.IdpStudentUrl),
jwksClient: createJwksClient(getEnvVar(EnvVars.IdpStudentJwksEndpoint)),
},
teacher: {
issuer: getEnvVar(EnvVars.IdpTeacherUrl),
jwksClient: createJwksClient(getEnvVar(EnvVars.IdpTeacherJwksEndpoint)),
},
};
/**
* Express middleware which verifies the JWT Bearer token if one is given in the request.
*/
const verifyJwtToken = expressjwt({
secret: async (_: express.Request, token: jwt.Jwt | undefined) => {
if (!token?.payload || !(token.payload as JwtPayload).iss) {
throw new Error('Invalid token');
}
const issuer = (token.payload as JwtPayload).iss;
const idpConfig = Object.values(idpConfigs).find((config) => config.issuer === issuer);
if (!idpConfig) {
throw new Error('Issuer not accepted.');
}
const signingKey = await idpConfig.jwksClient.getSigningKey(token.header.kid);
if (!signingKey) {
throw new Error('Signing key not found.');
}
return signingKey.getPublicKey();
},
audience: getEnvVar(EnvVars.IdpAudience),
algorithms: [JWT_ALGORITHM],
credentialsRequired: false,
requestProperty: REQUEST_PROPERTY_FOR_JWT_PAYLOAD,
});
/**
* Get an object with information about the authenticated user from a given authenticated request.
*/
function getAuthenticationInfo(req: AuthenticatedRequest): AuthenticationInfo | undefined {
if (!req.jwtPayload) {
return;
}
const issuer = req.jwtPayload.iss;
let accountType: 'student' | 'teacher';
if (issuer === idpConfigs.student.issuer) {
accountType = 'student';
} else if (issuer === idpConfigs.teacher.issuer) {
accountType = 'teacher';
} else {
return;
}
return {
accountType: accountType,
username: req.jwtPayload[JWT_PROPERTY_NAMES.username]!,
name: req.jwtPayload[JWT_PROPERTY_NAMES.name],
firstName: req.jwtPayload[JWT_PROPERTY_NAMES.firstName],
lastName: req.jwtPayload[JWT_PROPERTY_NAMES.lastName],
email: req.jwtPayload[JWT_PROPERTY_NAMES.email],
};
}
/**
* Add the AuthenticationInfo object with the information about the current authentication to the request in order
* to avoid that the routers have to deal with the JWT token.
*/
const addAuthenticationInfo = (req: AuthenticatedRequest, res: express.Response, next: express.NextFunction) => {
req.auth = getAuthenticationInfo(req);
next();
};
export const authenticateUser = [verifyJwtToken, addAuthenticationInfo];
/**
* Middleware which rejects unauthenticated users (with HTTP 401) and authenticated users which do not fulfill
* the given access condition.
* @param accessCondition Predicate over the current AuthenticationInfo. Access is only granted when this evaluates
* to true.
*/
export const authorize =
(accessCondition: (auth: AuthenticationInfo) => boolean) =>
(req: AuthenticatedRequest, res: express.Response, next: express.NextFunction): void => {
if (!req.auth) {
throw new UnauthorizedException();
} else if (!accessCondition(req.auth)) {
throw new ForbiddenException();
} else {
next();
}
};
/**
* Middleware which rejects all unauthenticated users, but accepts all authenticated users.
*/
export const authenticatedOnly = authorize((_) => true);
/**
* Middleware which rejects requests from unauthenticated users or users that aren't students.
*/
export const studentsOnly = authorize((auth) => auth.accountType === 'student');
/**
* Middleware which rejects requests from unauthenticated users or users that aren't teachers.
*/
export const teachersOnly = authorize((auth) => auth.accountType === 'teacher');

View file

@ -0,0 +1,9 @@
import { Request } from 'express';
import { JwtPayload } from 'jsonwebtoken';
import { AuthenticationInfo } from './authentication-info.js';
export interface AuthenticatedRequest extends Request {
// Properties are optional since the user is not necessarily authenticated.
jwtPayload?: JwtPayload;
auth?: AuthenticationInfo;
}

View file

@ -0,0 +1,11 @@
/**
* Object with information about the user who is currently logged in.
*/
export type AuthenticationInfo = {
accountType: 'student' | 'teacher';
username: string;
name?: string;
firstName?: string;
lastName?: string;
email?: string;
};

View file

@ -0,0 +1,7 @@
import cors from 'cors';
import { EnvVars, getEnvVar } from '../util/envvars.js';
export default cors({
origin: getEnvVar(EnvVars.CorsAllowedOrigins).split(','),
allowedHeaders: getEnvVar(EnvVars.CorsAllowedHeaders).split(','),
});

View file

@ -1,7 +1,9 @@
import { Options } from '@mikro-orm/core';
import { LoggerOptions, Options } from '@mikro-orm/core';
import { PostgreSqlDriver } from '@mikro-orm/postgresql';
import { EnvVars, getEnvVar, getNumericEnvVar } from './util/envvars.js';
import { SqliteDriver } from '@mikro-orm/sqlite';
import { MikroOrmLogger } from './logging/mikroOrmLogger.js';
import { LOG_LEVEL } from './config.js';
// Import alle entity-bestanden handmatig
import { User } from './entities/users/user.entity.js';
@ -22,6 +24,7 @@ import { LearningPath } from './entities/content/learning-path.entity.js';
import { Answer } from './entities/questions/answer.entity.js';
import { Question } from './entities/questions/question.entity.js';
import { SqliteAutoincrementSubscriber } from './sqlite-autoincrement-workaround.js';
const entities = [
User,
@ -45,16 +48,16 @@ function config(testingMode: boolean = false): Options {
return {
driver: SqliteDriver,
dbName: getEnvVar(EnvVars.DbName),
subscribers: [new SqliteAutoincrementSubscriber()],
entities: entities,
// EntitiesTs: entitiesTs,
// Workaround: vitest: `TypeError: Unknown file extension ".ts"` (ERR_UNKNOWN_FILE_EXTENSION)
// (see https://mikro-orm.io/docs/guide/project-setup#testing-the-endpoint)
dynamicImportProvider: (id) => {
return import(id);
},
dynamicImportProvider: (id) => import(id),
};
}
return {
driver: PostgreSqlDriver,
host: getEnvVar(EnvVars.DbHost),
@ -63,8 +66,11 @@ function config(testingMode: boolean = false): Options {
user: getEnvVar(EnvVars.DbUsername),
password: getEnvVar(EnvVars.DbPassword),
entities: entities,
//EntitiesTs: entitiesTs,
debug: true,
// EntitiesTs: entitiesTs,
// Logging
debug: LOG_LEVEL === 'debug',
loggerFactory: (options: LoggerOptions) => new MikroOrmLogger(options),
};
}

View file

@ -1,9 +1,15 @@
import { EntityManager, MikroORM } from '@mikro-orm/core';
import config from './mikro-orm.config.js';
import { EnvVars, getEnvVar } from './util/envvars.js';
import { getLogger, Logger } from './logging/initalize.js';
let orm: MikroORM | undefined;
export async function initORM(testingMode: boolean = false) {
const logger: Logger = getLogger();
logger.info('Initializing ORM');
logger.debug('MikroORM config is', config);
orm = await MikroORM.init(config(testingMode));
// Update the database scheme if necessary and enabled.
if (getEnvVar(EnvVars.DbUpdate)) {
@ -22,9 +28,7 @@ export async function initORM(testingMode: boolean = false) {
}
export function forkEntityManager(): EntityManager {
if (!orm) {
throw Error(
'Accessing the Entity Manager before the ORM is fully initialized.'
);
throw Error('Accessing the Entity Manager before the ORM is fully initialized.');
}
return orm.em.fork();
}

View file

@ -0,0 +1,23 @@
import express from 'express';
import { getFrontendAuthConfig } from '../controllers/auth.js';
import { authenticatedOnly, studentsOnly, teachersOnly } from '../middleware/auth/auth.js';
const router = express.Router();
// Returns auth configuration for frontend
router.get('/config', (req, res) => {
res.json(getFrontendAuthConfig());
});
router.get('/testAuthenticatedOnly', authenticatedOnly, (req, res) => {
res.json({ message: 'If you see this, you should be authenticated!' });
});
router.get('/testStudentsOnly', studentsOnly, (req, res) => {
res.json({ message: 'If you see this, you should be a student!' });
});
router.get('/testTeachersOnly', teachersOnly, (req, res) => {
res.json({ message: 'If you see this, you should be a teacher!' });
});
export default router;

View file

@ -32,4 +32,16 @@ router.use('/:hruid/submissions', submissionRoutes);
router.use('/:hruid/:version/questions', questionRoutes)
// Parameter: hruid of learning object
// Query: language, version (optional)
// Route to fetch the HTML rendering of one learning object based on its hruid.
// Example: http://localhost:3000/learningObject/un_ai7/html
router.get('/:hruid/html', getLearningObjectHTML);
// Parameter: hruid of learning object, name of attachment.
// Query: language, version (optional).
// Route to get the raw data of the attachment for one learning object based on its hruid.
// Example: http://localhost:3000/learningObject/u_test/attachment/testimage.png
router.get('/:hruid/html/:attachmentName', getAttachment);
export default router;

View file

@ -0,0 +1,23 @@
import { getAttachmentRepository } from '../../data/repositories.js';
import { Attachment } from '../../entities/content/attachment.entity.js';
import { LearningObjectIdentifier } from '../../interfaces/learning-content.js';
const attachmentService = {
getAttachment(learningObjectId: LearningObjectIdentifier, attachmentName: string): Promise<Attachment | null> {
const attachmentRepo = getAttachmentRepository();
if (learningObjectId.version) {
return attachmentRepo.findByLearningObjectIdAndName(
{
hruid: learningObjectId.hruid,
language: learningObjectId.language,
version: learningObjectId.version,
},
attachmentName
);
}
return attachmentRepo.findByMostRecentVersionOfLearningObjectAndName(learningObjectId.hruid, learningObjectId.language, attachmentName);
},
};
export default attachmentService;

View file

@ -0,0 +1,115 @@
import { LearningObjectProvider } from './learning-object-provider.js';
import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifier } from '../../interfaces/learning-content.js';
import { getLearningObjectRepository, getLearningPathRepository } from '../../data/repositories.js';
import { Language } from '../../entities/content/language.js';
import { LearningObject } from '../../entities/content/learning-object.entity.js';
import { getUrlStringForLearningObject } from '../../util/links.js';
import processingService from './processing/processing-service.js';
import { NotFoundError } from '@mikro-orm/core';
import learningObjectService from './learning-object-service.js';
import { getLogger, Logger } from '../../logging/initalize.js';
const logger: Logger = getLogger();
function convertLearningObject(learningObject: LearningObject | null): FilteredLearningObject | null {
if (!learningObject) {
return null;
}
return {
key: learningObject.hruid,
_id: learningObject.uuid, // For backwards compatibility with the original Dwengo API, we also populate the _id field.
uuid: learningObject.uuid,
language: learningObject.language,
version: learningObject.version,
title: learningObject.title,
description: learningObject.description,
htmlUrl: getUrlStringForLearningObject(learningObject),
available: learningObject.available,
contentType: learningObject.contentType,
contentLocation: learningObject.contentLocation,
difficulty: learningObject.difficulty || 1,
estimatedTime: learningObject.estimatedTime,
keywords: learningObject.keywords,
educationalGoals: learningObject.educationalGoals,
returnValue: {
callback_url: learningObject.returnValue.callbackUrl,
callback_schema: JSON.parse(learningObject.returnValue.callbackSchema),
},
skosConcepts: learningObject.skosConcepts,
targetAges: learningObject.targetAges || [],
teacherExclusive: learningObject.teacherExclusive,
};
}
function findLearningObjectEntityById(id: LearningObjectIdentifier): Promise<LearningObject | null> {
const learningObjectRepo = getLearningObjectRepository();
return learningObjectRepo.findLatestByHruidAndLanguage(id.hruid, id.language as Language);
}
/**
* Service providing access to data about learning objects from the database
*/
const databaseLearningObjectProvider: LearningObjectProvider = {
/**
* Fetches a single learning object by its HRUID
*/
async getLearningObjectById(id: LearningObjectIdentifier): Promise<FilteredLearningObject | null> {
const learningObject = await findLearningObjectEntityById(id);
return convertLearningObject(learningObject);
},
/**
* Obtain a HTML-rendering of the learning object with the given identifier (as a string).
*/
async getLearningObjectHTML(id: LearningObjectIdentifier): Promise<string | null> {
const learningObjectRepo = getLearningObjectRepository();
const learningObject = await learningObjectRepo.findLatestByHruidAndLanguage(id.hruid, id.language as Language);
if (!learningObject) {
return null;
}
return await processingService.render(learningObject, (id) => findLearningObjectEntityById(id));
},
/**
* Fetch the HRUIDs of all learning objects on this path.
*/
async getLearningObjectIdsFromPath(id: LearningPathIdentifier): Promise<string[]> {
const learningPathRepo = getLearningPathRepository();
const learningPath = await learningPathRepo.findByHruidAndLanguage(id.hruid, id.language);
if (!learningPath) {
throw new NotFoundError('The learning path with the given ID could not be found.');
}
return learningPath.nodes.map((it) => it.learningObjectHruid); // TODO: Determine this based on the submissions of the user.
},
/**
* Fetch the full metadata of all learning objects on this path.
*/
async getLearningObjectsFromPath(id: LearningPathIdentifier): Promise<FilteredLearningObject[]> {
const learningPathRepo = getLearningPathRepository();
const learningPath = await learningPathRepo.findByHruidAndLanguage(id.hruid, id.language);
if (!learningPath) {
throw new NotFoundError('The learning path with the given ID could not be found.');
}
const learningObjects = await Promise.all(
learningPath.nodes.map((it) => {
const learningObject = learningObjectService.getLearningObjectById({
hruid: it.learningObjectHruid,
language: it.language,
version: it.version,
});
if (learningObject === null) {
logger.warn(`WARN: Learning object corresponding with node ${it} not found!`);
}
return learningObject;
})
);
return learningObjects.filter((it) => it !== null);
},
};
export default databaseLearningObjectProvider;

View file

@ -0,0 +1,138 @@
import { DWENGO_API_BASE } from '../../config.js';
import { fetchWithLogging } from '../../util/apiHelper.js';
import {
FilteredLearningObject,
LearningObjectIdentifier,
LearningObjectMetadata,
LearningObjectNode,
LearningPathIdentifier,
LearningPathResponse,
} from '../../interfaces/learning-content.js';
import dwengoApiLearningPathProvider from '../learning-paths/dwengo-api-learning-path-provider.js';
import { LearningObjectProvider } from './learning-object-provider.js';
import { getLogger, Logger } from '../../logging/initalize.js';
const logger: Logger = getLogger();
/**
* Helper function to convert the learning object metadata retrieved from the API to a FilteredLearningObject which
* our API should return.
* @param data
*/
function filterData(data: LearningObjectMetadata): FilteredLearningObject {
return {
key: data.hruid, // Hruid learningObject (not path)
_id: data._id,
uuid: data.uuid,
version: data.version,
title: data.title,
htmlUrl: `/learningObject/${data.hruid}/html?language=${data.language}&version=${data.version}`, // Url to fetch html content
language: data.language,
difficulty: data.difficulty,
estimatedTime: data.estimated_time,
available: data.available,
teacherExclusive: data.teacher_exclusive,
educationalGoals: data.educational_goals, // List with learningObjects
keywords: data.keywords, // For search
description: data.description, // For search (not an actual description)
targetAges: data.target_ages,
contentType: data.content_type, // Markdown, image, audio, etc.
contentLocation: data.content_location, // If content type extern
skosConcepts: data.skos_concepts,
returnValue: data.return_value, // Callback response information
};
}
/**
* Generic helper function to fetch all learning objects from a given path (full data or just HRUIDs)
*/
async function fetchLearningObjects(learningPathId: LearningPathIdentifier, full: boolean): Promise<FilteredLearningObject[] | string[]> {
try {
const learningPathResponse: LearningPathResponse = await dwengoApiLearningPathProvider.fetchLearningPaths(
[learningPathId.hruid],
learningPathId.language,
`Learning path for HRUID "${learningPathId.hruid}"`
);
if (!learningPathResponse.success || !learningPathResponse.data?.length) {
logger.warn(`⚠️ WARNING: Learning path "${learningPathId.hruid}" exists but contains no learning objects.`);
return [];
}
const nodes: LearningObjectNode[] = learningPathResponse.data[0].nodes;
if (!full) {
return nodes.map((node) => node.learningobject_hruid);
}
const objects = await Promise.all(
nodes.map(async (node) =>
dwengoApiLearningObjectProvider.getLearningObjectById({
hruid: node.learningobject_hruid,
language: learningPathId.language,
})
)
);
return objects.filter((obj): obj is FilteredLearningObject => obj !== null);
} catch (error) {
logger.error('❌ Error fetching learning objects:', error);
return [];
}
}
const dwengoApiLearningObjectProvider: LearningObjectProvider = {
/**
* Fetches a single learning object by its HRUID
*/
async getLearningObjectById(id: LearningObjectIdentifier): Promise<FilteredLearningObject | null> {
const metadataUrl = `${DWENGO_API_BASE}/learningObject/getMetadata`;
const metadata = await fetchWithLogging<LearningObjectMetadata>(
metadataUrl,
`Metadata for Learning Object HRUID "${id.hruid}" (language ${id.language})`,
{
params: id,
}
);
if (!metadata || typeof metadata !== 'object') {
logger.warn(`⚠️ WARNING: Learning object "${id.hruid}" not found.`);
return null;
}
return filterData(metadata);
},
/**
* Fetch full learning object data (metadata)
*/
async getLearningObjectsFromPath(id: LearningPathIdentifier): Promise<FilteredLearningObject[]> {
return (await fetchLearningObjects(id, true)) as FilteredLearningObject[];
},
/**
* Fetch only learning object HRUIDs
*/
async getLearningObjectIdsFromPath(id: LearningPathIdentifier): Promise<string[]> {
return (await fetchLearningObjects(id, false)) as string[];
},
/**
* Obtain a HTML-rendering of the learning object with the given identifier (as a string). For learning objects
* from the Dwengo API, this means passing through the HTML rendering from there.
*/
async getLearningObjectHTML(id: LearningObjectIdentifier): Promise<string | null> {
const htmlUrl = `${DWENGO_API_BASE}/learningObject/getRaw`;
const html = await fetchWithLogging<string>(htmlUrl, `Metadata for Learning Object HRUID "${id.hruid}" (language ${id.language})`, {
params: id,
});
if (!html) {
logger.warn(`⚠️ WARNING: Learning object "${id.hruid}" not found.`);
return null;
}
return html;
},
};
export default dwengoApiLearningObjectProvider;

View file

@ -0,0 +1,23 @@
import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifier } from '../../interfaces/learning-content.js';
export interface LearningObjectProvider {
/**
* Fetches a single learning object by its HRUID
*/
getLearningObjectById(id: LearningObjectIdentifier): Promise<FilteredLearningObject | null>;
/**
* Fetch full learning object data (metadata)
*/
getLearningObjectsFromPath(id: LearningPathIdentifier): Promise<FilteredLearningObject[]>;
/**
* Fetch only learning object HRUIDs
*/
getLearningObjectIdsFromPath(id: LearningPathIdentifier): Promise<string[]>;
/**
* Obtain a HTML-rendering of the learning object with the given identifier (as a string).
*/
getLearningObjectHTML(id: LearningObjectIdentifier): Promise<string | null>;
}

View file

@ -0,0 +1,47 @@
import { FilteredLearningObject, LearningObjectIdentifier, LearningPathIdentifier } from '../../interfaces/learning-content.js';
import dwengoApiLearningObjectProvider from './dwengo-api-learning-object-provider.js';
import { LearningObjectProvider } from './learning-object-provider.js';
import { EnvVars, getEnvVar } from '../../util/envvars.js';
import databaseLearningObjectProvider from './database-learning-object-provider.js';
function getProvider(id: LearningObjectIdentifier): LearningObjectProvider {
if (id.hruid.startsWith(getEnvVar(EnvVars.UserContentPrefix))) {
return databaseLearningObjectProvider;
}
return dwengoApiLearningObjectProvider;
}
/**
* Service providing access to data about learning objects from the appropriate data source (database or Dwengo-api)
*/
const learningObjectService = {
/**
* Fetches a single learning object by its HRUID
*/
getLearningObjectById(id: LearningObjectIdentifier): Promise<FilteredLearningObject | null> {
return getProvider(id).getLearningObjectById(id);
},
/**
* Fetch full learning object data (metadata)
*/
getLearningObjectsFromPath(id: LearningPathIdentifier): Promise<FilteredLearningObject[]> {
return getProvider(id).getLearningObjectsFromPath(id);
},
/**
* Fetch only learning object HRUIDs
*/
getLearningObjectIdsFromPath(id: LearningPathIdentifier): Promise<string[]> {
return getProvider(id).getLearningObjectIdsFromPath(id);
},
/**
* Obtain a HTML-rendering of the learning object with the given identifier (as a string).
*/
getLearningObjectHTML(id: LearningObjectIdentifier): Promise<string | null> {
return getProvider(id).getLearningObjectHTML(id);
},
};
export default learningObjectService;

View file

@ -0,0 +1,25 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/audio/audio_processor.js
*
* WARNING: The support for audio learning objects is currently still experimental.
*/
import DOMPurify from 'isomorphic-dompurify';
import { type } from 'node:os';
import { DwengoContentType } from '../content-type.js';
import { StringProcessor } from '../string-processor.js';
class AudioProcessor extends StringProcessor {
constructor() {
super(DwengoContentType.AUDIO_MPEG);
}
protected renderFn(audioUrl: string): string {
return DOMPurify.sanitize(`<audio controls>
<source src="${audioUrl}" type=${type}>
Your browser does not support the audio element.
</audio>`);
}
}
export default AudioProcessor;

View file

@ -0,0 +1,18 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/content_type.js
*/
enum DwengoContentType {
TEXT_PLAIN = 'text/plain',
TEXT_MARKDOWN = 'text/markdown',
IMAGE_BLOCK = 'image/image-block',
IMAGE_INLINE = 'image/image',
AUDIO_MPEG = 'audio/mpeg',
APPLICATION_PDF = 'application/pdf',
EXTERN = 'extern',
BLOCKLY = 'blockly',
GIFT = 'text/gift',
CT_SCHEMA = 'text/ct-schema',
}
export { DwengoContentType };

View file

@ -0,0 +1,40 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/extern/extern_processor.js
*
* WARNING: The support for external content is currently still experimental.
*/
import DOMPurify from 'isomorphic-dompurify';
import { ProcessingError } from '../processing-error.js';
import { isValidHttpUrl } from '../../../../util/links.js';
import { DwengoContentType } from '../content-type.js';
import { StringProcessor } from '../string-processor.js';
class ExternProcessor extends StringProcessor {
constructor() {
super(DwengoContentType.EXTERN);
}
override renderFn(externURL: string) {
if (!isValidHttpUrl(externURL)) {
throw new ProcessingError('The url is not valid: ' + externURL);
}
// If a seperate youtube-processor would be added, this code would need to move to that processor
// Converts youtube urls to youtube-embed urls
const match = /(.*youtube.com\/)watch\?v=(.*)/.exec(externURL);
if (match) {
externURL = match[1] + 'embed/' + match[2];
}
return DOMPurify.sanitize(
`
<div class="iframe-container">
<iframe src="${externURL}" allowfullscreen></iframe>
</div>`,
{ ADD_TAGS: ['iframe'], ADD_ATTR: ['allow', 'allowfullscreen', 'frameborder', 'scrolling'] }
);
}
}
export default ExternProcessor;

View file

@ -0,0 +1,61 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/gift/gift_processor.js
*/
import DOMPurify from 'isomorphic-dompurify';
import { GIFTQuestion, parse } from 'gift-pegjs';
import { DwengoContentType } from '../content-type.js';
import { GIFTQuestionRenderer } from './question-renderers/gift-question-renderer.js';
import { MultipleChoiceQuestionRenderer } from './question-renderers/multiple-choice-question-renderer.js';
import { CategoryQuestionRenderer } from './question-renderers/category-question-renderer.js';
import { DescriptionQuestionRenderer } from './question-renderers/description-question-renderer.js';
import { EssayQuestionRenderer } from './question-renderers/essay-question-renderer.js';
import { MatchingQuestionRenderer } from './question-renderers/matching-question-renderer.js';
import { NumericalQuestionRenderer } from './question-renderers/numerical-question-renderer.js';
import { ShortQuestionRenderer } from './question-renderers/short-question-renderer.js';
import { TrueFalseQuestionRenderer } from './question-renderers/true-false-question-renderer.js';
import { StringProcessor } from '../string-processor.js';
class GiftProcessor extends StringProcessor {
private renderers: RendererMap = {
Category: new CategoryQuestionRenderer(),
Description: new DescriptionQuestionRenderer(),
Essay: new EssayQuestionRenderer(),
Matching: new MatchingQuestionRenderer(),
Numerical: new NumericalQuestionRenderer(),
Short: new ShortQuestionRenderer(),
TF: new TrueFalseQuestionRenderer(),
MC: new MultipleChoiceQuestionRenderer(),
};
constructor() {
super(DwengoContentType.GIFT);
}
override renderFn(giftString: string) {
const quizQuestions: GIFTQuestion[] = parse(giftString);
let html = "<div class='learning-object-gift'>\n";
let i = 1;
for (const question of quizQuestions) {
html += ` <div class='gift-question' id='gift-q${i}'>\n`;
html += ' ' + this.renderQuestion(question, i).replaceAll(/\n(.+)/g, '\n $1'); // Replace for indentation.
html += ` </div>\n`;
i++;
}
html += '</div>\n';
return DOMPurify.sanitize(html);
}
private renderQuestion<T extends GIFTQuestion>(question: T, questionNumber: number): string {
const renderer = this.renderers[question.type] as GIFTQuestionRenderer<T>;
return renderer.render(question, questionNumber);
}
}
type RendererMap = {
[K in GIFTQuestion['type']]: GIFTQuestionRenderer<Extract<GIFTQuestion, { type: K }>>;
};
export default GiftProcessor;

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { Category } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class CategoryQuestionRenderer extends GIFTQuestionRenderer<Category> {
render(question: Category, questionNumber: number): string {
throw new ProcessingError("The question type 'Category' is not supported yet!");
}
}

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { Description } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class DescriptionQuestionRenderer extends GIFTQuestionRenderer<Description> {
render(question: Description, questionNumber: number): string {
throw new ProcessingError("The question type 'Description' is not supported yet!");
}
}

View file

@ -0,0 +1,16 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { Essay } from 'gift-pegjs';
export class EssayQuestionRenderer extends GIFTQuestionRenderer<Essay> {
render(question: Essay, questionNumber: number): string {
let renderedHtml = '';
if (question.title) {
renderedHtml += `<h2 class='gift-title' id='gift-q${questionNumber}-title'>${question.title}</h2>\n`;
}
if (question.stem) {
renderedHtml += `<p class='gift-stem' id='gift-q${questionNumber}-stem'>${question.stem.text}</p>\n`;
}
renderedHtml += `<textarea class='gift-essay-answer' id='gift-q${questionNumber}-answer'></textarea>\n`;
return renderedHtml;
}
}

View file

@ -0,0 +1,14 @@
import { GIFTQuestion } from 'gift-pegjs';
/**
* Subclasses of this class are renderers which can render a specific type of GIFT questions to HTML.
*/
export abstract class GIFTQuestionRenderer<T extends GIFTQuestion> {
/**
* Render the given question to HTML.
* @param question The question.
* @param questionNumber The index number of the question.
* @returns The question rendered as HTML.
*/
abstract render(question: T, questionNumber: number): string;
}

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { Matching } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class MatchingQuestionRenderer extends GIFTQuestionRenderer<Matching> {
render(question: Matching, questionNumber: number): string {
throw new ProcessingError("The question type 'Matching' is not supported yet!");
}
}

View file

@ -0,0 +1,23 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { MultipleChoice } from 'gift-pegjs';
export class MultipleChoiceQuestionRenderer extends GIFTQuestionRenderer<MultipleChoice> {
render(question: MultipleChoice, questionNumber: number): string {
let renderedHtml = '';
if (question.title) {
renderedHtml += `<h2 class='gift-title' id='gift-q${questionNumber}-title'>${question.title}</h2>\n`;
}
if (question.stem) {
renderedHtml += `<p class='gift-stem' id='gift-q${questionNumber}-stem'>${question.stem.text}</p>\n`;
}
let i = 0;
for (const choice of question.choices) {
renderedHtml += `<div class="gift-choice-div">\n`;
renderedHtml += ` <input type='radio' id='gift-q${questionNumber}-choice-${i}' name='gift-q${questionNumber}-choices' value="${i}"/>\n`;
renderedHtml += ` <label for='gift-q${questionNumber}-choice-${i}'>${choice.text}</label>\n`;
renderedHtml += `</div>\n`;
i++;
}
return renderedHtml;
}
}

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { Numerical } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class NumericalQuestionRenderer extends GIFTQuestionRenderer<Numerical> {
render(question: Numerical, questionNumber: number): string {
throw new ProcessingError("The question type 'Numerical' is not supported yet!");
}
}

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { ShortAnswer } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class ShortQuestionRenderer extends GIFTQuestionRenderer<ShortAnswer> {
render(question: ShortAnswer, questionNumber: number): string {
throw new ProcessingError("The question type 'ShortAnswer' is not supported yet!");
}
}

View file

@ -0,0 +1,9 @@
import { GIFTQuestionRenderer } from './gift-question-renderer.js';
import { TrueFalse } from 'gift-pegjs';
import { ProcessingError } from '../../processing-error.js';
export class TrueFalseQuestionRenderer extends GIFTQuestionRenderer<TrueFalse> {
render(question: TrueFalse, questionNumber: number): string {
throw new ProcessingError("The question type 'TrueFalse' is not supported yet!");
}
}

View file

@ -0,0 +1,19 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/image/block_image_processor.js
*/
import InlineImageProcessor from './inline-image-processor.js';
import DOMPurify from 'isomorphic-dompurify';
class BlockImageProcessor extends InlineImageProcessor {
constructor() {
super();
}
override renderFn(imageUrl: string) {
const inlineHtml = super.render(imageUrl);
return DOMPurify.sanitize(`<div>${inlineHtml}</div>`);
}
}
export default BlockImageProcessor;

View file

@ -0,0 +1,24 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/image/inline_image_processor.js
*/
import DOMPurify from 'isomorphic-dompurify';
import { DwengoContentType } from '../content-type.js';
import { ProcessingError } from '../processing-error.js';
import { isValidHttpUrl } from '../../../../util/links.js';
import { StringProcessor } from '../string-processor.js';
class InlineImageProcessor extends StringProcessor {
constructor(contentType: DwengoContentType = DwengoContentType.IMAGE_INLINE) {
super(contentType);
}
override renderFn(imageUrl: string) {
if (!isValidHttpUrl(imageUrl)) {
throw new ProcessingError(`Image URL is invalid: ${imageUrl}`);
}
return DOMPurify.sanitize(`<img src="${imageUrl}" alt="">`);
}
}
export default InlineImageProcessor;

View file

@ -0,0 +1,109 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/markdown/learing_object_markdown_renderer.js [sic!]
*/
import PdfProcessor from '../pdf/pdf-processor.js';
import AudioProcessor from '../audio/audio-processor.js';
import ExternProcessor from '../extern/extern-processor.js';
import InlineImageProcessor from '../image/inline-image-processor.js';
import * as marked from 'marked';
import { getUrlStringForLearningObjectHTML, isValidHttpUrl } from '../../../../util/links.js';
import { ProcessingError } from '../processing-error.js';
import { LearningObjectIdentifier } from '../../../../interfaces/learning-content.js';
import { Language } from '../../../../entities/content/language.js';
import Image = marked.Tokens.Image;
import Heading = marked.Tokens.Heading;
import Link = marked.Tokens.Link;
import RendererObject = marked.RendererObject;
const prefixes = {
learningObject: '@learning-object',
pdf: '@pdf',
audio: '@audio',
extern: '@extern',
video: '@youtube',
notebook: '@notebook',
blockly: '@blockly',
};
function extractLearningObjectIdFromHref(href: string): LearningObjectIdentifier {
const [hruid, language, version] = href.split(/\/(.+)/, 2)[1].split('/');
return {
hruid,
language: language as Language,
version: parseInt(version),
};
}
/**
* An extension for the renderer of the Marked Markdown renderer which adds support for
* - a custom heading,
* - links to other learning objects,
* - embeddings of other learning objects.
*/
const dwengoMarkedRenderer: RendererObject = {
heading(heading: Heading): string {
const text = heading.text;
const level = heading.depth;
const escapedText = text.toLowerCase().replace(/[^\w]+/g, '-');
return (
`<h${level}>\n` +
` <a name="${escapedText}" class="anchor" href="#${escapedText}">\n` +
` <span class="header-link"></span>\n` +
` </a>\n` +
` ${text}\n` +
`</h${level}>\n`
);
},
// When the syntax for a link is used => [text](href "title")
// Render a custom link when the prefix for a learning object is used.
link(link: Link): string {
const href = link.href;
const title = link.title || '';
const text = marked.parseInline(link.text); // There could for example be an image in the link.
if (href.startsWith(prefixes.learningObject)) {
// Link to learning-object
const learningObjectId = extractLearningObjectIdFromHref(href);
return `<a href="${getUrlStringForLearningObjectHTML(learningObjectId)}" target="_blank" title="${title}">${text}</a>`;
}
// Any other link
if (!isValidHttpUrl(href)) {
throw new ProcessingError('Link is not a valid HTTP URL!');
}
//<a href="https://kiks.ilabt.imec.be/hub/tmplogin?id=0101" title="Notebooks Werking"><img src="Knop.png" alt="" title="Knop"></a>
return `<a href="${href}" target="_blank" title="${title}">${text}</a>`;
},
// When the syntax for an image is used => ![text](href "title")
// Render a learning object, pdf, audio or video if a prefix is used.
image(img: Image): string {
const href = img.href;
if (href.startsWith(prefixes.learningObject)) {
// Embedded learning-object
const learningObjectId = extractLearningObjectIdFromHref(href);
return `
<learning-object hruid="${learningObjectId.hruid}" language="${learningObjectId.language}" version="${learningObjectId.version}"/>
`; // Placeholder for the learning object since we cannot fetch its HTML here (this has to be a sync function!)
} else if (href.startsWith(prefixes.pdf)) {
// Embedded pdf
const proc = new PdfProcessor();
return proc.render(href.split(/\/(.+)/, 2)[1]);
} else if (href.startsWith(prefixes.audio)) {
// Embedded audio
const proc = new AudioProcessor();
return proc.render(href.split(/\/(.+)/, 2)[1]);
} else if (href.startsWith(prefixes.extern) || href.startsWith(prefixes.video) || href.startsWith(prefixes.notebook)) {
// Embedded youtube video or notebook (or other extern content)
const proc = new ExternProcessor();
return proc.render(href.split(/\/(.+)/, 2)[1]);
}
// Embedded image
const proc = new InlineImageProcessor();
return proc.render(href);
},
};
export default dwengoMarkedRenderer;

View file

@ -0,0 +1,39 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/markdown/markdown_processor.js
*/
import { marked } from 'marked';
import InlineImageProcessor from '../image/inline-image-processor.js';
import { DwengoContentType } from '../content-type.js';
import dwengoMarkedRenderer from './dwengo-marked-renderer.js';
import { StringProcessor } from '../string-processor.js';
import { ProcessingError } from '../processing-error.js';
class MarkdownProcessor extends StringProcessor {
constructor() {
super(DwengoContentType.TEXT_MARKDOWN);
}
override renderFn(mdText: string) {
let html = '';
try {
marked.use({ renderer: dwengoMarkedRenderer });
html = marked(mdText, { async: false });
html = this.replaceLinks(html); // Replace html image links path
} catch (e: any) {
throw new ProcessingError(e.message);
}
return html;
}
replaceLinks(html: string) {
const proc = new InlineImageProcessor();
html = html.replace(
/<img.*?src="(.*?)".*?(alt="(.*?)")?.*?(title="(.*?)")?.*?>/g,
(match: string, src: string, alt: string, altText: string, title: string, titleText: string) => proc.render(src)
);
return html;
}
}
export { MarkdownProcessor };

View file

@ -0,0 +1,32 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/pdf/pdf_processor.js
*
* WARNING: The support for PDF learning objects is currently still experimental.
*/
import DOMPurify from 'isomorphic-dompurify';
import { DwengoContentType } from '../content-type.js';
import { isValidHttpUrl } from '../../../../util/links.js';
import { ProcessingError } from '../processing-error.js';
import { StringProcessor } from '../string-processor.js';
class PdfProcessor extends StringProcessor {
constructor() {
super(DwengoContentType.APPLICATION_PDF);
}
override renderFn(pdfUrl: string) {
if (!isValidHttpUrl(pdfUrl)) {
throw new ProcessingError(`PDF URL is invalid: ${pdfUrl}`);
}
return DOMPurify.sanitize(
`
<embed src="${pdfUrl}" type="application/pdf" width="100%" height="800px"/>
`,
{ ADD_TAGS: ['embed'] }
);
}
}
export default PdfProcessor;

View file

@ -0,0 +1,5 @@
export class ProcessingError extends Error {
constructor(error: string) {
super(error);
}
}

View file

@ -0,0 +1,83 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/processing_proxy.js
*/
import BlockImageProcessor from './image/block-image-processor.js';
import InlineImageProcessor from './image/inline-image-processor.js';
import { MarkdownProcessor } from './markdown/markdown-processor.js';
import TextProcessor from './text/text-processor.js';
import AudioProcessor from './audio/audio-processor.js';
import PdfProcessor from './pdf/pdf-processor.js';
import ExternProcessor from './extern/extern-processor.js';
import GiftProcessor from './gift/gift-processor.js';
import { LearningObject } from '../../../entities/content/learning-object.entity.js';
import Processor from './processor.js';
import { DwengoContentType } from './content-type.js';
import { LearningObjectIdentifier } from '../../../interfaces/learning-content.js';
import { Language } from '../../../entities/content/language.js';
import { replaceAsync } from '../../../util/async.js';
const EMBEDDED_LEARNING_OBJECT_PLACEHOLDER = /<learning-object hruid="([^"]+)" language="([^"]+)" version="([^"]+)"\/>/g;
const LEARNING_OBJECT_DOES_NOT_EXIST = "<div class='non-existing-learning-object' />";
class ProcessingService {
private processors!: Map<DwengoContentType, Processor<any>>;
constructor() {
const processors = [
new InlineImageProcessor(),
new BlockImageProcessor(),
new MarkdownProcessor(),
new TextProcessor(),
new AudioProcessor(),
new PdfProcessor(),
new ExternProcessor(),
new GiftProcessor(),
];
this.processors = new Map(processors.map((processor) => [processor.contentType, processor]));
}
/**
* Render the given learning object.
* @param learningObject The learning object to render
* @param fetchEmbeddedLearningObjects A function which takes a learning object identifier as an argument and
* returns the corresponding learning object. This is used to fetch learning
* objects embedded into this one.
* If this argument is omitted, embedded learning objects will be represented
* by placeholders.
* @returns Rendered HTML for this LearningObject as a string.
*/
async render(
learningObject: LearningObject,
fetchEmbeddedLearningObjects?: (loId: LearningObjectIdentifier) => Promise<LearningObject | null>
): Promise<string> {
const html = this.processors.get(learningObject.contentType)!.renderLearningObject(learningObject);
if (fetchEmbeddedLearningObjects) {
// Replace all embedded learning objects.
return replaceAsync(
html,
EMBEDDED_LEARNING_OBJECT_PLACEHOLDER,
async (_, hruid: string, language: string, version: string): Promise<string> => {
// Fetch the embedded learning object...
const learningObject = await fetchEmbeddedLearningObjects({
hruid,
language: language as Language,
version: parseInt(version),
});
// If it does not exist, replace it by a placeholder.
if (!learningObject) {
return LEARNING_OBJECT_DOES_NOT_EXIST;
}
// ... and render it.
return this.render(learningObject);
}
);
}
return html;
}
}
export default new ProcessingService();

View file

@ -0,0 +1,61 @@
import { LearningObject } from '../../../entities/content/learning-object.entity.js';
import { ProcessingError } from './processing-error.js';
import { DwengoContentType } from './content-type.js';
/**
* Abstract base class for all processors.
* Each processor is responsible for a specific format a learning object can be in, which i tcan render to HTML.
*
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/processor.js
*/
abstract class Processor<T> {
protected constructor(public contentType: DwengoContentType) {}
/**
* Render the given object.
*
* @param toRender Object which has to be rendered to HTML. This object has to be in the format for which this
* Processor is responsible.
* @return Rendered HTML-string
* @throws ProcessingError if the rendering fails.
*/
render(toRender: T): string {
return this.renderFn(toRender);
}
/**
* Render a learning object with the content type for which this processor is responsible.
* @param toRender
*/
renderLearningObject(toRender: LearningObject): string {
if (toRender.contentType !== this.contentType) {
throw new ProcessingError(
`Unsupported content type: ${toRender.contentType}.
This processor is only responsible for content of type ${this.contentType}.`
);
}
return this.renderLearningObjectFn(toRender);
}
/**
* Function which actually renders the content.
*
* @param toRender Content to be rendered
* @return Rendered HTML as a string
* @protected
*/
protected abstract renderFn(toRender: T): string;
/**
* Function which actually executes the rendering of a learning object.
*
* When implementing this function, we may assume that we are responsible for the content type of the learning
* object.
*
* @param toRender Learning object to render
* @protected
*/
protected abstract renderLearningObjectFn(toRender: LearningObject): string;
}
export default Processor;

View file

@ -0,0 +1,19 @@
import Processor from './processor.js';
import { LearningObject } from '../../../entities/content/learning-object.entity.js';
export abstract class StringProcessor extends Processor<string> {
/**
* Function which actually executes the rendering of a learning object.
* By default, this just means rendering the content in the content property of the learning object (interpreted
* as string)
*
* When implementing this function, we may assume that we are responsible for the content type of the learning
* object.
*
* @param toRender Learning object to render
* @protected
*/
protected renderLearningObjectFn(toRender: LearningObject): string {
return this.render(toRender.content.toString('ascii'));
}
}

View file

@ -0,0 +1,20 @@
/**
* Based on https://github.com/dwengovzw/Learning-Object-Repository/blob/main/app/processors/text/text_processor.js
*/
import DOMPurify from 'isomorphic-dompurify';
import { DwengoContentType } from '../content-type.js';
import { StringProcessor } from '../string-processor.js';
class TextProcessor extends StringProcessor {
constructor() {
super(DwengoContentType.TEXT_PLAIN);
}
override renderFn(text: string) {
// Sanitize plain text to prevent xss.
return DOMPurify.sanitize(text);
}
}
export default TextProcessor;

View file

@ -1,61 +0,0 @@
import { fetchWithLogging } from '../util/api-helper.js';
import { DWENGO_API_BASE } from '../config.js';
import {
LearningPath,
LearningPathResponse,
} from '../interfaces/learning-path.js';
export async function fetchLearningPaths(
hruids: string[],
language: string,
source: string
): Promise<LearningPathResponse> {
if (hruids.length === 0) {
return {
success: false,
source,
data: null,
message: `No HRUIDs provided for ${source}.`,
};
}
const apiUrl = `${DWENGO_API_BASE}/learningPath/getPathsFromIdList`;
const params = { pathIdList: JSON.stringify({ hruids }), language };
const learningPaths = await fetchWithLogging<LearningPath[]>(
apiUrl,
`Learning paths for ${source}`,
params
);
if (!learningPaths || learningPaths.length === 0) {
console.error(`⚠️ WARNING: No learning paths found for ${source}.`);
return {
success: false,
source,
data: [],
message: `No learning paths found for ${source}.`,
};
}
return {
success: true,
source,
data: learningPaths,
};
}
export async function searchLearningPaths(
query: string,
language: string
): Promise<LearningPath[]> {
const apiUrl = `${DWENGO_API_BASE}/learningPath/search`;
const params = { all: query, language };
const searchResults = await fetchWithLogging<LearningPath[]>(
apiUrl,
`Search learning paths with query "${query}"`,
params
);
return searchResults ?? [];
}

View file

@ -0,0 +1,190 @@
import { LearningPathProvider } from './learning-path-provider.js';
import { FilteredLearningObject, LearningObjectNode, LearningPath, LearningPathResponse, Transition } from '../../interfaces/learning-content.js';
import { LearningPath as LearningPathEntity } from '../../entities/content/learning-path.entity.js';
import { getLearningPathRepository } from '../../data/repositories.js';
import { Language } from '../../entities/content/language.js';
import learningObjectService from '../learning-objects/learning-object-service.js';
import { LearningPathNode } from '../../entities/content/learning-path-node.entity.js';
import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity.js';
import { getLastSubmissionForCustomizationTarget, isTransitionPossible, PersonalizationTarget } from './learning-path-personalization-util.js';
/**
* Fetches the corresponding learning object for each of the nodes and creates a map that maps each node to its
* corresponding learning object.
* @param nodes The nodes to find the learning object for.
*/
async function getLearningObjectsForNodes(nodes: LearningPathNode[]): Promise<Map<LearningPathNode, FilteredLearningObject>> {
// Fetching the corresponding learning object for each of the nodes and creating a map that maps each node to
// Its corresponding learning object.
const nullableNodesToLearningObjects = new Map<LearningPathNode, FilteredLearningObject | null>(
await Promise.all(
nodes.map((node) =>
learningObjectService
.getLearningObjectById({
hruid: node.learningObjectHruid,
version: node.version,
language: node.language,
})
.then((learningObject) => <[LearningPathNode, FilteredLearningObject | null]>[node, learningObject])
)
)
);
if (nullableNodesToLearningObjects.values().some((it) => it === null)) {
throw new Error('At least one of the learning objects on this path could not be found.');
}
return nullableNodesToLearningObjects as Map<LearningPathNode, FilteredLearningObject>;
}
/**
* Convert the given learning path entity to an object which conforms to the learning path content.
*/
async function convertLearningPath(learningPath: LearningPathEntity, order: number, personalizedFor?: PersonalizationTarget): Promise<LearningPath> {
const nodesToLearningObjects: Map<LearningPathNode, FilteredLearningObject> = await getLearningObjectsForNodes(learningPath.nodes);
const targetAges = nodesToLearningObjects
.values()
.flatMap((it) => it.targetAges || [])
.toArray();
const keywords = nodesToLearningObjects
.values()
.flatMap((it) => it.keywords || [])
.toArray();
const image = learningPath.image ? learningPath.image.toString('base64') : undefined;
const convertedNodes = await convertNodes(nodesToLearningObjects, personalizedFor);
return {
_id: `${learningPath.hruid}/${learningPath.language}`, // For backwards compatibility with the original Dwengo API.
__order: order,
hruid: learningPath.hruid,
language: learningPath.language,
description: learningPath.description,
image: image,
title: learningPath.title,
nodes: convertedNodes,
num_nodes: learningPath.nodes.length,
num_nodes_left: convertedNodes.filter((it) => !it.done).length,
keywords: keywords.join(' '),
target_ages: targetAges,
max_age: Math.max(...targetAges),
min_age: Math.min(...targetAges),
};
}
/**
* Helper function converting pairs of learning path nodes (as represented in the database) and the corresponding
* learning objects into a list of learning path nodes as they should be represented in the API.
* @param nodesToLearningObjects
* @param personalizedFor
*/
async function convertNodes(
nodesToLearningObjects: Map<LearningPathNode, FilteredLearningObject>,
personalizedFor?: PersonalizationTarget
): Promise<LearningObjectNode[]> {
const nodesPromise = nodesToLearningObjects
.entries()
.map(async (entry) => {
const [node, learningObject] = entry;
const lastSubmission = personalizedFor ? await getLastSubmissionForCustomizationTarget(node, personalizedFor) : null;
return {
_id: learningObject.uuid,
language: learningObject.language,
start_node: node.startNode,
created_at: node.createdAt.toISOString(),
updatedAt: node.updatedAt.toISOString(),
learningobject_hruid: node.learningObjectHruid,
version: learningObject.version,
transitions: node.transitions
.filter(
(trans) => !personalizedFor || isTransitionPossible(trans, optionalJsonStringToObject(lastSubmission?.content)) // If we want a personalized learning path, remove all transitions that aren't possible.
)
.map((trans, i) => convertTransition(trans, i, nodesToLearningObjects)), // Then convert all the transition
};
})
.toArray();
return await Promise.all(nodesPromise);
}
/**
* Helper method to convert a json string to an object, or null if it is undefined.
*/
function optionalJsonStringToObject(jsonString?: string): object | null {
if (!jsonString) {
return null;
}
return JSON.parse(jsonString);
}
/**
* Helper function which converts a transition in the database representation to a transition in the representation
* the Dwengo API uses.
*
* @param transition
* @param index
* @param nodesToLearningObjects
*/
function convertTransition(
transition: LearningPathTransition,
index: number,
nodesToLearningObjects: Map<LearningPathNode, FilteredLearningObject>
): Transition {
const nextNode = nodesToLearningObjects.get(transition.next);
if (!nextNode) {
throw new Error(`Learning object ${transition.next.learningObjectHruid}/${transition.next.language}/${transition.next.version} not found!`);
} else {
return {
_id: '' + index, // Retained for backwards compatibility. The index uniquely identifies the transition within the learning path.
default: false, // We don't work with default transitions but retain this for backwards compatibility.
next: {
_id: nextNode._id + index, // Construct a unique ID for the transition for backwards compatibility.
hruid: transition.next.learningObjectHruid,
language: nextNode.language,
version: nextNode.version,
},
};
}
}
/**
* Service providing access to data about learning paths from the database.
*/
const databaseLearningPathProvider: LearningPathProvider = {
/**
* Fetch the learning paths with the given hruids from the database.
*/
async fetchLearningPaths(
hruids: string[],
language: Language,
source: string,
personalizedFor?: PersonalizationTarget
): Promise<LearningPathResponse> {
const learningPathRepo = getLearningPathRepository();
const learningPaths = (await Promise.all(hruids.map((hruid) => learningPathRepo.findByHruidAndLanguage(hruid, language)))).filter(
(learningPath) => learningPath !== null
);
const filteredLearningPaths = await Promise.all(
learningPaths.map((learningPath, index) => convertLearningPath(learningPath, index, personalizedFor))
);
return {
success: filteredLearningPaths.length > 0,
data: await Promise.all(filteredLearningPaths),
source,
};
},
/**
* Search learning paths in the database using the given search string.
*/
async searchLearningPaths(query: string, language: Language, personalizedFor?: PersonalizationTarget): Promise<LearningPath[]> {
const learningPathRepo = getLearningPathRepository();
const searchResults = await learningPathRepo.findByQueryStringAndLanguage(query, language);
return await Promise.all(searchResults.map((result, index) => convertLearningPath(result, index, personalizedFor)));
},
};
export default databaseLearningPathProvider;

View file

@ -0,0 +1,50 @@
import { fetchWithLogging } from '../../util/apiHelper.js';
import { DWENGO_API_BASE } from '../../config.js';
import { LearningPath, LearningPathResponse } from '../../interfaces/learning-content.js';
import { LearningPathProvider } from './learning-path-provider.js';
import { getLogger, Logger } from '../../logging/initalize.js';
const logger: Logger = getLogger();
const dwengoApiLearningPathProvider: LearningPathProvider = {
async fetchLearningPaths(hruids: string[], language: string, source: string): Promise<LearningPathResponse> {
if (hruids.length === 0) {
return {
success: false,
source,
data: null,
message: `No HRUIDs provided for ${source}.`,
};
}
const apiUrl = `${DWENGO_API_BASE}/learningPath/getPathsFromIdList`;
const params = { pathIdList: JSON.stringify({ hruids }), language };
const learningPaths = await fetchWithLogging<LearningPath[]>(apiUrl, `Learning paths for ${source}`, { params });
if (!learningPaths || learningPaths.length === 0) {
logger.warn(`⚠️ WARNING: No learning paths found for ${source}.`);
return {
success: false,
source,
data: [],
message: `No learning paths found for ${source}.`,
};
}
return {
success: true,
source,
data: learningPaths,
};
},
async searchLearningPaths(query: string, language: string): Promise<LearningPath[]> {
const apiUrl = `${DWENGO_API_BASE}/learningPath/search`;
const params = { all: query, language };
const searchResults = await fetchWithLogging<LearningPath[]>(apiUrl, `Search learning paths with query "${query}"`, { params });
return searchResults ?? [];
},
};
export default dwengoApiLearningPathProvider;

View file

@ -0,0 +1,90 @@
import { LearningPathNode } from '../../entities/content/learning-path-node.entity.js';
import { Student } from '../../entities/users/student.entity.js';
import { Group } from '../../entities/assignments/group.entity.js';
import { Submission } from '../../entities/assignments/submission.entity.js';
import { getClassRepository, getGroupRepository, getStudentRepository, getSubmissionRepository } from '../../data/repositories.js';
import { LearningObjectIdentifier } from '../../entities/content/learning-object-identifier.js';
import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity.js';
import { JSONPath } from 'jsonpath-plus';
export type PersonalizationTarget = { type: 'student'; student: Student } | { type: 'group'; group: Group };
/**
* Shortcut function to easily create a PersonalizationTarget object for a student by his/her username.
* @param username Username of the student we want to generate a personalized learning path for.
* If there is no student with this username, return undefined.
*/
export async function personalizedForStudent(username: string): Promise<PersonalizationTarget | undefined> {
const student = await getStudentRepository().findByUsername(username);
if (student) {
return {
type: 'student',
student: student,
};
}
return undefined;
}
/**
* Shortcut function to easily create a PersonalizationTarget object for a group by class name, assignment number and
* group number.
* @param classId Id of the class in which this group was created
* @param assignmentNumber Number of the assignment for which this group was created
* @param groupNumber Number of the group for which we want to personalize the learning path.
*/
export async function personalizedForGroup(
classId: string,
assignmentNumber: number,
groupNumber: number
): Promise<PersonalizationTarget | undefined> {
const clazz = await getClassRepository().findById(classId);
if (!clazz) {
return undefined;
}
const group = await getGroupRepository().findOne({
assignment: {
within: clazz,
id: assignmentNumber,
},
groupNumber: groupNumber,
});
if (group) {
return {
type: 'group',
group: group,
};
}
return undefined;
}
/**
* Returns the last submission for the learning object associated with the given node and for the student or group
*/
export async function getLastSubmissionForCustomizationTarget(node: LearningPathNode, pathFor: PersonalizationTarget): Promise<Submission | null> {
const submissionRepo = getSubmissionRepository();
const learningObjectId: LearningObjectIdentifier = {
hruid: node.learningObjectHruid,
language: node.language,
version: node.version,
};
if (pathFor.type === 'group') {
return await submissionRepo.findMostRecentSubmissionForGroup(learningObjectId, pathFor.group);
}
return await submissionRepo.findMostRecentSubmissionForStudent(learningObjectId, pathFor.student);
}
/**
* Checks whether the condition of the given transaction is fulfilled by the given submission.
* @param transition
* @param submitted
*/
export function isTransitionPossible(transition: LearningPathTransition, submitted: object | null): boolean {
if (transition.condition === 'true' || !transition.condition) {
return true; // If the transition is unconditional, we can go on.
}
if (submitted === null) {
return false; // If the transition is not unconditional and there was no submission, the transition is not possible.
}
const match = JSONPath({ path: transition.condition, json: { submission: submitted } });
return match.length === 1;
}

View file

@ -0,0 +1,18 @@
import { LearningPath, LearningPathResponse } from '../../interfaces/learning-content.js';
import { Language } from '../../entities/content/language.js';
import { PersonalizationTarget } from './learning-path-personalization-util.js';
/**
* Generic interface for a service which provides access to learning paths from a data source.
*/
export interface LearningPathProvider {
/**
* Fetch the learning paths with the given hruids from the data source.
*/
fetchLearningPaths(hruids: string[], language: Language, source: string, personalizedFor?: PersonalizationTarget): Promise<LearningPathResponse>;
/**
* Search learning paths in the data source using the given search string.
*/
searchLearningPaths(query: string, language: Language, personalizedFor?: PersonalizationTarget): Promise<LearningPath[]>;
}

View file

@ -0,0 +1,57 @@
import { LearningPath, LearningPathResponse } from '../../interfaces/learning-content.js';
import dwengoApiLearningPathProvider from './dwengo-api-learning-path-provider.js';
import databaseLearningPathProvider from './database-learning-path-provider.js';
import { EnvVars, getEnvVar } from '../../util/envvars.js';
import { Language } from '../../entities/content/language.js';
import { PersonalizationTarget } from './learning-path-personalization-util.js';
const userContentPrefix = getEnvVar(EnvVars.UserContentPrefix);
const allProviders = [dwengoApiLearningPathProvider, databaseLearningPathProvider];
/**
* Service providing access to data about learning paths from the appropriate data source (database or Dwengo-api)
*/
const learningPathService = {
/**
* Fetch the learning paths with the given hruids from the data source.
* @param hruids For each of the hruids, the learning path will be fetched.
* @param language This is the language each of the learning paths will use.
* @param source
* @param personalizedFor If this is set, a learning path personalized for the given group or student will be returned.
*/
async fetchLearningPaths(
hruids: string[],
language: Language,
source: string,
personalizedFor?: PersonalizationTarget
): Promise<LearningPathResponse> {
const userContentHruids = hruids.filter((hruid) => hruid.startsWith(userContentPrefix));
const nonUserContentHruids = hruids.filter((hruid) => !hruid.startsWith(userContentPrefix));
const userContentLearningPaths = await databaseLearningPathProvider.fetchLearningPaths(userContentHruids, language, source, personalizedFor);
const nonUserContentLearningPaths = await dwengoApiLearningPathProvider.fetchLearningPaths(
nonUserContentHruids,
language,
source,
personalizedFor
);
const result = (userContentLearningPaths.data || []).concat(nonUserContentLearningPaths.data || []);
return {
data: result,
source: source,
success: userContentLearningPaths.success || nonUserContentLearningPaths.success,
};
},
/**
* Search learning paths in the data source using the given search string.
*/
async searchLearningPaths(query: string, language: Language, personalizedFor?: PersonalizationTarget): Promise<LearningPath[]> {
const providerResponses = await Promise.all(allProviders.map((provider) => provider.searchLearningPaths(query, language, personalizedFor)));
return providerResponses.flat();
},
};
export default learningPathService;

View file

@ -0,0 +1,41 @@
import { EntityProperty, EventArgs, EventSubscriber } from '@mikro-orm/core';
/**
* The tests are ran on an in-memory SQLite database. However, SQLite does not allow fields which are part of composite
* primary keys to be autoincremented (while PostgreSQL, which we use in production, does). This Subscriber works around
* the issue by remembering the highest values for every autoincremented part of a primary key and assigning them when
* creating a new entity.
*
* However, it is important to note the following limitations:
* - this class can only be used for in-memory SQLite databases since the information on what the highest sequence
* number for each of the properties is, is only saved transiently.
* - automatically setting the generated "autoincremented" value for properties only works when the entity is created
* via an entityManager.create(...) or repo.create(...) method. Otherwise, onInit will not be called and therefore,
* the sequence number will not be filled in.
*/
export class SqliteAutoincrementSubscriber implements EventSubscriber {
private sequenceNumbersForEntityType: Map<string, number> = new Map();
/**
* When an entity with an autoincremented property which is part of the composite private key is created,
* automatically fill this property so we won't face not-null-constraint exceptions when persisting it.
*/
onInit<T extends object>(args: EventArgs<T>): void {
if (!args.meta.compositePK) {
return; // If there is not a composite primary key, autoincrement works fine with SQLite anyway.
}
for (const prop of Object.values(args.meta.properties)) {
const property = prop as EntityProperty<T>;
if (property.primary && property.autoincrement && !(args.entity as Record<string, any>)[property.name]) {
// Obtain and increment sequence number of this entity.
const propertyKey = args.meta.class.name + '.' + property.name;
const nextSeqNumber = this.sequenceNumbersForEntityType.get(propertyKey) || 0;
this.sequenceNumbersForEntityType.set(propertyKey, nextSeqNumber + 1);
// Set the property accordingly.
(args.entity as Record<string, any>)[property.name] = nextSeqNumber + 1;
}
}
}
}

View file

@ -1,6 +1,7 @@
import axios, { AxiosRequestConfig } from 'axios';
import { getLogger, Logger } from '../logging/initalize.js';
// !!!! when logger is done -> change
const logger: Logger = getLogger();
/**
* Utility function to fetch data from an API endpoint with error handling.
@ -8,35 +9,34 @@ import axios, { AxiosRequestConfig } from 'axios';
*
* @param url The API endpoint to fetch from.
* @param description A short description of what is being fetched (for logging).
* @param params
* @param options Contains further options such as params (the query params) and responseType (whether the response
* should be parsed as JSON ("json") or whether it should be returned as plain text ("text")
* @returns The response data if successful, or null if an error occurs.
*/
export async function fetchWithLogging<T>(
url: string,
description: string,
params?: Record<string, any>
options?: {
params?: Record<string, any>;
query?: Record<string, any>;
responseType?: 'json' | 'text';
}
): Promise<T | null> {
try {
const config: AxiosRequestConfig = params ? { params } : {};
const config: AxiosRequestConfig = options || {};
const response = await axios.get<T>(url, config);
return response.data;
} catch (error: any) {
if (error.response) {
if (error.response.status === 404) {
console.error(
`❌ ERROR: ${description} not found (404) at "${url}".`
);
logger.debug(`❌ ERROR: ${description} not found (404) at "${url}".`);
} else {
console.error(
logger.debug(
`❌ ERROR: Failed to fetch ${description}. Status: ${error.response.status} - ${error.response.statusText} (URL: "${url}")`
);
}
} else {
console.error(
`❌ ERROR: Network or unexpected error when fetching ${description}:`,
error.message
);
logger.debug(`❌ ERROR: Network or unexpected error when fetching ${description}:`, error.message);
}
return null;
}

23
backend/src/util/async.ts Normal file
View file

@ -0,0 +1,23 @@
/**
* Replace all occurrences of regex in str with the result of asyncFn called with the matching snippet and each of
* the parts matched by a group in the regex as arguments.
*
* @param str The string where to replace the occurrences
* @param regex
* @param replacementFn
*/
export async function replaceAsync(str: string, regex: RegExp, replacementFn: (match: string, ...args: string[]) => Promise<string>) {
const promises: Promise<string>[] = [];
// First run through matches: add all Promises resulting from the replacement function
str.replace(regex, (full, ...args) => {
promises.push(replacementFn(full, ...args));
return full;
});
// Wait for the replacements to get loaded. Reverse them so when popping them, we work in a FIFO manner.
const replacements: string[] = await Promise.all(promises);
// Second run through matches: Replace them by their previously computed replacements.
return str.replace(regex, () => replacements.pop()!);
}

Some files were not shown because too many files have changed in this diff Show more