aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-11-29 03:57:12 +0000
committerDavid Robillard <d@drobilla.net>2007-11-29 03:57:12 +0000
commitb36e00c19a932b254f81e2fa71b808c440909739 (patch)
treea27af46924b15c2614f7d309edd6dac987c2a3ff /src/engine
parent6f1d3c49cde555178d189f42f83e12d2ca709bcf (diff)
downloadmachina-b36e00c19a932b254f81e2fa71b808c440909739.tar.gz
machina-b36e00c19a932b254f81e2fa71b808c440909739.tar.bz2
machina-b36e00c19a932b254f81e2fa71b808c440909739.zip
Fix serialialization.
git-svn-id: http://svn.drobilla.net/lad/machina@923 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/Machine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 09e0e72..0ddf61c 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -305,7 +305,7 @@ Machine::write_state(Raul::RDF::Model& model)
model.world().add_prefix("machina", "http://drobilla.net/ns/machina#");
- model.add_statement(RDF::Node(model.world(), RDF::Node::RESOURCE, ""),
+ model.add_statement(model.base_uri(),
RDF::Node(model.world(), RDF::Node::RESOURCE, "rdf:type"),
RDF::Node(model.world(), RDF::Node::RESOURCE, "machina:Machine"));
@@ -316,11 +316,11 @@ Machine::write_state(Raul::RDF::Model& model)
(*n)->write_state(model);
if ((*n)->is_initial()) {
- model.add_statement(RDF::Node(model.world(), RDF::Node::RESOURCE, ""),
+ model.add_statement(model.base_uri(),
RDF::Node(model.world(), RDF::Node::RESOURCE, "machina:initialNode"),
(*n)->id());
} else {
- model.add_statement(RDF::Node(model.world(), RDF::Node::RESOURCE, ""),
+ model.add_statement(model.base_uri(),
RDF::Node(model.world(), RDF::Node::RESOURCE, "machina:node"),
(*n)->id());
}
@@ -335,7 +335,7 @@ Machine::write_state(Raul::RDF::Model& model)
(*e)->write_state(model);
- model.add_statement(RDF::Node(model.world(), RDF::Node::RESOURCE, ""),
+ model.add_statement(model.base_uri(),
RDF::Node(model.world(), RDF::Node::RESOURCE, "machina:edge"),
(*e)->id());
}