[data-shapes] SHACL Rule grammar - DATA should not allow variables. (#734)

afs has just created a new issue for https://github.com/w3c/data-shapes:

== SHACL Rule grammar - DATA should not allow variables. ==
The triple forms for data and the rule head are shared but the data block must not allow variables whereas the head does allow them.

There are two possibilities:

* a new set of productions that disallow variables i.e. duplicate the tree under [TriplesTemplateBlock](https://w3c.github.io/data-shapes/shacl12-rules/#rTriplesTemplateBlock) which is about another 15-20 productions
* Have a note that forbids variables in the DATA block. In effect, have a context flag. 
  (see the [SPARQL Grammar Note 6](https://www.w3.org/TR/sparql12-query/#sparqlGrammar) about
  `INSERT DATA`, `DELETE DATA` ; SPARQL also has context restrictions on blank nodes so  
  "(no) variables x (no) blank nodes" for Turtle forms is a lot of grammar productions.


Please view or discuss this issue at https://github.com/w3c/data-shapes/issues/734 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 24 January 2026 13:55:44 UTC