The following code does not properly read NQuads (Graph is always null):
auto* r = serd_reader_new(...);
serd_reader_start_source_stream(...);
while (serd_reader_read_chunk(...) ...) {...};
(Reading a file directly via serd_reader_read_file_handle works, but reading via a simple adaptor from a c++ std::istream to serd_reader_read_chunk does not)
Possible cause:
serd_reader_read_chunk calls read_statement which calls read_n3_statement direcly, without checking the readers syntax mode.
The following code does not properly read NQuads (Graph is always null):
(Reading a file directly via
serd_reader_read_file_handle
works, but reading via a simple adaptor from a c++std::istream
toserd_reader_read_chunk
does not)Possible cause:
serd_reader_read_chunk
callsread_statement
which callsread_n3_statement
direcly, without checking the readers syntax mode.