I'm currently struggling with an issue that is related to concept inheritance and the generator aspect. A simplified version of my scenario is:
- I have two concepts "A" and "B" while "B" extends "A"
- "A" has two property declarations: id: string and def: boolean
- "B" has also a property declaration: label: string
- Let's assume that I want to add 200 more concepts that inherit from "A"
Let's say that I want to generate XML code for my models. What is the recommended way of writing the corresponding reduction rules? Is it somehow possible to define a reduction rule for "A" which defines how the properties "id" and "def" are transformed so that the reduction rules for the inheriting concepts only require to define the transformation rules for those properties they add (e.g. "label" in the given example)? The reason for my question is that I don't want to repeat myself by writing almost the same reduction rules for each concept that is a sub-concept of A.
I've already searched and read several posts but unfortunately, I was not able to find a solution.
Thank you very much in advance!