diff options
-rw-r--r-- | sord/sordmm.hpp | 4 |
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); |