Abstract
In this paper we employ the parsing and generation capabilities of DCG in Prolog to convert XML documents into object definitions to be stored in an object database. The system mainly consists of a DTD parser, a schema generator and a DI parser generator. The DTD parser is used to analyze the structure of DTD. The two generators take the parsing results of the DTD parser, and then produce database schema definitions and the DI parser. The database schema for a DTD is built by executing the generated schema definitions. The DI parser analyzes the document instance and produces the corresponding object definitions. The elements in the document are then stored in the object database by executing the object definition.
This research was partially supported by the Taiwan National Science Council under Contract No. 88-2213-E-036-004.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
Abiteboul, S., Cluet, S., Christophides, V., Milo, T., Moerkotte, G., Simeon, J.: Querying documents in object databases. International Journal on Digital Libraries. (1997) 5–19.
Appel, A. W.: Modern Compiler Implementation in Java: Basic Techniques. Cambridge university Press. (1997)
Bohm, K., Aberer, K., Neuhold E. J., Yang, X.: Structured document storage and refined declarative and navigational access mechanisms in HyperStorM. VLDB Journal (1997).
Bratko, I.: Prolog Programming for Artificial intelligence, 2nd ed. Addison-Wesley. (1990)
Catell, R. G. G. (ed.): The Object Database Standard: ODMG-93. (1996) Morgan Kaufmann
Computer Associates: http://www.cai.com/products/jasmine.htm
El-Medani, S.: Support for Document Entry in a Multimedia Database. (1996) Technical Report TR 96-23, Department of Computing Science, University of Alberta.
Goldfarb, C.: The SGML Handbook. Oxford University Press. (1990)
Goldfarb, C., Prescod, P.: The XML Handbook. Prentice Hall. (1998)
Logic Programming Associates: http://www.lpa.co.uk/
Maler, E., Andaloussi, J. E.: Developing SGML DTDs: From Text to Model to Markup. Prentice Hall. (1996)
Ozsu, M.T., Szafron, D., El-Medani, G., Vittal, C.: An object-oriented multimedia database system for a news-on-demand application. Multimedia Systems. Vol. 3. (1995) 182–203
POET Software: XML: the foundation for the future. Available at http://www.poet.com. (1997)
Vittal, C.: An Object-Oriented Multimedia Database System for News-on-Demand Application. Technical Report TR 95-06. Department of Computer Science, University of Alberta. Canada. (1995)
W3C. Extensible Markup Language (XML) 1.0. W3C Recommendation 10-February-1998. Available at http://www.w3.org/TR/REC-xml. (1998)
W3C. Document Object Model (DOM) Level 1 Specification Version 1.0. W3C Recommendation 1 October, 1998. Available at http://www.w3.org/TR/RECDOM-Level-1/. (1998)
Yeh, C. L., Chen, H.C.: An extensible template-based query interface to accessing XML object databases. Accepted for presentation in 1999 International Symposium on Multimedia Information Processing, Taipei, Taiwan.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 1999 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Yeh, CL. (1999). A Logic Programming Approach to Supporting the Entries of XML Documents in an Object Database. In: Pontelli, E., Santos Costa, V. (eds) Practical Aspects of Declarative Languages. PADL 2000. Lecture Notes in Computer Science, vol 1753. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46584-7_19
Download citation
DOI: https://doi.org/10.1007/3-540-46584-7_19
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-66992-0
Online ISBN: 978-3-540-46584-3
eBook Packages: Springer Book Archive