summaryrefslogtreecommitdiffstats
path: root/src/Serialiser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-03-15 15:42:32 -0400
committerDavid Robillard <d@drobilla.net>2021-03-15 15:42:32 -0400
commitf90140095a3ffc78b2df048b3daa4a103da2778b (patch)
tree4eaa62fb9535d08eda4ce431b650938a90da440e /src/Serialiser.cpp
parent473409cf99681be5a44f837bde729ab2c04a3f45 (diff)
downloadingen-f90140095a3ffc78b2df048b3daa4a103da2778b.tar.gz
ingen-f90140095a3ffc78b2df048b3daa4a103da2778b.tar.bz2
ingen-f90140095a3ffc78b2df048b3daa4a103da2778b.zip
Fix clashing blank nodes with MIDI bindings
This uses a different namespace for arc blank node IDs, which avoids clashes with MIDI bindings which are written with IDs like "b1", "b2", and so on. This is a symptom of a deeper issue where blank node generation isn't coordinated properly, but this fix avoids the problem for now and is nice anyway since it makes the role of blank nodes clearer when debugging.
Diffstat (limited to 'src/Serialiser.cpp')
-rw-r--r--src/Serialiser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp
index f368820e..aaf12f76 100644
--- a/src/Serialiser.cpp
+++ b/src/Serialiser.cpp
@@ -530,7 +530,7 @@ Serialiser::Impl::serialise_arc(const Sord::Node& parent,
const Sord::Node src = path_rdf_node(arc->tail_path());
const Sord::Node dst = path_rdf_node(arc->head_path());
- const Sord::Node arc_id = Sord::Node::blank_id(*_world.rdf_world());
+ const Sord::Node arc_id = Sord::Node::blank_id(*_world.rdf_world(), "arc");
_model->add_statement(arc_id,
Sord::URI(world, uris.ingen_tail),
src);