feat(catalogue): German type labels and variant presentation in QUESTION_TYPES (#161) - #168
Merged
Merged
Conversation
…ION_TYPES (#161) Every question, structural, variant and composite type in the registry has a German label now: `prefLabelDe`, a JSON-LD context term for skos:prefLabel with @language "de", required by the schema so no type lacks one. QUESTION_TYPES carries `labels: { en, de }` next to `label`, and each variant its registry `presentation` (withOther, withLongList, appearanceString), so a consumer no longer infers them from the type name. The schema's consumedBy legend gains `catalogue` for the fields QuestionTypes.ts reads. qwacback serves these to qwac (CorrelAid/qwacback#40, CorrelAid/qwac#59). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Merged
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.
Closes #161. That issue is now narrowed to variant presentation and German labels; the bundle-size point no longer applies because qwac drops the package (CorrelAid/qwac#59).
German labels
Every question, structural, variant and composite type has a German label, stored as
prefLabelDe.prefLabelDeis a context term forskos:prefLabelwith@language: "de", so the registry stays valid.Metadata rows (
start, …) keep their names: they come from a convention, not the registry.QUESTION_TYPES
labels: { en, de }next tolabel, which is unchanged and English.presentationfrom the registry:withOther,withLongList,appearanceString.Both are additive. The schema's
consumedBylegend gains acataloguetoken for the fieldsQuestionTypes.tsreads.For qwacback
GET /api/question-types(CorrelAid/qwacback#40) can serve both straight from the catalogue.Checks
presentation.npm run validateand the drift check pass🤖 Generated with Claude Code