scispace - formally typeset
Proceedings ArticleDOI

On verifying consistency of XML specifications

TLDR
It is shown that in the presence of foreign keys, compile-time verification of consistency is usually infeasible, and a number of restricted decidable cases are established.
Abstract
XML specifications often consist of a type definition (typically, a DTD) and a set of integrity constraints. It has been shown previously that such specifications can be inconsistent, and thus it is often desirable to check consistency at compile-time. It is known that for general keys and foreign keys, and DTDs, the consistency problem is undecidable; however, it becomes NP-complete when all keys are one-attribute (unary), and tractable, if no foreign keys are used.In this paper, we consider a variety of constraints for XML data, and study the complexity of the consistency problem. Our main conclusion is that in the presence of foreign keys, compile-time verification of consistency is usually infeasible. We look at two types of constraints: absolute (that hold in the entire document), and relative (that only hold in a part of the document). For absolute constraints, we extend earlier decidability results to the case of multi-attribute keys and unary foreign keys, and to the case of constraints involving regular expressions, providing lower and upper bounds in both cases. For relative constraints, we show that even for unary constraints, the consistency problem is undecidable. We also establish a number of restricted decidable cases.

read more

Citations
More filters
Journal ArticleDOI

Reasoning about keys for XML

TL;DR: In contrast to other proposals of keys for XML, it is shown that these keys are always (finitely) satisfiable, and their (finite) implication problem is finitely axiomatizable.
Book ChapterDOI

Reasoning about Keys for XML

TL;DR: In this paper, the authors study absolute and relative keys for XML, and investigate their associated decision problems, and show that the satisfiability problem for these keys is trivial and their implication problem is finitely axiomatizable and decidable in PTIME in the size of keys.
Proceedings ArticleDOI

A Web Odyssey: from Codd to XML

Victor Vianu
TL;DR: The Web presents the database area with vast opportunities and commensurate challenges, and database theory could retain its classical focus and turn in w ards or attempt to take heads-on the challenge of the Web and contribute to an important part of its formal foundations.
Book

Database and XML Technologies

TL;DR: This book constitutes the refereed proceedings of the 7th International XML Database Symposium, XSym 2010, held in Singapore, in September 2010, and is organized in topical sections on XML query processing, XML update and applications, and XML modeling.
Journal ArticleDOI

TQL: a query language for semistructured data based on the ambient logic

TL;DR: In this article, a query language for semistructured data based on the ambient logic is defined and an execution model for this language is presented, and its strong foundations and the equivalences that hold in ambient logic are helpful in the definition of the language semantics and execution model.
References
More filters
Book

Computers and Intractability: A Guide to the Theory of NP-Completeness

TL;DR: The second edition of a quarterly column as discussed by the authors provides a continuing update to the list of problems (NP-complete and harder) presented by M. R. Garey and myself in our book "Computers and Intractability: A Guide to the Theory of NP-Completeness,” W. H. Freeman & Co., San Francisco, 1979.
Book

Foundations of databases

TL;DR: This book discusses Languages, Computability, and Complexity, and the Relational Model, which aims to clarify the role of Semantic Data Models in the development of Query Language Design.

XML Path Language (XPath)

TL;DR: XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer, and has been endorsed by the Director as a W3C Recommendation.
Proceedings Article

Relational Databases for Querying XML Documents: Limitations and Opportunities

TL;DR: It turns out that the relational approach can handle most (but not all) of the semantics of semi-structured queries over XML data, but is likely to be effective only in some cases.