aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 8efaab20..d350cf4c 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -244,10 +244,17 @@ serd_reader_free(SerdReader reader);
* @{
*/
+typedef enum {
+ SERD_STYLE_ABBREVIATED = 1,
+ SERD_STYLE_ASCII = 1 << 1,
+ SERD_STYLE_ESCAPE_
+} SerdStyle;
+
/** Create a new RDF writer. */
SERD_API
SerdWriter
serd_writer_new(SerdSyntax syntax,
+ SerdStyle style,
SerdNamespaces ns,
const SerdURI* base_uri,
SerdSink sink,
@@ -258,12 +265,19 @@ SERD_API
void
serd_writer_free(SerdWriter writer);
-/** Set the base URI of writer. */
+/** Set the current output base URI. */
SERD_API
void
serd_writer_set_base_uri(SerdWriter writer,
const SerdURI* uri);
+/** Set the current output base URI. */
+SERD_API
+void
+serd_writer_set_prefix(SerdWriter writer,
+ const SerdString* name,
+ const SerdString* uri);
+
/** Write a statement. */
SERD_API
bool
@@ -278,6 +292,11 @@ serd_writer_write_statement(SerdWriter writer,
const SerdString* object_datatype,
const SerdString* object_lang);
+/** Finish a write. */
+SERD_API
+void
+serd_writer_finish(SerdWriter writer);
+
/** @} */
/** @} */