diff options
Diffstat (limited to 'src/serdi.c')
-rw-r--r-- | src/serdi.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/serdi.c b/src/serdi.c index d82198ad..f6a329bb 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -144,7 +144,8 @@ choose_style(const SerdSyntax input_syntax, const SerdSyntax output_syntax, const bool ascii, const bool bulk_write, - const bool full_uris) + const bool full_uris, + const bool lax) { unsigned output_style = 0U; if (output_syntax == SERD_NTRIPLES || ascii) { @@ -166,6 +167,10 @@ choose_style(const SerdSyntax input_syntax, output_style |= SERD_STYLE_BULK; } + if (!lax) { + output_style |= SERD_STYLE_STRICT; + } + return (SerdStyle)output_style; } @@ -301,8 +306,8 @@ main(int argc, char** argv) : SERD_NQUADS); } - const SerdStyle output_style = - choose_style(input_syntax, output_syntax, ascii, bulk_write, full_uris); + const SerdStyle output_style = choose_style( + input_syntax, output_syntax, ascii, bulk_write, full_uris, lax); SerdURI base_uri = SERD_URI_NULL; SerdNode base = SERD_NODE_NULL; |