summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/serialisation/Parser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/serialisation/Parser.cpp b/src/serialisation/Parser.cpp
index 2959e12a..fac5a656 100644
--- a/src/serialisation/Parser.cpp
+++ b/src/serialisation/Parser.cpp
@@ -588,7 +588,7 @@ Parser::parse_connections(
{
Redland::Query query(*world->rdf_world, Glib::ustring(
"SELECT DISTINCT ?src ?dst WHERE {\n")
- /*+ subject*/ + /*"?foo ingen:connection ?connection .\n"*/
+ + subject + " ingen:connection ?connection .\n"
"?connection ingen:source ?src ;\n"
" ingen:destination ?dst .\n"
"}");
@@ -607,6 +607,9 @@ Parser::parse_connections(
continue;
}
+ src_path = src_path.substr(parent.base().length()-1);
+ dst_path = dst_path.substr(parent.base().length()-1);
+
target->connect(src_path, dst_path);
}