diff options
author | David Robillard <d@drobilla.net> | 2011-02-16 18:26:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-02-16 18:26:57 +0000 |
commit | 42d8a867c5523b0b45e8236a9629e5485d7d2e2a (patch) | |
tree | 806a19db3dc2daf6b104ebac66086c24e724fa88 /src/engine/Edge.cpp | |
parent | d1fc79afd2c670d95527145b59fb1be10070e02c (diff) | |
download | machina-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/Edge.cpp')
-rw-r--r-- | src/engine/Edge.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp index 6af315c..00faaa9 100644 --- a/src/engine/Edge.cpp +++ b/src/engine/Edge.cpp @@ -18,8 +18,7 @@ #include "raul/Atom.hpp" #include "raul/AtomRDF.hpp" -#include "redlandmm/World.hpp" -#include "redlandmm/Model.hpp" +#include "sord/sordmm.hpp" #include "Edge.hpp" #include "Node.hpp" @@ -33,16 +32,16 @@ Edge::set(URIInt key, const Raul::Atom& value) } void -Edge::write_state(Redland::Model& model) +Edge::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()); model.add_statement( rdf_id, - Redland::Curie(model.world(), "rdf:type"), - Redland::Node(model.world(), Redland::Node::RESOURCE, "machina:Edge")); + Sord::Curie(model.world(), "rdf:type"), + Sord::Curie(model.world(), "machina:Edge")); SharedPtr<Node> tail = _tail.lock(); SharedPtr<Node> head = _head; @@ -54,16 +53,16 @@ Edge::write_state(Redland::Model& model) && head->rdf_id(model.world()).is_valid()); model.add_statement(rdf_id, - Redland::Curie(model.world(), "machina:tail"), + Sord::Curie(model.world(), "machina:tail"), tail->rdf_id(model.world())); model.add_statement(rdf_id, - Redland::Curie(model.world(), "machina:head"), + Sord::Curie(model.world(), "machina:head"), head->rdf_id(model.world())); model.add_statement( rdf_id, - Redland::Curie(model.world(), "machina:probability"), + Sord::Curie(model.world(), "machina:probability"), AtomRDF::atom_to_node(model, Atom(_probability.get()))); } |