drobilla / serd

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

Cannot parse a valid TriG document #22

Closed wouterbeek closed 5 years ago

wouterbeek commented 5 years ago

For a file test.trig with the following content:

prefix : <https://example.com/>
:g {
  :x :p :y.
  :x :p :y; :q :z.
}

run the following command:

$ serdi -i trig test.trig 
<https://example.com/x> <https://example.com/p> <https://example.com/y> <https://example.com/g> .
<https://example.com/x> <https://example.com/p> <https://example.com/y> <https://example.com/g> .
error: /home/wbeek/tmp/test.trig:4:10: bad subject
drobilla commented 5 years ago

Whoops. These fuzzy dots in the RDF 1.1 grammars will be the death of me :/

Fixed in cb231f47, thanks.