On tractable query evaluation for SPARQL

12/24/2017
by   Stefan Mengel, et al.
0

Despite much work within the last decade on foundational properties of SPARQL - the standard query language for RDF data - rather little is known about the exact limits of tractability for this language. In particular, this is the case for SPARQL queries that contain the OPTIONAL-operator, even though it is one of the most intensively studied features of SPARQL. The aim of our work is to provide a more thorough picture of tractable classes of SPARQL queries. In general, SPARQL query evaluation is PSPACE-complete in combined complexity, and it remains PSPACE-hard already for queries containing only the OPTIONAL-operator. To amend this situation, research has focused on "well-designed SPARQL queries" and their recent generalization "weakly well-designed SPARQL queries". For these two fragments the evaluation problem is coNP-complete in the absence of projection and SigmaP2-complete otherwise. Moreover, they have been shown to contain most SPARQL queries asked in practical settings. In this paper, we study tractable classes of weakly well-designed queries in parameterized complexity considering the equivalent formulation as pattern trees. We give a complete characterization of the tractable classes in the case without projection. Moreover, we show a characterization of all tractable classes of simple well-designed pattern trees in the presence of projection.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/10/2018

On the Enumeration Complexity of Unions of Conjunctive Queries

We study the enumeration complexity of Unions of Conjunctive Queries (UC...
research
07/25/2023

Positivity conditions on the annulus via the double-layer potential kernel

We introduce and study a scale of operator classes on the annulus that i...
research
03/17/2020

When is Ontology-Mediated Querying Efficient?

In ontology-mediated querying, description logic (DL) ontologies are use...
research
04/01/2019

A More General Theory of Static Approximations for Conjunctive Queries

Conjunctive query (CQ) evaluation is NP-complete, but becomes tractable ...
research
12/28/2019

The Limits of Efficiency for Open- and Closed-World Query Evaluation Under Guarded TGDs

Ontology-mediated querying and querying in the presence of constraints a...
research
12/29/2019

The Impact of Negation on the Complexity of the Shapley Value in Conjunctive Queries

The Shapley value is a conventional and well-studied function for determ...
research
10/13/2022

Soundness and Completeness of SPARQL Query Containment Solver SpeCS

Tool SPECS implements an efficient automated approach for reasoning abou...

Please sign up or login with your details

Forgot password? Click here to reset