From b36e00c19a932b254f81e2fa71b808c440909739 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 29 Nov 2007 03:57:12 +0000 Subject: Fix serialialization. git-svn-id: http://svn.drobilla.net/lad/machina@923 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Machine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine') 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()); } -- cgit v1.2.1