aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Machine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Machine.cpp')
-rw-r--r--src/engine/Machine.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/Machine.cpp b/src/engine/Machine.cpp
index 32ac10d..bddc4f9 100644
--- a/src/engine/Machine.cpp
+++ b/src/engine/Machine.cpp
@@ -19,8 +19,8 @@
#include "raul/Atom.hpp"
#include "raul/SharedPtr.hpp"
-#include "redlandmm/Model.hpp"
-#include "redlandmm/World.hpp"
+
+#include "sord/sordmm.hpp"
#include "machina/Machine.hpp"
#include "machina/Updates.hpp"
@@ -389,15 +389,15 @@ Machine::learn(SharedPtr<Raul::Maid> maid, SharedPtr<Node> node)
}
void
-Machine::write_state(Redland::Model& model)
+Machine::write_state(Sord::Model& model)
{
using namespace Raul;
model.world().add_prefix("machina", "http://drobilla.net/ns/machina#");
model.add_statement(model.base_uri(),
- Redland::Node(model.world(), Redland::Node::RESOURCE, "rdf:type"),
- Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Machine"));
+ Sord::Curie(model.world(), "rdf:type"),
+ Sord::Curie(model.world(), "machina:Machine"));
size_t count = 0;
@@ -407,11 +407,11 @@ Machine::write_state(Redland::Model& model)
if ((*n)->is_initial()) {
model.add_statement(model.base_uri(),
- Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:initialNode"),
+ Sord::Curie(model.world(), "machina:initialNode"),
(*n)->rdf_id(model.world()));
} else {
model.add_statement(model.base_uri(),
- Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:node"),
+ Sord::Curie(model.world(), "machina:node"),
(*n)->rdf_id(model.world()));
}
}
@@ -426,7 +426,7 @@ Machine::write_state(Redland::Model& model)
(*e)->write_state(model);
model.add_statement(model.base_uri(),
- Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:edge"),
+ Sord::Curie(model.world(), "machina:edge"),
(*e)->rdf_id(model.world()));
}