ComputingComputer ScienceDatabasesInformation RetrievalNatural Language ProcessingAbstract Syntax TreesQuery ProcessingRegular LanguagesStructured Query LanguageXml DatabasesAlphabetsConditionsQuery AnsweringRegular ExpressionsSchema MatchingXml Document RetrievalXml Query LanguagesXml Query Processing
Query languages for XML often use path expressions to locate elements in XML documents. Path expressions are regular expressions such that underlying alphabets represent conditions on nodes. Path expressions represent conditions on paths from the root, but do not represent conditions on siblings, siblings of ancestors, and descendants of such siblings. In order to capture such conditions, we propose to extend underlying alphabets. Each symbol in an extended alphabet is a triplet (e1, a, e2), where a is a condition on nodes, and e1 (e2) is a condition on elder (resp. younger) siblings and their descendants; e1 and e2 are represented by hedge regular expressions, which are as expressive as hedge automata (hedges are ordered sequences of trees). Nodes matching such an extended path expression can be located by traversing the XML document twice. Furthermore, given an input schema and a query operation controlled by an extended path expression, it is possible to construct an output schema. This is done by identifying, where in the input schema the given extended path expression is satisfied.
17
Tree automata techniques and applications
Hubert Comon, Max Dauchet, Florent Jacquemard et al. · 1997 · 1.2K citations · Full text
Weak Second‐Order Arithmetic and Finite Automata
J Büchi · Mathematical logic quarterly · 1960 · 819 citations
Optimizing regular path expressions using graph schemas
Mary Fernández, Dan Suciu · 2002 · 242 citations
DTD inference for views of XML data
Yannis Papakonstantinou, Victor Vianu · 2000 · 220 citations
Regular path queries with constraints
Serge Abiteboul, Victor Vianu · 1997 · 161 citations