Skip to main content
QUICK REVIEW

[Paper Review] On the satisfiability problem for SPARQL patterns

Xiaowang Zhang, Jan Van den Bussche|arXiv (Cornell University)|Jun 5, 2014
Semantic Web and OntologiesComputer Science18 references4 citations
TL;DR

This paper investigates the decidability of the satisfiability problem for SPARQL 1.0 patterns, showing that satisfiability is decidable only when filter conditions cannot form inconsistent constraint sets. The key result is that satisfiability becomes undecidable as soon as filter conditions allow for inconsistent combinations—such as negated bound-constraints, constant-equalities, or mixed equalities and nonequalities—by emulating set difference, which reduces to known undecidability in relational algebra.

ABSTRACT

The satisfiability problem for SPARQL patterns is undecidable in general, since the expressive power of SPARQL 1.0 is comparable with that of the relational algebra. The goal of this paper is to delineate the boundary of decidability of satisfiability in terms of the constraints allowed in filter conditions. The classes of constraints considered are bound-constraints, negated bound-constraints, equalities, nonequalities, constant-equalities, and constant-nonequalities. The main result of the paper can be summarized by saying that, as soon as inconsistent filter conditions can be formed, satisfiability is undecidable. The key insight in each case is to find a way to emulate the set difference operation. Undecidability can then be obtained from a known undecidability result for the algebra of binary relations with union, composition, and set difference. When no inconsistent filter conditions can be formed, satisfiability is efficiently decidable by simple checks on bound variables and on the use of literals. The paper also points out that satisfiability for the so-called `well-designed' patterns can be decided by a check on bound variables and a check for inconsistent filter conditions.

Motivation & Objective

  • To determine the precise boundary of decidability for the satisfiability problem in SPARQL 1.0 patterns.
  • To analyze how different classes of filter constraints—bound-constraints, equalities, nonequalities, and their negations—affect decidability.
  • To identify which fragments of SPARQL allow for decidable satisfiability through syntactic checks on bound variables and inconsistent filter conditions.
  • To extend the analysis to well-designed SPARQL patterns and to SPARQL 1.1 features such as BIND, VALUES, and aggregates.
  • To provide a practical foundation for query optimization and automated reasoning in RDF and SPARQL systems.

Proposed method

  • Formalize SPARQL 1.0 patterns using the set-based semantics from Arenas, Gutierrez, and Pérez, focusing on filter conditions and variable binding.
  • Define six constraint classes: bound-constraints, negated bound-constraints, equalities, nonequalities, constant-equalities, and constant-nonequalities.
  • Establish undecidability by showing that any fragment allowing inconsistent filter conditions can emulate the set difference operation.
  • Leverage known undecidability results for the algebra of binary relations with union, composition, and set difference to prove undecidability in SPARQL fragments.
  • Demonstrate decidability via syntactic checks: bound variable consistency and detection of inconsistent filter conditions.
  • Extend results to SPARQL 1.1 features by showing that BIND and VALUES enable constant-equality filtering, thus reintroducing undecidability.

Experimental results

Research questions

  • RQ1Which combinations of filter constraints in SPARQL patterns lead to an undecidable satisfiability problem?
  • RQ2Can the set difference operation be emulated in SPARQL using only filter conditions, and under what constraint conditions is this possible?
  • RQ3Under what conditions is satisfiability decidable for SPARQL patterns, and can it be checked via syntactic analysis alone?
  • RQ4How do SPARQL 1.1 features such as BIND, VALUES, and aggregates affect the decidability of satisfiability?
  • RQ5Can the satisfiability of well-designed SPARQL patterns be decided efficiently using a combination of bound variable checks and inconsistent filter detection?

Key findings

  • Satisfiability for SPARQL patterns is undecidable if the filter conditions can form inconsistent sets, particularly when negated bound-constraints, constant-equalities, or combinations of equalities and nonequalities are allowed.
  • The only decidable fragments are SPARQL(bound, =, ≠c) and SPARQL(bound, ≠, ≠c), along with their subfragments, where satisfiability is determined by syntactic checks on bound variables and filter consistency.
  • Undecidability is established by showing that such fragments can emulate the set difference operation, which reduces to the known undecidability of the relational algebra with union, composition, and difference.
  • The satisfiability problem is NP-complete in the decidable cases, but experimental evaluation confirms that the syntactic checks can be implemented efficiently in practice.
  • Well-designed SPARQL patterns have decidable satisfiability through a combination of bound variable checks and detection of inconsistent filter conditions.
  • SPARQL 1.1 features such as BIND and VALUES enable the expression of constant-equalities in filters, thereby reintroducing undecidability in fragments that previously had decidable satisfiability.

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.