diff options
Diffstat (limited to 'src/serialisation/Serialiser.cpp')
-rw-r--r-- | src/serialisation/Serialiser.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 6e126c42..6a674eb5 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -526,9 +526,15 @@ Serialiser::Impl::serialise_edge(const Sord::Node& parent, Sord::Curie(world, "ingen:head"), dst); - _model->add_statement(parent, - Sord::Curie(world, "ingen:edge"), - edge_id); + if (parent.is_valid()) { + _model->add_statement(parent, + Sord::Curie(world, "ingen:edge"), + edge_id); + } else { + _model->add_statement(edge_id, + Sord::Curie(world, "rdf:type"), + Sord::Curie(world, "ingen:Edge")); + } } static bool |