Lune

SIGMOD2020Top-tier venue

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 Lune

Know where this paper stands in minutes, not an afternoon.

Lune can read the top-tier papers that cite it and the ones closest to it, and tells you what it claims, what came after and where it falls short, each point cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

its abstract · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. A Fast Hop-Biased Approximation Algorithm for the Quadratic Group Steiner Tree ProblemXiaoqing Wang, Gong ChengWWW 2024 · 1 citation
  2. 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
  3. Query Refinement for Diversity Constraint SatisfactionJinyang Li, Yuval Moskovitch, Julia Stoyanovich, H. V. JagadishVLDB 2024 · 16 citations
  4. 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
  5. Computing How-Provenance for SPARQL Queries via Query RewritingDaniel Hernández, Luis Galárraga, Katja HoseVLDB 2021 · 42 citations
Dusk over the sea between two cliffs drawn in fine vertical lines