Error handling for trailing character in the last instance of a pattern
If the last instance in the template pattern has a trailing character, e.g.
ex:A [ottr:IRI ?a, ?b] :: {
ottr:Triple(?a, rdf:type, ?b) @
} .
the output error message is uninformative.
There are two cases:
-
When the character is any character other than
,
:the output is either
# [ERROR] Parsing stOTTR # [ERROR] Syntax error at line 13 col 32: extraneous input ':' expecting {',', '}'}
(For character
:
)or
# [ERROR] Parsing stOTTR # [ERROR] Syntax error at line 13 col 32: token recognition error at: '@\r'
(For character
@
) -
When the character is
,
:Output:
# [FATAL] null