From 4196ab792e8f8957385fab68dd99c4cde19c870d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 3 May 2023 15:50:54 -0400 Subject: Make serd_reader_read_chunk() work with NQuads --- src/reader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index 32535ceb..5d87216d 100644 --- a/src/reader.c +++ b/src/reader.c @@ -357,7 +357,9 @@ serd_reader_read_chunk(SerdReader* const reader) st = skip_byte(reader, 0); } - return st ? st : read_n3_statement(reader); + return st ? st + : (reader->syntax == SERD_NQUADS) ? read_nquads_statement(reader) + : read_n3_statement(reader); } SerdStatus -- cgit v1.2.1