drobilla / serd

A lightweight C library for RDF syntax
https://gitlab.com/drobilla/serd
ISC License
86 stars 15 forks source link

Reports syntax error on blank node statements #18

Closed RubenVerborgh closed 6 years ago

RubenVerborgh commented 6 years ago
$ echo '[ <urn:test:p> <urn:test:o1> ].' | serdi -
_:b1 <urn:test:p> <urn:test:o1> .
error: (stdin):1:32: syntax error

However, parsing is correct and seems to continue:

$ echo '[ <urn:test:p> <urn:test:o1> ]. <urn:test:a> <urn:test:b> <urn:test:c>.' | serdi -
_:b1 <urn:test:p> <urn:test:o1> .
error: (stdin):1:32: syntax error
<urn:test:a> <urn:test:b> <urn:test:c> .
drobilla commented 6 years ago

Ah. This did not used to be valid Turtle, but is now (as of RDF 1.1).

drobilla commented 6 years ago

Fixed in https://github.com/drobilla/serd/commit/85dd5c18ff8b78fbd73062498bad563e76c22645 , thanks.