summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/GraphCanvas.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp
index 37af8a5b..e9224cfc 100644
--- a/src/gui/GraphCanvas.cpp
+++ b/src/gui/GraphCanvas.cpp
@@ -638,8 +638,13 @@ GraphCanvas::copy_selection()
{
std::lock_guard<std::mutex> lock(_app.world()->rdf_mutex());
+ std::string base_uri = _graph->uri();
+ if (base_uri[base_uri.size() - 1] != '/') {
+ base_uri += '/';
+ }
+
Serialiser serialiser(*_app.world());
- serialiser.start_to_string(_graph->path(), _graph->base_uri());
+ serialiser.start_to_string(_graph->path(), base_uri);
for_each_selected_node(serialise_node, &serialiser);
for_each_selected_edge(serialise_arc, &serialiser);