Opened 4 years ago

Closed 4 years ago

#1173 closed Bug Report (fixed)

Digits in URI scheme result in parsing error

Reported by: Wouter Beek Owned by: David Robillard
Priority: major Component: Serd
Keywords: Cc:


The following is not parsed correctly by Serd 0.26.0 when run as `serdi -i ntriples <FILE>':

<a:b> <a:b> <a2:b>

This gives the following error:

syntax does not support relative IRIs
Catch exception load: Error parsing input.

But there are no relative IRIs in the above content. Specifically, the digit (2) in the third IRI's scheme component causes the problem. According to URI/IRI grammars, non-initial characters of scheme components are allowed to be decimal digits.

The same content does parse correctly with `serdi -i turtle <FILE>'.

Change History (2)

comment:1 Changed 4 years ago by Wouter Beek

Component: BLOPSerd

comment:2 Changed 4 years ago by David Robillard

Resolution: fixed
Status: newclosed

Fixed in 195e4bc/serd.

Note: See TracTickets for help on using tickets.