From 83759d14c495a9c44c1777f9ccf1962293c1c03a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 4 Dec 2015 17:44:31 -0500 Subject: Omit extension from default doap:name for graphs --- src/Serialiser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Serialiser.cpp b/src/Serialiser.cpp index c1c1c251..bb185e9a 100644 --- a/src/Serialiser.cpp +++ b/src/Serialiser.cpp @@ -343,7 +343,8 @@ Serialiser::Impl::serialise_graph(SPtr graph, // If the graph has no doap:name (required by LV2), use the symbol if (graph->properties().find(uris.doap_name) == graph->properties().end()) { - const std::string sym = Glib::path_get_basename(graph_id.to_string()); + std::string sym = Glib::path_get_basename(graph_id.to_string()); + sym = sym.substr(0, sym.find('.')); _model->add_statement(graph_id, Sord::URI(world, uris.doap_name), Sord::Literal(world, sym)); -- cgit v1.2.1