Generating queries from complex type de nitions
نویسنده
چکیده
Many information systems are implemented as application programs connected to a database system. A characteristic problem of such systems is the famous impedance mismatch, i.e., the conceptual distance between the programming and the database languages. The traditional solution is to implement an interface that transforms one representation into the other. Commercial database systems ooer prepro-cessors that allow to embed the database language (e.g., SQL) into the programming language (e.g., C). Such an approach frees the application programmer from the task to specify details of the communication. However, the impedance mismatch is not solved but aggravated. The set-oriented database language is intermixed with the element-oriented programming language, a notorious cause for programming errors. Moreover, there is no support in mapping the restricted data representation of databases into the more complex type system of programming language. This paper proposes an intermediate language, the API modules, for specifying the relationship between the representations in the database and in the application program. The query for retrieving the information and the data types for storing it can be generated from the API module. The modules are simple enough to allow reasoning on queries generated from them.
منابع مشابه
Optimising Web Queries Using Document Type De nitions
A document type deenition (DTD) D deenes the structure of elements permitted in any web document valid with respect to D. From a given DTD D we show how to derive a number of simple structural constraints which are implied by D. Using a relational abstraction of web databases, we consider a class of conjunctive queries which retrieve elements from web documents stored in a database D. For simpl...
متن کاملThe Design and Implementation of a Database Environment for Vision Research
The Database Environment for Vision Research (DEVR) is an entityoriented scienti c database system based on a hierarchical relational data model (HRS). This paper describes the design and implementation of the data de nition language, the application programmer's interface, and the query mechanism of the DEVR system. DEVR provides a dynamic data de nition language for modeling image and vision ...
متن کاملVQBD: Visualizing, Querying, and Browsing Semistructured Data
The VQBD project addresses the following problem: What is the best way to explore an XML document of unknown structure and content? We focus on XML documents that are too large to browse in their entirety, even with the assistance of pretty-printing software (e.g., multi-megabyte or larger XML documents). In this context, we use the term data exploration to refer to the process by which a user ...
متن کاملEnhancing Semistructured Data Mediators with Document Type Definitions
Mediation is an important application of XML. The MIX mediator uses Document Type De nitions (DTDs) to assist the user in query formulation and query processors in running queries more e ciently. We provide an algorithm for inferring the view DTD from the view de nition and the source DTDs. We develop a metric of the quality of the inference algorithm's view DTD by formalizing the notions of so...
متن کاملLearning Horn De nitions with Equivalence andMembership
A Horn deenition is a set of Horn clauses with the same head literal. In this paper, we consider learning non-recursive, function-free rst-order Horn deenitions. We show that this class is exactly learnable from equivalence and membership queries. It follows then that this class is PAC learnable using examples and membership queries. Our results have been shown to be applicable to learning eeci...
متن کامل