We present a pseudocode algorithm for translating our (Elementary) Mathematical Data Model schemes into relational ones and associated sets of non-relational constraints, used by MatBase, our intelligent data and knowledge base management system prototype. We prove that this algorithm is very fast, solid, complete, and optimal. We apply it to a mathematical scheme modeling the genealogical trees subuniverse. We also provide examples of SQL and VBA code for enforcing some of its non-relational constraints, as well as guidelines to develop code for enforcing such constraints.
翻译:本文提出了一种伪代码算法,用于将我们的(基本)数学数据模型模式转换为关系模式及相关的非关系约束集,该算法应用于MatBase——我们的智能数据和知识库管理系统原型。我们证明该算法具有高速性、稳健性、完备性和最优性。我们将其应用于建模家谱树子领域的数学模式,并提供了用于强制执行部分非关系约束的SQL和VBA代码示例,以及开发此类约束执行代码的指导原则。