summaryrefslogtreecommitdiffstats
path: root/src/libs/client/Serializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/Serializer.cpp')
-rw-r--r--src/libs/client/Serializer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp
index 035ff0ba..bfcdc51c 100644
--- a/src/libs/client/Serializer.cpp
+++ b/src/libs/client/Serializer.cpp
@@ -247,10 +247,8 @@ 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());
- const Node ret(_model->world(), Node::RESOURCE,
+ return Node(_model->world(), Node::RESOURCE,
_base_uri + string("#") + path.substr(_root_object->path().length()));
- cerr << "RDF ID: " << path << " -> " << ret.to_string() << endl;
- return ret;
}
}
@@ -278,6 +276,11 @@ Serializer::serialize_patch(SharedPtr<PatchModel> patch)
"ingen:polyphony",
Atom((int)patch->poly()));
+ _model->add_statement(
+ patch_id,
+ "ingen:enabled",
+ Atom(patch->enabled()));
+
for (MetadataMap::const_iterator m = patch->metadata().begin(); m != patch->metadata().end(); ++m) {
if (m->first.find(":") != string::npos) {
_model->add_statement(