aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/serd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/serd.h')
-rw-r--r--include/serd/serd.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h
index 6324c06e..9eb84a6a 100644
--- a/include/serd/serd.h
+++ b/include/serd/serd.h
@@ -2589,7 +2589,16 @@ typedef enum {
This disables the special "a" syntax in Turtle and TriG.
*/
- SERD_WRITE_RDF_TYPE = 1u << 5u
+ SERD_WRITE_RDF_TYPE = 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