From 91ae836711ba3df5f44407dadcadb0bd9ac53621 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 18 Mar 2012 15:41:58 +0000 Subject: 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 --- serd/serd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index 40e47499..807664dd 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -684,6 +684,18 @@ void 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. */ -- cgit v1.2.1