diff options
author | David Robillard <d@drobilla.net> | 2011-05-24 19:45:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-24 19:45:30 +0000 |
commit | a63ca8cb96f95849c42250500f327e0fa2f2f850 (patch) | |
tree | 46ea1dffb2d998dce80e3f133312a8ae89786c96 /src | |
parent | 95aff00802baf393cbabfcb05198ffc5f9979460 (diff) | |
download | ingen-a63ca8cb96f95849c42250500f327e0fa2f2f850.tar.gz ingen-a63ca8cb96f95849c42250500f327e0fa2f2f850.tar.bz2 ingen-a63ca8cb96f95849c42250500f327e0fa2f2f850.zip |
Update for new Sord API
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3315 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/client/HTTPEngineSender.cpp | 4 | ||||
-rw-r--r-- | src/serialisation/Serialiser.cpp | 2 | ||||
-rw-r--r-- | src/server/HTTPClientSender.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp index 392c7cf0..ec5cc6a0 100644 --- a/src/client/HTTPEngineSender.cpp +++ b/src/client/HTTPEngineSender.cpp @@ -83,7 +83,7 @@ HTTPEngineSender::unregister_client(const URI& uri) void HTTPEngineSender::put(const URI& uri, const Resource::Properties& properties, - Resource::Graph ctx) + Resource::Graph ctx) { const string path = (uri.substr(0, 6) == "path:/") ? uri.substr(6) : uri.str(); const string full_uri = _engine_url.str() + "/" + path; @@ -94,7 +94,7 @@ HTTPEngineSender::put(const URI& uri, AtomRDF::atom_to_node(model, i->first), AtomRDF::atom_to_node(model, i->second)); - const string str = model.write_to_string(SERD_TURTLE); + const string str = model.write_to_string(""); 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()); diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 7707129c..253791d2 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -253,7 +253,7 @@ Serialiser::finish() if (_mode == TO_FILE) { _model->write_to_file(_base_uri, SERD_TURTLE); } else { - ret = _model->write_to_string(SERD_TURTLE); + ret = _model->write_to_string(_base_uri, SERD_TURTLE); } delete _model; diff --git a/src/server/HTTPClientSender.cpp b/src/server/HTTPClientSender.cpp index f6078823..06534eb3 100644 --- a/src/server/HTTPClientSender.cpp +++ b/src/server/HTTPClientSender.cpp @@ -66,7 +66,7 @@ HTTPClientSender::put(const URI& uri, AtomRDF::atom_to_node(model, i->first.str()), AtomRDF::atom_to_node(model, i->second)); - const string str = model.write_to_string(SERD_TURTLE); + const string str = model.write_to_string("", SERD_TURTLE); send_chunk(str); } |