aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Node.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-16 18:26:57 +0000
committerDavid Robillard <d@drobilla.net>2011-02-16 18:26:57 +0000
commit42d8a867c5523b0b45e8236a9629e5485d7d2e2a (patch)
tree806a19db3dc2daf6b104ebac66086c24e724fa88 /src/engine/Node.cpp
parentd1fc79afd2c670d95527145b59fb1be10070e02c (diff)
downloadmachina-42d8a867c5523b0b45e8236a9629e5485d7d2e2a.tar.gz
machina-42d8a867c5523b0b45e8236a9629e5485d7d2e2a.tar.bz2
machina-42d8a867c5523b0b45e8236a9629e5485d7d2e2a.zip
Drop redlandmm for sordmm.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2959 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Node.cpp')
-rw-r--r--src/engine/Node.cpp23
1 files changed, 12 insertions, 11 deletions
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 <cassert>
#include <iostream>
+
#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()));
}
}