Efficient Execution of SPARQL Queries with OPTIONAL and UNION Expressions
Yue Pang, Lei Zou, M. Tamer Özsu, Jiaqi Chen
Abstract
The proliferation of RDF datasets has resulted in studies focusing on optimizing SPARQL query processing. Most existing work focuses on basic graph patterns (BGPs) and ignores other vital operators in SPARQL, such as UNION and OPTIONAL. SPARQL queries with these operators, which we abbreviate as SPARQL-UO, pose serious query plan generation challenges. In this paper, we propose techniques for executing SPARQL-UO queries using BGP execution as a building block, based on a novel BGP-based Evaluation (BE)-Tree representation of query plans. On top of this, we propose a series of cost-driven BEtree transformations to generate more efficient plans by reducing the search space and intermediate result sizes, and a candidate pruning technique that further enhances efficiency at query time. Experiments confirm that our method outperforms the state-of-the-art by orders of magnitude.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext cb1b422b-5193-4c1b-8b59-37111c8e65e6Related papers
- The Case of SPARQL UNION, FILTER and DISTINCTMedha AtreWWW 2022 · 1 citation
- On the Expressivity of ASK Queries in SPARQLXiaowang Zhang, Jan Van den Bussche, Kewen Wang, Heng Zhang et al.AAAI 2020
- FedUP: Querying Large-Scale Federations of SPARQL EndpointsJulien Aimonier-Davat, Brice Nédelec, Minh Hoang Dang, Pascal Molli et al.WWW 2024 · 5 citations
- PlanRGCN: Predicting SPARQL Query PerformanceAbiram Mohanaraj, Matteo Lissandrini, Katja HoseVLDB 2025 · 2 citations
- Worst-Case Optimal BGPs on Temporal GraphsDiego Arroyuelo, Aidan Hogan, Gonzalo Navarro, Juan L. ReutterVLDB 2026
