Skip to Main content Skip to Navigation
Conference papers

Characterizing XML Twig Queries with Examples

Slawomir Staworko 1, 2 Piotr Wieczorek 3
1 LINKS - Linking Dynamic Data
Inria Lille - Nord Europe, CRIStAL - Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189
Abstract : Typically, a (Boolean) query is a finite formula that defines a possibly infinite set of database instances that satisfy it (positive examples), and implicitly, the set of instances that do not satisfy the query (negative examples). We investigate the following natural question: for a given class of queries, is it possible to characterize every query with a finite set of positive and negative examples that no other query is consistent with. We study this question for twig queries and XML databases. We show that while twig queries are characterizable, they generally require exponential sets of examples. Consequently, we focus on a practical subclass of anchored twig queries and show that not only are they characterizable but also with polynomially-sized sets of examples. This result is obtained with the use of generalization operations on twig queries, whose application to an anchored twig query yields a properly contained and minimally different query. Our results illustrate further interesting and strong connections between the structure and the semantics of anchored twig queries that the class of arbitrary twig queries does not enjoy. Finally, we show that the class of unions of twig queries is not characterizable.
Document type :
Conference papers
Complete list of metadata

Cited literature [19 references]  Display  Hide  Download

https://hal.inria.fr/hal-01205417
Contributor : Slawomir Staworko <>
Submitted on : Friday, September 25, 2015 - 2:35:45 PM
Last modification on : Friday, December 11, 2020 - 6:44:06 PM
Long-term archiving on: : Tuesday, December 29, 2015 - 10:02:59 AM

File

staworko-icdt15b.pdf
Files produced by the author(s)

Licence


Public Domain

Identifiers

  • HAL Id : hal-01205417, version 1

Collections

Citation

Slawomir Staworko, Piotr Wieczorek. Characterizing XML Twig Queries with Examples. International Conference on Database Theory, Mar 2015, Brussels, Belgium. ⟨hal-01205417⟩

Share

Metrics

Record views

221

Files downloads

153