feat: MQA-based quality scoring — Phase 1 (v2.13.0)#55
Merged
Conversation
Replace the simple 0–100 completeness score with the EU Metadata Quality Assessment (MQA) model from data.europa.eu: 5 FAIR dimensions, 405 points, 4 rating bands. See docs/MQA-KONZEPT.md. - config/mqa-metrics.php: new single source of truth (21 metrics, 405 pts, per-metric type: present | vocab | reachable | shacl) - ODW_Quality rewritten to compute the MQA score: all "present?" metrics are scored (offline); vocab/reachable/shacl are wired as "not assessed" and excluded from the assessable maximum. Rating bands are scaled proportionally to the assessable maximum (351/221/121 of 405). - Meta box shows per-dimension scores + metric status; admin column keeps working via a derived 0–100 score and shows the MQA rating label. - JSON-LD odw:qualityScore now exposes MQA points (of 405), rating and the per-dimension breakdown, referencing the MQA methodology URL. Backward compatibility - Publish validation (config/dcat-ap-fields.php) is untouched. - Derived _odw_quality_score / _odw_quality_level kept for the list column and sorting; the full MQA result is stored in _odw_mqa. i18n: 33 new MQA UI strings added to .po/.pot; en_US.mo recompiled. Version 2.13.0. Tests: 148 pass, PHPStan clean, PHPCS exit 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JB1xUQM892bVZ4Yv3MZjvq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MQA-Qualitäts-Scoring — Phase 1
Ersetzt das einfache 0–100-Vollständigkeits-Scoring durch das EU Metadata Quality Assessment (MQA) von data.europa.eu (Entscheidung: ersetzen). Umsetzung gemäß
docs/MQA-KONZEPT.md.Was neu ist
config/mqa-metrics.php— neue Single Source of Truth (21 Metriken; je Metrik ein Typ:present|vocab|reachable|shacl).ODW_Qualityneu geschrieben: alle „gesetzt?"-Metriken werden bewertet (offline). Vokabular-/Erreichbarkeits-/SHACL-Metriken sind als „nicht bewertet" verdrahtet und werden aus dem bewertbaren Maximum herausgerechnet; die Bewertungsstufen skalieren proportional (351/221/121 von 405).odw:qualityScoreweist jetzt MQA-Punkte (von 405), Stufe und Dimensions-Aufschlüsselung aus (mit Methodik-URL).Phasenumfang
Abwärtskompatibilität
config/dcat-ap-fields.php) unverändert._odw_quality_score/_odw_quality_level(Spalte, Sortierung); das volle MQA-Ergebnis liegt in_odw_mqa.i18n
.po/.pot;en_US.moneu kompiliert (per Skript, da keine gettext-Tools verfügbar;.moper Rücklesen verifiziert).Verifikation
🤖 Generated with Claude Code
Generated by Claude Code