SPARQL Rewriting: Towards Desired Results
Xun Jian, Yue Wang, Xiayu Lei, Libin Zheng, Lei Chen
Abstract
Recent years witnessed the emergence of various applications on knowledge graphs, which are often represented as RDF graphs. However, due to the lack of data schema and the complexity of SPARQL language, there is usually a gap between the user's real desire and the actual meaning of a SPARQL query, especially when the query itself is complicated. In this paper, we try to narrow this gap by modifying a given query with a set of modifiers, so that its result approaches a user-provided example set. Specifically, we model this problem as two individual sub-problems, query-restricting, and query-relaxing, both of which are shown to be NP-hard. We further prove that unless P=NP, query-restricting has no polynomial-time approximation scheme (PTAS), and query-relaxing has no polynomial-time constant-factor approximation algorithm. Despite their hardness, we propose a (1-1/ε)-approximation method for query-restricting and 2 heuristics for query-relaxing. Extensive experiments have been conducted on real-world knowledge graphs to evaluate the effectiveness and efficiency of our proposed solutions.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 1f47e340-87ec-4256-87be-c36bce3d8b0aRelated papers
- A Fast Hop-Biased Approximation Algorithm for the Quadratic Group Steiner Tree ProblemXiaoqing Wang, Gong ChengWWW 2024 · 1 citation
- Efficient Computation of Semantically Cohesive Subgraphs for Keyword-Based Knowledge Graph ExplorationYuxuan Shi, Gong Cheng, Trung-Kien Tran, Evgeny Kharlamov et al.WWW 2021 · 17 citations
- Query Refinement for Diversity Constraint SatisfactionJinyang Li, Yuval Moskovitch, Julia Stoyanovich, H. V. JagadishVLDB 2024 · 16 citations
- Semantic Guided and Response Times Bounded Top-k Similarity Search over Knowledge GraphsYuxiang Wang, Arijit Khan, Tianxing Wu, Jiahui Jin et al.ICDE 2020 · 45 citations
- Computing How-Provenance for SPARQL Queries via Query RewritingDaniel Hernández, Luis Galárraga, Katja HoseVLDB 2021 · 42 citations
