%0 Journal Article %J Automated Software Engineering (ASE) %D 2016 %T Automatically Inferring Models from Spreadsheets %A Cunha, Jácome %A Erwig, Martin %A Mendes, Jorge %A Saraiva, João %I Springer %K Automatic Model Inference %K ClassSheets %K Empirical Validation %K Relational Model %K Spreadsheets %N 3 %P 361-392 %R \url{http://dx.doi.org/10.1007/s10515-014-0167-x} %U http://link.springer.com/article/10.1007/s10515-014-0167-x %V 23 %X

Many errors in spreadsheet formulas can be avoided if spreadsheets are built automatically from higher-level models that can encode and enforce consistency constraints in the generated spreadsheets. Employing this strategy for legacy spreadsheets is difficult, because the model has to be reverse engineered from an existing spreadsheet and existing data must be transferred into the new model-generated spreadsheet. We have developed and implemented a technique that automatically infers relational schemas from spreadsheets. This technique uses particularities from the spreadsheet realm to create better schemas. We have evaluated this technique in two ways: First, we have demonstrated its applicability by using it on a set of real-world spreadsheets. Second, we have run an empirical study with users. The study has shown that the results produced by our technique are comparable to the ones developed by experts starting from the same (legacy) spreadsheet data. Although relational schemas are very useful to model data, they do not fit well spreadsheets as they do not allow to express layout. Thus, we have also introduced a mapping between relational schemas and ClassSheets. A ClassSheet controls further changes to the spreadsheet and safeguards it against a large class of formula errors. The developed tool is a contribution to spreadsheet (reverse) engineering, because it fills an important gap and allows a promising design method (ClassSheets) to be applied to a huge collection of legacy spreadsheets with minimal effort.

%Z

in press.

%> https://docentes.fct.unl.pt/sites/default/files/jmc-cunha/files/ase14.pdf