W3C home > Mailing lists > Public > public-sparql-dev@w3.org > October to December 2014

LBA completeness of SPARQL

From: Michael Brunnbauer <brunni@netestate.de>
Date: Tue, 18 Nov 2014 11:40:41 +0100
To: public-sparql-dev@w3.org
Message-ID: <20141118104041.GA18120@netestate.de>

hi all,

has the question if SPARQL is linear bounded automaton complete (or Turing
complete in the colloquial sense) been settled? I am a bit confused about
the fine points. How about this:


> By putting a limit on the tape size, we can emulate a Turing machine with one SPARQL UPDATE query followed by one normal SPARQL query - in a quite impractical way. The basic idea is to generate all possible state transitions and then to search through them with property paths.
> If the first SPARQL UPDATE query generates all state transitions for a universal linear bounded automaton (a Turing machine with finite tape emulating a Turing machine described on its tape), you can execute any program that fits into the tape just by doing the second query.
> This does not seem to be feasible with modern hardware (e.G. a tape size of 40 bits for the universal Turing machine) and even if it were, the calculations enabled by this would only be able to manipulate a handful of bits. 

A friend says this is cheating because it combines impractically big resources
for the SPARQL engine (at least in the universal case) with impractically small
computations enabled by it.

Also, the exact wording maybe has to be that 

1) the combination of two queries


2) one query and a (hypothetical) endpoint with the pre-generated state
   transitions for the universal case
are linear bounded automaton complete.

There seems to be another option for emulation of a Turing machine: Put a 
limit N on the number of computation steps and construct a query with at least
N nested subselects using operators like IF().

Would this constitute completeness?


Michael Brunnbauer

++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail brunni@netestate.de
++  http://www.netestate.de/
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel

Received on Tuesday, 18 November 2014 10:41:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC