summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-12-04 17:44:31 -0500
committerDavid Robillard <d@drobilla.net>2015-12-04 17:44:31 -0500
commit83759d14c495a9c44c1777f9ccf1962293c1c03a (patch)
tree81818e04a75a7b83eb2f0977e8f39d1cff40ed80 /src
parent931be60fedc49fc6fde39a8342928ff6c7e60e07 (diff)
downloadingen-83759d14c495a9c44c1777f9ccf1962293c1c03a.tar.gz
ingen-83759d14c495a9c44c1777f9ccf1962293c1c03a.tar.bz2
ingen-83759d14c495a9c44c1777f9ccf1962293c1c03a.zip
Omit extension from default doap:name for graphs
Diffstat (limited to 'src')
-rw-r--r--src/Serialiser.cpp3
1 files changed, 2 insertions, 1 deletions
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<const Node> 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));