This report bases itself on the idea of using concrete examples to verify conceptual schemas, and in particular cardinality constraints. When novice ORM modellers model domains, the selection of proper cardinality constraints for relationship types is quite often prone to errors. In this report we propose a mechanism for the generation of significant examples for selected subschemas. The generated examples are significant in the sense that they illustrate the possible combinations of instances that are allowed with respect to the cardinality constraints on the involved relationship types. In this report we firstly provide a brief informal discussion of the basic idea. Then we present a syntactic mechanism to select the subschema for which example instances are to be generated. This is followed by the actual example generation algorithm itself. We will also present, as a {\em spin-off}, an algorithm that allows us to detect possible flaws in the conceptual schema by calculating the number of instances that can be used to populate the types in the schema.
翻译:本报告依据的是使用具体实例来核实概念模型的设想,特别是主要限制。当新ORM模型人模型域时,为关系类型选择适当的基本限制往往容易出错。在本报告中,我们提议为选定的子系统生成重要实例的机制。生成的例子很重要,因为它们说明了允许在所涉关系类型中主要制约方面的各种可能情况组合。在本报告中,我们首先对基本概念进行简短的非正式讨论。然后我们提出了一个综合方法,用于选择将产生实例的子系统模型。随后是实际的实例生成算法本身。我们还将提出一种算法,作为 ~em spinoffoff}, 使我们能够通过计算可用于在模型中传播各种类型的例子的数量来发现概念系统可能存在的缺陷。