diff options
author | David Robillard <d@drobilla.net> | 2007-10-08 19:26:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-08 19:26:07 +0000 |
commit | cac2494fb075045694134a7aace68fced10ff1d9 (patch) | |
tree | 0375857a1d340eba310262b4bd09c8ed3fb3ea81 /src/libs/serialisation/Serialiser.cpp | |
parent | 88cff5320290010b5f35b8dcbd40c63317956d62 (diff) | |
download | ingen-cac2494fb075045694134a7aace68fced10ff1d9.tar.gz ingen-cac2494fb075045694134a7aace68fced10ff1d9.tar.bz2 ingen-cac2494fb075045694134a7aace68fced10ff1d9.zip |
Build fixes.
Work on proper variable (metadata) serialisation.
git-svn-id: http://svn.drobilla.net/lad/ingen@854 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/serialisation/Serialiser.cpp')
-rw-r--r-- | src/libs/serialisation/Serialiser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp index f0008b64..83920d28 100644 --- a/src/libs/serialisation/Serialiser.cpp +++ b/src/libs/serialisation/Serialiser.cpp @@ -410,8 +410,10 @@ Serialiser::serialise_variables(RDF::Node subject, const GraphObject::Variables& { for (GraphObject::Variables::const_iterator v = variables.begin(); v != variables.end(); ++v) { if (v->first.find(":") != string::npos) { - RDF::Node var_id = _world.blank_id(); + const RDF::Node var_id = _world.blank_id(); + const RDF::Node key(_model->world(), RDF::Node::RESOURCE, v->first); _model->add_statement(subject, "ingen:variable", var_id); + _model->add_statement(var_id, "ingen:key", key); _model->add_statement(var_id, "ingen:value", v->second); } else { cerr << "Warning: not serialising variable with key '" << v->first << "'" << endl; |