Skip to main content
QUICK REVIEW

[Paper Review] Towards a query language for annotation graphs

Steven Bird, Peter Buneman|Scholarly Commons (University of Pennsylvania)|Jul 13, 2000
Semantic Web and OntologiesComputer Science14 references40 citations
TL;DR

This paper proposes a novel query language for annotation graphs—complex, temporally-structured data models used in speech and linguistic databases—by adapting path-pattern expressions from semistructured data languages. It introduces an optimization technique that partitions the precedence relation into time and transitive arc relations, enabling efficient main-memory evaluation by exploiting the quasi-linear structure of annotation graphs, significantly reducing storage and improving query performance on large-scale speech databases.

ABSTRACT

The multidimensional, heterogeneous, and temporal nature of speech databases raises interesting challenges for representation and query. Recently, annotation graphs have been proposed as a general-purpose representational framework for speech databases. Typical queries on annotation graphs require path expressions similar to those used in semistructured query languages. However, the underlying model is rather different from the customary graph models for semistructured data: the graph is acyclic and unrooted, and both temporal and inclusion relationships are important. We develop a query language and describe optimization techniques for an underlying relational representation.

Motivation & Objective

  • To address the limitations of existing query languages in handling complex, multi-hierarchical, and temporally-structured linguistic annotations in speech databases.
  • To design a query language that naturally expresses path-based queries on annotation graphs, similar to semistructured data languages but adapted to the graph's unique structure.
  • To optimize query evaluation by exploiting the quasi-linear, temporal flow of annotation graphs, reducing reliance on expensive transitive closure computation.
  • To enable efficient, main-memory execution of complex queries by decomposing the precedence relation into time and transitive arc relations.
  • To support scalable and efficient access to large-scale speech databases such as Switchboard by minimizing disk I/O through intelligent data partitioning.

Proposed method

  • Proposes a query language based on regular path patterns, allowing users to express complex navigation across nodes and arcs in annotation graphs using labeled paths.
  • Introduces two key relations: 'time' to store temporal bounds (ante and post) for each node, and 'TA'' to store only arcs that cross temporal boundaries, reducing the size of the transitive closure.
  • Uses functional dependencies: ante(n) and post(n) represent the earliest post time of a preceding timed node and latest ante time of a following timed node, respectively.
  • Reconstructs the full transitive precedence relation (TC) via a disjunctive query: TC(m,n) if post(m) < ante(n) or TA'(m,n), enabling efficient evaluation with standard indexes.
  • Employs range-indexed access to restrict query evaluation to relevant subgraphs bounded by temporal intervals, allowing main-memory processing.
  • Applies query rewriting and indexing strategies that exploit the quasi-linear structure to avoid full transitive closure computation, which is O(n²) in worst case.

Experimental results

Research questions

  • RQ1How can a query language be designed to naturally express complex path-based queries on annotation graphs, which combine temporal, inclusion, and hierarchical relationships?
  • RQ2What optimization techniques can be applied to annotation graph queries that exploit their inherent quasi-linear structure to reduce computational cost?
  • RQ3Can the transitive closure of precedence relations be efficiently computed or approximated using a decomposed representation that fits in main memory?
  • RQ4How does the proposed decomposition of the precedence relation (into time and TA') compare to storing the full TC in terms of space and query performance on real-world speech databases?
  • RQ5To what extent can temporal partitioning enable main-memory evaluation of complex queries, bypassing expensive disk-based operations?

Key findings

  • The decomposition of the transitive precedence relation into 'time' and 'TA'' relations reduces storage requirements significantly: for a single timeline in the Switchboard database, TC size was ~1.9 million, while TA' size was only 10,585.
  • The 'time' relation contains only 1,992 entries for the same timeline, demonstrating that temporal bounds can be stored compactly.
  • The largest observed size of TA' across the entire Switchboard database was 15,286, indicating that the optimized representation remains scalable and fits in main memory.
  • The query TC(m,n) can be efficiently reconstructed using a disjunction of two conditions: post(m) < ante(n) or TA'(m,n), enabling fast evaluation with standard indexes.
  • By restricting queries to subgraphs bounded by temporal intervals (ante(X) and post(Y)), the method enables main-memory evaluation, avoiding costly disk I/O and improving performance.
  • The approach enables efficient query processing on large-scale speech databases by leveraging the quasi-linear structure to minimize the search space and avoid full transitive closure computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.