SPARQL.js icon indicating copy to clipboard operation
SPARQL.js copied to clipboard

Catch DELETE/INSERT DATA queries that include non-ground triples

Open mterdjimi opened this issue 8 years ago • 3 comments

Hello,

As from the SPARQL 1.1 specification, DELETE/INSERT DATA queries only allow ground triples. However, the following (incorrect) query does not return any parsing error :

DELETE DATA { ?s ?p ?o }

Best,

Mehdi

mterdjimi avatar Nov 08 '16 10:11 mterdjimi

Interesting, this is not specified in the grammar.

The SPARQL 1.1 Update specification indeed mentions that triples need to be ground. I also noted an exception on blank nodes.

RubenVerborgh avatar Nov 08 '16 10:11 RubenVerborgh

Indeed, both QuadPattern and QuadData refer to Quads in the grammar.

mterdjimi avatar Nov 08 '16 11:11 mterdjimi

Noticed this issue since I'm going through UPDATE stuff myself.

This actually is specified in the grammar, it's note 8 in the notes above the grammar table. The exception on blank nodes is note 10 (which links to the section you linked).

joachimvh avatar Jul 01 '20 11:07 joachimvh