Open
Description
I believe that checking the validity of templates should be included in the shapes. I'm not sure whether SPARQL's regular expressions allow for recursion, but it can be achieved by:
- removing the unescaped curly braces from the template
- checking whether the resulting string matches
^[^\{\}]*(?:\{[^\{\}]+\}[^\{\}]*)*$
(balanced and not nested)
This can be achieved for a SPARQL constraint component.