From f90140095a3ffc78b2df048b3daa4a103da2778b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 15 Mar 2021 15:42:32 -0400 Subject: 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. --- src/Serialiser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.1