diff options
author | David Robillard <d@drobilla.net> | 2007-09-07 23:09:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-07 23:09:18 +0000 |
commit | a8c5598add06e2a413d06dbccb61708d164959b5 (patch) | |
tree | 23b95f0d14e587b76608c43b6a37fdd5cbbd7db2 | |
parent | 153fe99497a7ccc91aac6082b29748a66792d374 (diff) | |
download | ingen-a8c5598add06e2a413d06dbccb61708d164959b5.tar.gz ingen-a8c5598add06e2a413d06dbccb61708d164959b5.tar.bz2 ingen-a8c5598add06e2a413d06dbccb61708d164959b5.zip |
Fix RDF URIs for subpatches (first letter was chopped).
git-svn-id: http://svn.drobilla.net/lad/ingen@697 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/libs/client/Serializer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp index be468202..035ff0ba 100644 --- a/src/libs/client/Serializer.cpp +++ b/src/libs/client/Serializer.cpp @@ -247,8 +247,10 @@ Serializer::patch_path_to_rdf_id(const Path& path) return Node(_model->world(), Node::RESOURCE, _base_uri); } else { assert(path.length() > _root_object->path().length()); - return Node(_model->world(), Node::RESOURCE, - _base_uri + string("#") + path.substr(_root_object->path().length() + 1)); + const Node ret(_model->world(), Node::RESOURCE, + _base_uri + string("#") + path.substr(_root_object->path().length())); + cerr << "RDF ID: " << path << " -> " << ret.to_string() << endl; + return ret; } } |