视图机制可以提高数据库模型的灵活性和便利性,方便用户对现实世界实体的应用建模,因而对数据库管理系统至关重要.由于面向对象数据库语义结构的复杂性,现有的主流面向对象数据库系统还不支持视图机制.INM是一个面向对象的新型语义模型,它包含多种实体间的关系,支持关系的层次,可以更好地表述现实世界中实体间的复杂语义关系.为了给INM设计一个支持层次和推导信息定义、支持多实体连接以及多查询的视图机制,沿用并扩展了主流面向对象视图设计理论,结合数据模型讨论了INM视图机制的设计关键问题,设计了与系统查询语言相容的视图创建语言便于视图消解,并阐述了视图机制的整体实现以及实验结果分析.
The view mechanism is crucial for DBMS as it can improve the flexibility and convenience of data model further allows us to improve the modeling power for real-world entities of database applications. However, the mainstream of the exiting object-oriented database system does not support the view mechanism due to the complexity of semantic and structure. In this paper, we present the view mechanism for our full-fledged INM database system that is a novel OODB supporting hierarchical and composition relationships. The view mechanism needs to support hierarchy, derived content defined by users, multi query and parameterized as extension. The contribution of this paper is threefold: to discuss the key points of designing the view for INM, to present the view language which has a universal style with the query language of INM so that it can be more easily translated into the query structure, and to demonstrate the implementation of the view mechanism and the result analysis.