A query by example approach for XML querying

Flávio Xavier Ferreira, Daniela Da Cruz, Pedro Rangel Henriques, Alda Lopes Gançarski, Bruno Defude

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

XML, as a general-purpose annotation system for creating custom markup languages, is becoming more and more important. XML annotations give structure to plain documents and help to interpret their content, making them human or machine readable. However, mechanisms to pretty-print those annotated documents or process them in order to extract information are crucial to make them useful. In a similar way, a collection of XML documents, without any tools capable of retrieving information from it, is useless. To search for specific elements in a marked up document we have, at least, two options: XPath and XQuery. However, the learning curve of these two dialects is high, requiring a considerable level of knowledge. In this context, the idea of Query-by-example can be an important contribution to make easier this learning process, freeing the user from knowing the specific query language details or even the document structure. In this paper, we describe our approach to QBE based on an sample document from the collection where the user specifies his needs. First, we focus on the choice of the adequate document to serve as a sample of the collection, based on different metrics computed over the document. Then, we discuss the query generation from the user needs' specifications, namely components (elements or attributes) selection and filtering.

Original languageEnglish
Title of host publicationActas da 4a Conferencia Iberica de Sistemas e Tecnologias de Informacao, CISTI 2009
EditorsLuis Paulo Reis, Alvaro Rocha, Sofia Torrao, Francisco Restivo
PublisherAssociacao Iberica de Sistemas e Tecnologias de Informacao
Pages611-614
Number of pages4
ISBN (Electronic)9789899624719
Publication statusPublished - 1 Jan 2009
Event4a Conferencia Iberica de Sistemas e Tecnologias de Informacao, CISTI 2009 - 4th Iberian Conference on Information Systems and Technologies, CISTI 2009 - Povoa de Varzim, Portugal
Duration: 17 Jun 200920 Jun 2009

Publication series

NameActas da 4a Conferencia Iberica de Sistemas e Tecnologias de Informacao, CISTI 2009

Conference

Conference4a Conferencia Iberica de Sistemas e Tecnologias de Informacao, CISTI 2009 - 4th Iberian Conference on Information Systems and Technologies, CISTI 2009
Country/TerritoryPortugal
CityPovoa de Varzim
Period17/06/0920/06/09

Keywords

  • Query-by-example
  • XML
  • XQuery

Fingerprint

Dive into the research topics of 'A query by example approach for XML querying'. Together they form a unique fingerprint.

Cite this