aboutsummaryrefslogtreecommitdiffstats
path: root/serd
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-18 15:41:58 +0000
committerDavid Robillard <d@drobilla.net>2012-03-18 15:41:58 +0000
commit91ae836711ba3df5f44407dadcadb0bd9ac53621 (patch)
treef01047babb9d09230aa8a774e20bbe7cff505c3e /serd
parent90830a30aa7e16b4ebb3a249f1456da174b1eca3 (diff)
downloadserd-91ae836711ba3df5f44407dadcadb0bd9ac53621.tar.gz
serd-91ae836711ba3df5f44407dadcadb0bd9ac53621.tar.bz2
serd-91ae836711ba3df5f44407dadcadb0bd9ac53621.zip
Add serd_reader_set_default_graph() for reading a file as a named graph.
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'serd')
-rw-r--r--serd/serd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 40e47499..807664dd 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -685,6 +685,18 @@ serd_reader_add_blank_prefix(SerdReader* reader,
const uint8_t* prefix);
/**
+ Set the URI of the default graph.
+
+ If this is set, the reader will emit quads with the graph set to the given
+ node for any statements that are not in a named graph (which is currently
+ all of them since Serd currently does not support any graph syntaxes).
+*/
+SERD_API
+void
+serd_reader_set_default_graph(SerdReader* reader,
+ const SerdNode* graph);
+
+/**
Read a file at a given @c uri.
*/
SERD_API