@simonstey in https://github.com/w3c/data-shapes/pull/659#discussion_r2570560386_ > a file containing only prefixes would be invalid in this case, which is different from e.g. Turtle's Grammar (https://www.w3.org/TR/rdf12-turtle/#sec-grammar-grammar) > > ``` > [1] turtleDoc ::= statement* > [2] statement ::= directive | (triples '.') > ``` > > it's, however, aligned with [SPARQL](https://www.w3.org/TR/sparql12-query/#sparqlGrammar): > > ``` > [1] QueryUnit ::= Query > [2] Query ::= Prologue( SelectQuery | ConstructQuery | DescribeQuery | AskQuery ) ValuesClause > ``` >