From aefb0fae022e998d5866837344f9b770e4c9cf19 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Feb 2015 07:02:26 +0000 Subject: Set base URI when serializing to string. git-svn-id: http://svn.drobilla.net/sord/trunk@323 3d64ff67-21c5-427c-a301-fe4f08042e5a --- sord/sordmm.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sord') diff --git a/sord/sordmm.hpp b/sord/sordmm.hpp index 85143f7..ab12e21 100644 --- a/sord/sordmm.hpp +++ b/sord/sordmm.hpp @@ -596,6 +596,10 @@ Model::write_to_string(const std::string& base_uri_str, string_sink, &ret); + const SerdNode base_uri_node = serd_node_from_string( + SERD_URI, (const uint8_t*)base_uri_str.c_str()); + serd_writer_set_base_uri(writer, &base_uri_node); + serd_env_foreach(_world.prefixes().c_obj(), (SerdPrefixSink)serd_writer_set_prefix, writer); -- cgit v1.2.1