zazuko / xrm

A friendly language for mappings to RDF
MIT License
1 stars 0 forks source link

Simplify generator templates by introducing a context #40

Closed mchlrch closed 4 years ago

mchlrch commented 4 years ago

Preprocessing the model before generation and building up a generator context allows to simplify the generator templates. Especially in places where currently Xtend functions are used to figure out the context ad-hoc (for example the conditional in https://github.com/zazuko/rdf-mapping-dsl/blob/master/com.zazuko.rdfmapping.dsl.parent/com.zazuko.rdfmapping.dsl/src/com/zazuko/rdfmapping/dsl/generator/CsvwDialectGenerator.xtend#L82).

nnamtug commented 4 years ago

better testing depends on #41

nnamtug commented 4 years ago

better testing depends on #41

looks good with examples from #41