From 42d8a867c5523b0b45e8236a9629e5485d7d2e2a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Feb 2011 18:26:57 +0000 Subject: Drop redlandmm for sordmm. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2959 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Node.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/engine/Node.cpp') diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index 52b3604..a1cd3bc 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -17,10 +17,11 @@ #include #include + #include "raul/Atom.hpp" #include "raul/AtomRDF.hpp" -#include "redlandmm/World.hpp" -#include "redlandmm/Model.hpp" + +#include "sord/sordmm.hpp" #include "machina/URIs.hpp" @@ -218,33 +219,33 @@ Node::set(URIInt key, const Raul::Atom& value) void -Node::write_state(Redland::Model& model) +Node::write_state(Sord::Model& model) { using namespace Raul; - const Redland::Node& rdf_id = this->rdf_id(model.world()); + const Sord::Node& rdf_id = this->rdf_id(model.world()); if (_is_selector) model.add_statement( rdf_id, - Redland::Curie(model.world(), "rdf:type"), - Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:SelectorNode")); + Sord::Curie(model.world(), "rdf:type"), + Sord::Curie(model.world(), "machina:SelectorNode")); else model.add_statement( rdf_id, - Redland::Curie(model.world(), "rdf:type"), - Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Node")); + Sord::Curie(model.world(), "rdf:type"), + Sord::Curie(model.world(), "machina:Node")); model.add_statement( rdf_id, - Redland::Curie(model.world(), "machina:duration"), + Sord::Curie(model.world(), "machina:duration"), AtomRDF::atom_to_node(model, Atom((float)_duration.to_double()))); if (_enter_action) { _enter_action->write_state(model); model.add_statement(rdf_id, - Redland::Curie(model.world(), "machina:enterAction"), + Sord::Curie(model.world(), "machina:enterAction"), _enter_action->rdf_id(model.world())); } @@ -252,7 +253,7 @@ Node::write_state(Redland::Model& model) _exit_action->write_state(model); model.add_statement(rdf_id, - Redland::Curie(model.world(), "machina:exitAction"), + Sord::Curie(model.world(), "machina:exitAction"), _exit_action->rdf_id(model.world())); } } -- cgit v1.2.1