Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mterdjimi opened this issue Nov 8, 2016 · 3 comments
Open
Assignees
Labels

Comments

@mterdjimi
Copy link

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

@RubenVerborgh RubenVerborgh self-assigned this Nov 8, 2016
@RubenVerborgh
Copy link
Owner

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.

@mterdjimi
Copy link
Author

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

@joachimvh
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants