aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/n3.c2
-rw-r--r--src/reader.c4
-rw-r--r--src/reader.h3
3 files changed, 7 insertions, 2 deletions
diff --git a/src/n3.c b/src/n3.c
index c92059a5..d332504d 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1723,7 +1723,7 @@ read_turtleTrigDoc(SerdReader* const reader)
return SERD_SUCCESS;
}
-static SerdStatus
+SerdStatus
read_nquads_statement(SerdReader* const reader)
{
SerdStatus st = SERD_SUCCESS;
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
diff --git a/src/reader.h b/src/reader.h
index 54914ee5..9b558d1f 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -101,6 +101,9 @@ SerdStatus
read_n3_statement(SerdReader* reader);
SerdStatus
+read_nquads_statement(SerdReader* reader);
+
+SerdStatus
read_nquadsDoc(SerdReader* reader);
SerdStatus