What is the best way to use a generator to produce ConceptDeclaration
I have a table schema definition language with with two concepts: ColumnDefinition
(e.g., with name and type) and SchemaDefinition
s). The SchemaDefinition
concept is rootable, the ColumnDefinition
Given instances of these concepts, I'd like to generate two types of concept declarations:
- table entries (with children for each of the columns)
- tables (containing the table entries)
The table concepts should be rootable, the table entry concept should not.
What I've tried
I've tried creating a "root mapping rule" for the SchemaDefinition
concept with a "new root template" for Concept. However, I get a "Not rootable concept added as root" error. What does this error mean?
I can write template fragments for both SchemaDefinition
that produce ConceptDeclaration
s, however I'm not sure how to have the generator use these.
Please let me know if you have any questions.