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 | 2c1079446f0b06559a683a9f4b0192a4f7637770 (patch) | |
tree | 0bb095529e4654cdf4633512fdaaa599ed3370f0 /src/client/HTTPEngineSender.cpp | |
parent | 0cb698a6d4652c54d49f599f1611e7c4a15d3778 (diff) | |
download | ingen-2c1079446f0b06559a683a9f4b0192a4f7637770.tar.gz ingen-2c1079446f0b06559a683a9f4b0192a4f7637770.tar.bz2 ingen-2c1079446f0b06559a683a9f4b0192a4f7637770.zip |
Drop redlandmm for sordmm.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2959 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/HTTPEngineSender.cpp')
-rw-r--r-- | src/client/HTTPEngineSender.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp index cc0d31a0..ed69d7e0 100644 --- a/src/client/HTTPEngineSender.cpp +++ b/src/client/HTTPEngineSender.cpp @@ -19,7 +19,7 @@ #include "raul/AtomRDF.hpp" #include "raul/log.hpp" -#include "redlandmm/Model.hpp" +#include "sord/sordmm.hpp" #include "module/World.hpp" #include "HTTPEngineSender.hpp" @@ -121,14 +121,14 @@ HTTPEngineSender::put(const URI& uri, const string path = (uri.substr(0, 6) == "path:/") ? uri.substr(6) : uri.str(); const string full_uri = _engine_url.str() + "/" + path; - Redland::Model model(_world); + Sord::Model model(_world); for (Resource::Properties::const_iterator i = properties.begin(); i != properties.end(); ++i) model.add_statement( - Redland::Resource(_world, path), + Sord::Resource(_world, path), AtomRDF::atom_to_node(model, i->first), AtomRDF::atom_to_node(model, i->second)); - const string str = model.serialise_to_string("turtle"); + const string str = model.write_to_string("turtle"); SoupMessage* msg = soup_message_new(SOUP_METHOD_PUT, full_uri.c_str()); assert(msg); soup_message_set_request(msg, "application/x-turtle", SOUP_MEMORY_COPY, str.c_str(), str.length()); |