lgrozinger / rdfscript

1 stars 0 forks source link

Syntax change for QNames #12

Closed lgrozinger closed 5 years ago

lgrozinger commented 6 years ago

The syntax for QNames in 1.0 is <prefix>:<localname>, not <prefix>.<localname>.

This is because <expr> is a first-class, <toplevel> construct in 2.0, but not 1.0, and QName's can be expressions.

This problem could be resolved (although it is perhaps not even a problem), by including some precedence rules in the parser.py grammar for <expr>s and <instanceexp>.

lgrozinger commented 5 years ago

The concept of QNames has disappeared. : is now a SYMBOL character in the reader. New syntax allows for dotted chain of names or URIs.