Added an action in lexical rule PN_LOCAL to cope with trailing '.' (DOT).
Added an action in lexical rule PN_LOCAL to cope with trailing '.' (DOT).

PN_LOCAL : (PN_CHARS_U|DIGIT) ((PN_CHARS|DOT)* PN_CHARS)?;

The following example will now successfully run through Sparkle-g:

                       PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
                       PREFIX person: <http://localhost/persons/>
                       PREFIX foaf: <http://xmlns.com/foaf/0.1/>

                       ASK {person:John_Q_Public rdf:type foaf:Person.}
JuPfu/sparkle-g