diff options
author | David Robillard <d@drobilla.net> | 2016-07-29 19:41:19 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-29 19:43:43 -0400 |
commit | 50a6edb088ead6d8f6287aeca55e4d704add61a2 (patch) | |
tree | 71a14257ba1ea107f8f454544b30bce7e4c4ec90 /src/Parser.cpp | |
parent | 9ff60e9058080ccbea85eee603642a577dd258cf (diff) | |
download | ingen-50a6edb088ead6d8f6287aeca55e4d704add61a2.tar.gz ingen-50a6edb088ead6d8f6287aeca55e4d704add61a2.tar.bz2 ingen-50a6edb088ead6d8f6287aeca55e4d704add61a2.zip |
Save bundled graphs to graph.ttl by default
This avoids a lot of hassle with filename construction and renaming,
while ensuring that the internal structure of any graph bundle is the
same.
Diffstat (limited to 'src/Parser.cpp')
-rw-r--r-- | src/Parser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp index 50ccb975..31ab4245 100644 --- a/src/Parser.cpp +++ b/src/Parser.cpp @@ -1,6 +1,6 @@ /* This file is part of Ingen. - Copyright 2007-2015 David Robillard <http://drobilla.net/> + Copyright 2007-2016 David Robillard <http://drobilla.net/> Ingen is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free @@ -312,8 +312,7 @@ parse_block(Ingen::World* world, &ignored); const std::string sub_uri_str = (const char*)sub_uri.buf; - const std::string basename = get_basename(sub_uri_str); - const std::string sub_file = sub_uri_str + '/' + basename + ".ttl"; + const std::string sub_file = sub_uri_str + "/graph.ttl"; const SerdNode sub_base = serd_node_from_string( SERD_URI, (const uint8_t*)sub_file.c_str()); |