summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-08 07:02:26 +0000
committerDavid Robillard <d@drobilla.net>2015-02-08 07:02:26 +0000
commitaefb0fae022e998d5866837344f9b770e4c9cf19 (patch)
tree5ac21ab13730ac02e8865e694f1575bf33007777
parentbbdc2364d6067057bc8ccaafa14dcf9bbd08a464 (diff)
downloadsord-aefb0fae022e998d5866837344f9b770e4c9cf19.tar.gz
sord-aefb0fae022e998d5866837344f9b770e4c9cf19.tar.bz2
sord-aefb0fae022e998d5866837344f9b770e4c9cf19.zip
Set base URI when serializing to string.
git-svn-id: http://svn.drobilla.net/sord/trunk@323 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--sord/sordmm.hpp4
1 files changed, 4 insertions, 0 deletions
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);