aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/writer.h')
-rw-r--r--include/serd/writer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/serd/writer.h b/include/serd/writer.h
index 5e8f5e6e..73f6fb0b 100644
--- a/include/serd/writer.h
+++ b/include/serd/writer.h
@@ -87,6 +87,15 @@ typedef enum {
This disables the special "a" syntax in Turtle and TriG.
*/
SERD_WRITE_LONGHAND = 1U << 5U,
+
+ /**
+ Suppress writing directives that describe the context.
+
+ This writes data as usual, but suppresses writing `prefix` directives in
+ Turtle and TriG. The resulting output is a fragment of a document with
+ implicit context, so it will only be readable in a suitable enviromnent.
+ */
+ SERD_WRITE_CONTEXTUAL = 1U << 6U,
} SerdWriterFlag;
/// Bitwise OR of #SerdWriterFlag values