Kurzfassung
Semantisch reichhaltige Datenmodelle, wie sie beispielsweise in Entwurfsdatenbanken verwendet werden, erfordern angemessene Anfragesprachen, die deren Konzepte widerspiegeln. Im Mittelpunkt dieses Beitrags steht CERMoQL, eine Anfragesprache für ein strukturell-objektorientiertes Datenmodell, welches sich dadurch auszeichnet, daβ es neben der Beschreibung von Objekten und allgemeinen n:m Beziehungen auch ein Konzept zur Modellierung strukturierter Objekte vorsieht. Diese Beschreibungsmittel finden in CERMoQL-Anfragen ihre Entsprechung. Die Struktur der abgelegten Entwurfsobjekte sowie deren Einbettung in ein Objekt-/Beziehungsgeflecht wird somit für den Benutzer sichtbar. CERMoQL ist mengenorientiert und gleicht auf den ersten Blick SQL. Unterschiede liegen in der Formulierung der FROM-Klausel. Mit Hilfe der FROM-Klausel kann ein Benutzer beliebige Wege entlang eines Objekt-/Beziehungsgeflechts beschreiben und so strukturbezogene Einschränkungen formulieren, die die Ergebnismenge betreffen sollen. Wertbezogene Einschränkungen sind in der WHERE-Klausel enthalten, während die SELECT-Klausel die Form der Ausgabe bestimmt. Die Möglichkeit, rekursive Anfragen bezogen auf die transitive Hülle einer Beziehung und deren “Gesehichte” zu formulieren, verleiht der Sprache eine höhere Ausdruckskraft als die vergleichbarer ER-Sprachen. Die Leitlinien des Sprachentwurfs, insbesondere diejenigen, die sich aus dem Datenmodell ableiten, werden grob geschildert. Die Syntax von CERMoQL wird an Beispielen verdeutlicht.
Abstract
Appropriate high-level query languages are needed to reflect the semantics of advanced data models, as they are used in design data bases. This paper presents CERMoQL, a high-level query language for a structurally object-oriented data model. Queries against data structures of any complexity can be expressed by means of CERMoQL. Thus, the complex structure of the stored design objects and associations between them are visible to the user. The language is similiar to SQL. The FROM-clause represents structural conditions concerning the data to be retrieved, whereas value-based restrictions have to be specified in the WHERE-clause. The SELECT-clause determines the output of the result. The power of CERMoQL goes beyond the power of existing ER-languages by allowing a large class of recursive queries. Some general features that are useful for querying structured objects are summarized in this paper followed by an informal description of CERMoQL. Examples are given to illustrate the semantics of the basic concepts.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Literaturverzeichnis
R. Agrawal : ALPHA : An Extension of Relational Algebra to Express a Class of Recursive Queries, in [DE87]
A. V. Aho, J. D. Ullman : Universality of Data Retrieval Language, 6th ACM Symposium on Principles of Programming Languages, San Antonio, Texas, Jan. 1979
American National Standards Institute : Database Language SQL, Document ANSI X3.135–1986 auch erhältlich als: International Standards Organization Document ISO/TC97/SC21/WG3 N117
P. Atzeni, P. P. Chen: Completeness of Query Languages for the Entity-Relationship Model, in [ER81]
D. Beech : A Foundation for Evolution from Relational to Object Databases, in Advances in Database Technology EDBT’88, J.W. Schmidt & S. Ceri & M. Missikoff (eds.), Lecture Notes in Computer Science Bd.303, 1988
P. P. Chen : The Entity-Relationship Model — Towards a Unified View of Data, ACM TODS, Vol. 1, No. 1, 1976
K. Abramowicz, K. R. Dittrich, W. Gotthard, R. Längle, P. C Lockemann, T. Raupp, S. Rehm, T. Wenner : Datenbankunterstützung für Software-Produktionsumgebungen, in Proc. Gl Fachtagung Datenbanksysteme in Büro, Technik und Wissenschaft, Informatik-Fachberichte 136, 1987
Proceedings of 1987 Data Engineering Conference, Los Angeles, California, Feb. 1987
K. R. Dittrich : Object-oriented Database Systems: The Notions and the Issues, in Proc. ACM/IEEE Int. Workshop on Object-oriented Database Systems, 1986
K. R. Dittrich : Complex Entities for Engineering Applications, Entity-Relationship Approach, S. Spaccapietra (ed.), 1987
R. Elmasri, G. Wiederhold: GORDAS: A Formal High-Level Query Language for the Entity-Relationship Model, in [ER81]
P.P. Chen (ed.) : Proceedings of the 2nd International Conference on Entity-Relationship Approach to Information Modeling and Analysis, Washington, D.C., 1981
C. Davis, S. Jajodia, P. Ng, R. Yeh (eds.) : Proceedings of the 3nd International Conference on Entity-Relationship Approach to Software Engineering, Anaheim, California, Oct. 1983
P. C Lockemann et al.: Anforderungen Technischer Anwendungen an Datenbanksysteme, in Proc. Gl Fachtagung Datenbanksysteme in Büro, Technik und Wissenschaft, Informatik-Fachberichte 94, 1985
R. A. Lorie: Complex Objects and Their Use in Design Transactions, in Proc. 1983 ACM Engineering Design Applications, San Jose, CA, May 1983
V. M. Markowitz, Y. Raz: ERROL: An Entity-Relationship, Role Oriented Query Language, in [ER83]
V. M. Markowitz, Y. Raz : A Modified Relational Algebra and Its Use in an Entity-Relationship Environment, in [ER83]
B. Mitschang: Towards a Unified View of Design Data and Knowledge Representation, 2nd Int. Conf. on Expert Database Systems, Virginia 1988
G. Poonen : CLEAR: A Conceptual Language for Entities and Relationships, Centralized and Distributed Systems, IEEE Computer Society, Silver Springs, Maryland 1980
H. — J. Schek, M. H. Scholl: The Relational Model with Relation-Valueed Attributes, Information Systems, 1986
B. Schiefer : Entwurf einer Mengenorientierten Deskriptiven Anfragesprache für ein Erweitertes Entity-Relationship Modell, Diplomarbeit an der Universität Karlsruhe, Fakultät für Informatik, April 1988
A. Shoshani : CABLE — A Chain-Based Language for the Entity-Relationship Model, Proc. 1st Int. Conf. on the Entity-Relationship Approach to Systems Analysis and Design, LA, California, Dec. 1979
Fernando Velez : LAMBDA : An Entity-Relationship Based Query Language for the Retrieval of Structured Documents, in Proc. of the 4th Int. Conference on Entity-Relationship Approach, Chicago, Illinois, Oct. 1985
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1989 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Schiefer, B., Rehm, S. (1989). Eine Anfragesprache für ein strukturell-objektorientiertes Datenmodell. In: Härder, T. (eds) Datenbanksysteme in Büro, Technik und Wissenschaft. Informatik-Fachberichte, vol 204. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-74571-3_35
Download citation
DOI: https://doi.org/10.1007/978-3-642-74571-3_35
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-50894-6
Online ISBN: 978-3-642-74571-3
eBook Packages: Springer Book Archive