[Paper Review] Simple Schemas for Unordered XML
This paper introduces disjunctive multiplicity schemas (DMS) and their restriction, disjunction-free multiplicity schemas (MS), as lightweight, human-readable schema formalisms for unordered XML that retain much of the expressive power of DTDs without increasing computational complexity. The key contribution is a formal characterization of static analysis problems—such as schema satisfiability, membership, containment, and query equivalence—showing that DMS and MS maintain polynomial-time complexity for core tasks while accurately modeling unordered content models found in real-world data-centric XML applications.
We consider unordered XML, where the relative order among siblings is ignored, and propose two simple yet practical schema formalisms: disjunctive multiplicity schemas (DMS), and its restriction, disjunction-free multiplicity schemas (MS). We investigate their computational properties and characterize the complexity of the following static analysis problems: schema satisfiability, membership of a tree to the language of a schema, schema containment, twig query satisfiability, implication, and containment in the presence of schema. Our research indicates that the proposed formalisms retain much of the expressiveness of DTDs without an increase in computational complexity.
Motivation & Objective
- To address the limitations of DTDs in modeling unordered XML content, where regular expressions over-approximate due to order sensitivity.
- To design schema formalisms that are intuitive, human-readable, and semantically precise for data-centric XML applications where sibling order is irrelevant.
- To characterize the computational complexity of fundamental static analysis problems (e.g., schema containment, query satisfiability) under the new formalisms.
- To evaluate whether DMS and MS retain sufficient expressive power to model real-world DTDs used in data-centric contexts.
- To explore whether these formalisms offer a practical alternative to DTDs for unordered XML, balancing expressiveness and efficiency.
Proposed method
- Propose disjunctive multiplicity schemas (DMS) that define unordered content models using multiplicities (*, +, ?, 1) and unordered concatenation (||), with restricted disjunction (|) for alternatives.
- Introduce disjunction-free multiplicity schemas (MS) as a restriction of DMS that excludes disjunction, simplifying analysis while preserving key expressiveness.
- Define the universal dependency graph (UDG) of a schema to capture structural constraints and enable efficient embedding checks for twig queries.
- Use unfolding of the UDG to characterize the minimal tree language of a schema, ensuring that all valid documents are captured under commutative closure.
- Apply a pumping argument to show that regular expressions for unordered content may require exponential size, justifying the need for more concise formalisms.
- Leverage graph embedding techniques to reduce schema and query containment problems to subgraph isomorphism, enabling complexity analysis.
Experimental results
Research questions
- RQ1Can DMS and MS formalisms model the same set of unordered XML documents as DTDs while avoiding over-permissiveness caused by regular expressions?
- RQ2What is the computational complexity of core static analysis tasks—such as schema membership, containment, and query implication—under DMS and MS?
- RQ3Does the restriction to disjunction-free schemas (MS) preserve sufficient expressive power for real-world data-centric XML applications?
- RQ4How do DMS and MS compare to DTDs in terms of expressiveness when applied to real-world XML benchmarks like XMark and the University of Amsterdam XML Web Collection?
- RQ5Can the proposed formalisms support efficient query optimization and validation in unordered XML, particularly for twig queries?
Key findings
- All 77 regular expressions in the XMark benchmark are captured by DMS rules, with 76 captured by MS rules, indicating strong expressive coverage.
- 84% of unique regular expressions from the University of Amsterdam XML Web Collection are captured by DMS, and 74.6% by MS, demonstrating practical relevance.
- 55.5% of full DTDs in the University of Amsterdam collection are captured by DMS, and 45.8% by MS, suggesting broad applicability to real-world data-centric schemas.
- Schema implication (IMPL) under MS and twig queries is in PTIME, while schema containment (CNT) is coNP-complete, indicating tractable core analysis.
- The unfolding of the universal dependency graph of a disjunction-free DTD generates a minimal tree in its language, enabling correct and efficient query containment checks.
- The use of commutative closure with restricted regular expressions in DMS avoids the exponential blowup seen in naive over-permissive DTDs, while maintaining semantic precision.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.